System information
3.5.2 Immediate Operand Instructions
Several instructions are available that load single- or double-precision registers or
single-precision memory cells with constant values, along with instructions that perform
immediate arithmetic or logical operations on the accumulator (register A). Table 3-5 describes
the immediate operand instructions.
 Table 3-5. Immediate Operand Instructions
 Form with
   Bit Values Example Meaning
 MVI e3,e8 MVI B,255  Move immediate data to register A, B, C, D, E, H, L, 
or M (memory)
 ADI e8 ADI 1  Add immediate operand to A without carry
 ACI e8 ACI 0FFH  Add immediate operand to A with carry
 SUI e8 SUI L + 3 Subtract from A without borrow (carry)
 SBI e8 SBI L AND 11B  Subtract from A with borrow (carry)
 ANI e8 ANI $ AND 7FH  Logical and A with immediate data
 XRI e8 XRI 1111$0000B  Exclusive or A with immediate data
 ORI e8 ORI L AND 1+1  Logical or A with immediate data
 CPI e8 CPI 'a'  Compare A with immediate data, same as SUI except 
register A not changed.
 LXI e3,e16 LXI B, 100H  Load extended immediate to register pair. e3 must be 
equivalent to B, D, H,or SP.
3.5 Operation Codes CP/M Operating System Manual
3-19










