文件名称:the art of assembly language(Full Contents)
文件大小:58KB
文件格式:PDF
更新时间:2011-10-09 02:48:50
assembly language
The Art of Assembly Language(Full Contents) Forward Why Would Anyone Learn This Stuff? .............................................................. 1 1 What’s Wrong With Assembly Language ............................................................................ 1 2 What’s Right With Assembly Language? ............................................................................. 4 3 Organization of This Text and Pedagogical Concerns ....................................................... 5 4 Obtaining Program Source Listings and Other Materials in This Text ............................... 7 Section One: ................................................................................................................... 9 Machine Organization ........................................................................................................... 9 Chapter One Data Representation ................................................................................ 11 1.0 Chapter Overview ............................................................................................................ 11 1.1 Numbering Systems .......................................................................................................... 11 1.1.1 A Review of the Decimal System ........................................................................... 11 1.1.2 The Binary Numbering System ............................................................................. 12 1.1.3 Binary Formats ....................................................................................................... 13 1.2 Data Organization ............................................................................................................ 13 1.2.1 Bits .......................................................................................................................... 14 1.2.2 Nibbles ................................................................................................................... 14 1.2.3 Bytes ....................................................................................................................... 14 1.2.4 Words ..................................................................................................................... 15 1.2.5 Double Words ........................................................................................................ 16 1.3 The Hexadecimal Numbering System .............................................................................. 17 1.4 Arithmetic Operations on Binary and Hexadecimal Numbers ........................................ 19 1.5 Logical Operations on Bits ............................................................................................... 20 1.6 Logical Operations on Binary Numbers and Bit Strings ................................................. 22 1.7 Signed and Unsigned Numbers ........................................................................................ 23 1.8 Sign and Zero Extension .................................................................................................. 25 1.9 Shifts and Rotates .............................................................................................................. 26 1.10 Bit Fields and Packed Data ............................................................................................. 28 1.11 The ASCII Character Set .................................................................................................. 28 1.12 Summary ......................................................................................................................... 31 1.13 Laboratory Exercises ....................................................................................................... 33 1.13.1 Installing the Software ......................................................................................... 33 1.13.2 Data Conversion Exercises .................................................................................. 34 1.13.3 Logical Operations Exercises ............................................................................... 35 1.13.4 Sign and Zero Extension Exercises ..................................................................... 36 1.13.5 Packed Data Exercises ......................................................................................... 37 1.14 Questions ........................................................................................................................ 38 1.15 Programming Projects .................................................................................................... 41 Chapter Two Boolean Algebra ...................................................................................... 43 2.0 Chapter Overview ............................................................................................................ 43 2.1 Boolean Algebra ............................................................................................................... 43 Thi d t t d ith F M k 4 0 2