System information
Table 3-7. (continued)
 Form with
   Bit Value Example Meaning
 IN e8 IN 0  Load register A with data from port e8.
 OUT e8 OUT 255  Send data from register A to port e8.
 XTHL  Exchange data from top of stack with HL.
 PCHL  Fill program counter with data from HL.
 SPHL  Fill stack pointer with data from HL.
 XCHG  Exchange DE pair with HL pair.
3.5.5 Arithmetic Logic Unit Operations
Instructions that act upon the single-precision accumulator to perform arithmetic and logic
operations are given in the following table.
Table 3-8. Arithmetic Logic Unit Operations
 Form with
   Bit Value Example Meaning
 ADD e3 ADD B  Add register given by e3 to accumulator without carry. e3 must 
produce one of A, B, C, D, E, H, or L.
 ADC e3 ADC L  Add register to A with carry, e3 as above.
 SUB e3 SUB H  Subtract reg e3 from A without carry, e3 is defined as above.
 SBB e3 SBB 2  Subtract register e3 from A with carry, e3 defined as above.
3.5 Operation Codes CP/M Operating System Manual
3-22










