System information

Table of Contents (continued)
2.1.7 Text Search and Alteration .......... 2-11
2.1.8 Source Libraries ................... 2-15
2.1.9 Repetitive Command Execution ...... 2-17
2.2 ED Error Conditions ....................... 2-18
2.3 Control Characters and Commands 2-19
3 CP/M Assembler
3.1 Introduction ...................................... 3-1
3.2 Program Format ................................... 3-3
3.3 Forming the Operand ............................... 3-4
3.3.1 Labels ................................... 3-5
3.3.2 Numeric Constants ......................... 3-5
3.3.3 Reserved Words ........................... 3-6
3.3.4 String Constants ........................... 3-7
3.3.5 Arithmetic and Logical Operators ............. 3-7
3.3.6 Precedence of Operators ..................... 3-9
3.4 Assembler Directives .............................. 3-10
3.4.1 The ORG Directive ........................ 3-11
3.4.2 The END Directive ........................ 3-11
3.4.3 The EQU Directive ........................ 3-12
3.4.4 The SET Directive ........................ 3-13
3.4.5 The IF and ENDIF Directive ................ 3-13
3.4.6 The DB Directive ......................... 3-15
3.4.7 The DW Directive ......................... 3-15
3.4.8 The DS Directive ......................... 3-16
3.5 Operation Codes ................................. 3-16
3.5.1 Jumps, Calls, and Returns .................. 3-17
3.5.2 Immediate Operand Instructions ............. 3-19
3.5.3 Increment and Decrement Instructions ........ 3-20
3.5.4 Data Movement Instructions ................ 3-21
3.5.5 Arithmetic Logic Unit Operations ............ 3-22
3.5.6 Control Instuctions ........................ 3-24
3.6 Error Messages ................................... 3-24
3.7 A Sample Session ................................ 3-26