CHAPTER 11 INSTRUCTION SET
270 User’s Manual U10676EJ3V0UM
OR A, #n4
Function: A A n4 n4 = l3-0: 0-FH
ORs 4-bit immediate data n4 with the contents of the A register, and sets the result to the A register.
Application example
To set the lower 3 bits of the accumulator to 1
OR A, #0111B
OR A, @HL
Function: A A (HL)
ORs the contents of the data memory addressed by register pair HL with the contents of the A register, and sets
the result to the A register.
OR XA, rp’
Function: XA XA rp’
ORs the contents of register pair rp’ (XA, HL, DE, BC, XA’, HL’, DE’, or BC’) with the contents of register pair XA,
and sets the result to register pair XA.
OR rp’1, XA
Function: rp’1 rp’1 XA
ORs the contents of register pair XA with register pair rp’1 (HL, DE, BC, XA’, HL’, DE’, or BC’), and sets the result
to a specified register pair.
XOR A, #n4
Function: A A n4 n4 = l3-0: 0-FH
Exclusive-ORs 4-bit immediate data n4 with the contents of the A register, and sets the result to the A register.
Application example
To invert the higher 4 bits of the accumulator
XOR A, #1000B