Amazing! You’re actually reading this. That puts you into one of three categories: a student who is being forced to read this stuff for a class, someone who picked up this book by accident (probably because you have yet to be indoctrinated by the world at large), or one of the few who actually have an interest in learning assembly language. | The Art of Assembly Language The Art of Assembly Language Brief Contents Forward Why Would Anyone Learn This Stuff . 1 Section One .9 Chapter One Data Representation . 11 Chapter Two Boolean Algebra . 43 Chapter Three System Organization . 83 Chapter Four Memory Layout and Access . 145 Section Two . 193 Chapter Five Variables and Data Structures . 195 Chapter Six The 80x86 Instruction Set . 243 Chapter Seven The UCR Standard Library . 333 Chapter Eight MASM Directives Pseudo-Opcodes . 355 Chapter Nine Arithmetic and Logical Operations . 459 Chapter 10 Control Structures . 521 Chapter 11 Procedures and Functions . 565 Section Three .637 Chapter 12 Procedures Advanced Topics . 639 Chapter 13 MS-DOS PC-BIOS and File I O .699 Chapter 14 Floating Point Arithmetic . 771 Chapter 15 Strings and Character Sets . 819 Chapter 16 Pattern Matching . 883 Section Four .993 Chapter 17 Interrupts Traps and Exceptions . 995 Chapter 18 Resident Programs . 1025 Chapter 19 Processes Coroutines and Concurrency . 1065 Section Five . 1151 Chapter 20 The PC Keyboard . 1153 Chapter 21 The PC Parallel Ports . 1199 Chapter 22 The PC Serial Ports . 1223 Chapter 23 The PC Video Display . 1247 Chapter 24 The PC Game Adapter . 1255 Section Six . 1309 Chapter 25 Optimizing Your Programs . 1311 Section Seven . 1343 Appendix A ASCII IBM Character Set . 1345 Appendix B Annotated Bibliography . 1347 Page i Appendix C Keyboard Scan Codes .1351 Appendix D Instruction Set Reference .1361 Page ii The Art of 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 Chapter Overview .11 Numbering Systems . 11 A Review of the Decimal System .11 The Binary .