08.06.2013 Views

DIGITAL RESEARCH TM CP/M Operating System Manual CP/M ...

DIGITAL RESEARCH TM CP/M Operating System Manual CP/M ...

DIGITAL RESEARCH TM CP/M Operating System Manual CP/M ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table of Contents (continued)<br />

2.1.7 Text Search and Alteration .......... 2-11<br />

2.1.8 Source Libraries ................... 2-15<br />

2.1.9 Repetitive Command Execution ...... 2-17<br />

2.2 ED Error Conditions ....................... 2-18<br />

2.3 Control Characters and Commands 2-19<br />

3 <strong>CP</strong>/M Assembler<br />

3.1 Introduction ...................................... 3-1<br />

3.2 Program Format ................................... 3-3<br />

3.3 Forming the Operand ............................... 3-4<br />

3.3.1 Labels ................................... 3-5<br />

3.3.2 Numeric Constants ......................... 3-5<br />

3.3.3 Reserved Words ........................... 3-6<br />

3.3.4 String Constants ........................... 3-7<br />

3.3.5 Arithmetic and Logical Operators ............. 3-7<br />

3.3.6 Precedence of Operators ..................... 3-9<br />

3.4 Assembler Directives .............................. 3-10<br />

3.4.1 The ORG Directive ........................ 3-11<br />

3.4.2 The END Directive ........................ 3-11<br />

3.4.3 The EQU Directive ........................ 3-12<br />

3.4.4 The SET Directive ........................ 3-13<br />

3.4.5 The IF and ENDIF Directive ................ 3-13<br />

3.4.6 The DB Directive ......................... 3-15<br />

3.4.7 The DW Directive ......................... 3-15<br />

3.4.8 The DS Directive ......................... 3-16<br />

3.5 Operation Codes ................................. 3-16<br />

3.5.1 Jumps, Calls, and Returns .................. 3-17<br />

3.5.2 Immediate Operand Instructions ............. 3-19<br />

3.5.3 Increment and Decrement Instructions ........ 3-20<br />

3.5.4 Data Movement Instructions ................ 3-21<br />

3.5.5 Arithmetic Logic Unit Operations ............ 3-22<br />

3.5.6 Control Instuctions ........................ 3-24<br />

3.6 Error Messages ................................... 3-24<br />

3.7 A Sample Session ................................ 3-26

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!