Guide To Assembly Language AConcise Introduction
GuideToAssemblyLanguageAConciseIntroduction
User Manual:
Open the PDF directly: View PDF
Page Count: 272 [warning: Documents this large are best viewed by clicking the View PDF Link!]
- Cover
- Guide to Assembly Language
- ISBN 9780857292704
- Preface
- Contents
- 1 Variables, Registers, and Data Movement
- 2 Input/Output
- 3 Arithmetic Instructions
- 3.1 Addition and Subtraction
- 3.2 Multiplication and Division
- 3.3 Implementing Unary Operators: Increment, Decrement, and Negation
- 3.4 Order of Operations with Binary and Unary Operators
- 3.5 Complete Program: Impementing I/O and Arithmetic
- 3.6 Summary
- 3.7 Exercises (Items Marked with an * Have Solutions in Appendix E)
- 4 Selection Structures
- 4.1 Introduction
- 4.2 If-Then Structure
- 4.3 If-Then-Else Structure
- 4.4 Nested If Structures
- 4.5 Case Structure
- 4.6 Characters and Logical Operations
- 4.7 Arithmetic Expressions in High-Level Directives
- 4.8 Complete Program: Using Selection Structures and I/O
- 4.9 Summary
- 4.10 Exercises (Items Marked with an * Have Solutions in Appendix E)
- 5 Iteration Structures
- 6 Logic, Shifting, Rotating, and Stacks
- 6.1 Introduction
- 6.2 Logic Instructions
- 6.3 Logical Shift Instructions
- 6.4 Arithmetic Shift Instructions
- 6.5 Rotate Instructions
- 6.6 Stack Operations
- 6.7 Swapping Using Registers, the Stack, and the xchg Instruction
- 6.8 Complete Program: Simulating an OCR Machine
- 6.9 Summary
- 6.10 Exercises (Items Marked with an * Have Solutions in Appendix E)
- 7 Procedures and Macros
- 7.1 Procedures
- 7.2 Complete Program: Implementing the Power Function in a Procedure
- 7.3 Saving and Restoring Registers
- 7.4 Macros
- 7.5 Conditional Assembly
- 7.6 Swap Macro Revisited Using Conditional Assembly
- 7.7 Power Function Macro Using Conditional Assembly
- 7.8 Complete Program: Implementing a Macro Calculator
- 7.9 Summary
- 7.10 Exercises (Items Marked with an * Have Solutions in Appendix E)
- 8 Arrays
- 8.1 Array Declaration and Addressing
- 8.2 Indexing Using the Base Register
- 8.3 Searching
- 8.4 Indexing Using the es1 and ed1 Registers
- 8.5 Lengthof and sizeof Operators
- 8.6 Complete Program: Implementing a Queue
- 8.7 Complete Program: Implementing the Selection Sort
- 8.8 Summary
- 8.9 Exercises (Items Marked with an * Have Solutions in Appendix E)
- 9 Strings
- 9.1 Introduction
- 9.2 String Instructions: Moving Strings (movsb)
- 9.3 String Instructions: Scanning (scasb ), Storing (stosb), and Loading (lodsb)
- 9.4 Array of Strings
- 9.5 String Instructions: Comparing Strings (cmpsb )
- 9.6 Complete Program: Searching an Array of Strings
- 9.7 Summary
- 9.8 Exercises (Items Marked with an * Have Solutions in Appendix E)
- 10 Selected Machine Language Instructions
- 10.1 Introduction
- 10.2 Inc and dec Instructions
- 10.3 Mov Instruction
- 10.4 Add and sub Instructions
- 10.5 Movoffset and lea Instructions
- 10.6 Jmp Instructions
- 10.7 Instruction Timings
- 10.8 Complete Program: Machine Language Listing
- 10.9 Summary
- 10.10 Exercises (Items Marked with an * Have Solutions in Appendix E)
- Appendix A Installation of Visual C++ and MASM
- Appendix B Binary, Hexadecimal, Logic, and Arithmetic
- Appendix C Glossary
- Appendix D Selected Assembly Language Instructions
- Appendix E Answers to Selected Exercises
- Index