EasyManua.ls Logo

Rabbit 2000 - 8.5 How Compiler Compiles to Memory

Rabbit 2000
174 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Instruction Reference Manual 99
Description
Performs a logical OR operation between the byte in A and the byte whose address is (a) in HL, (b) the sum
of the data in IX and a displacement d, or (c) the sum of the data in IY and a displacement d.
The relative bits of each byte are compared (i.e., the bit 1 of both bytes are compared, the bit 2 of both bytes
are compared, etc.) and the associated bit in the result byte is set if either of the compared bits is set. The
result is stored in A.
Example
If the byte in A is 0100 1100 and the byte in the memory location pointed to by HL is 1110 0101, the opera-
tion:
OR (HL)
would result in A containing 1110 1101.
OR (HL)
OR (IX+d)
OR (IY+d)
Opcode Instruction Clocks Operation
B6 OR (HL) 5 (2,1,2) A = A | (HL)
DD B6 d OR (IX+d) 9 (2,2,2,1,2) A = A | (IX+d)
FD B6 d OR (IY+d) 9 (2,2,2,1,2) A = A | (IY+d)
Flags ALTD I/O
S Z L/V C F R SP S D
L 0

Other manuals for Rabbit 2000