User manual

277
CHAPTER 11 INSTRUCTION SET
AND A,@HL
Function: A <– A (HL)
ANDs the contents of the A register with the data at the data memory location addressed by the HL register
pair, then sets the result in the A register.
AND XA,rp’
Function: XA <– XA rp’
ANDs the contents of the XA register pair with the contents of register pair rp’ (XA, HL, DE, BC, XA’, HL’,
DE’, BC’), then sets the result in the XA register pair.
AND rp’1,XA
Function: rp’1 <– rp’1 XA
ANDs the contents of register pair rp’1 (HL, DE, BC, XA’, HL’, DE’, BC’) with the contents of the XA register
pair, then sets the result in the specified register pair.
OR A,#n4
Function: A <– A 4 n4 = I
3-0
: 0-FH
ORs the contents of the A register with the 4-bit immediate data n4, then sets the result in the A register.
Example The low-order three bits of an accumulator are set to 1.
OR A,#0111B
OR A,@HL
Function: A <– A (HL)
ORs the contents of the A register with the data at the data memory location addressed by the HL register
pair, then sets the result in the A register.
OR XA,rp’
Function: XA <– XA rp’
ORs the contents of the XA register pair with the contents of register pair rp’ (XA, HL, DE, BC, XA’, HL’,
DE’, BC’), then sets the result in the XA register pair.