<< Previous | Next >>

LD (pd+d),JKHL     Load     Rabbit 4000/5000 Instruction

Opcode
Instruction
Operation
-- LD (pd+d),JKHL (pd + d) = L
(pd + d + 1) = H
(pd + d + 2) = JKlow
(pd + d + 3) = JKhigh
FD 0F d LD (PW+d),JKHL (PW+d) = L; (PW+d+1) = H
(PW+d+2) = JKlow
(PW+d+3) = JKhigh
FD 1F d LD (PX+d),JKHL (PX+d) = L; (PX+d+1) = H
(PX+d+2) = JKlow
(PX+d+3) = JKhigh
FD 2F d LD (PY+d),JKHL (PY+d) = L; (PY+d+1) = H
(PY+d+2) = JKlow (PY+d+3) = JKhigh
FD 3F d LD (PZ+d),JKHL (PZ+d) = L; (PZ+d+1) = H
(PZ+d+2) = JKlow
(PZ+d+3) = JKhigh

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 4000
19
n/a
n/a
Rabbit 5000
20
19
18

Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
-
-
-
-

Description

Loads the memory location whose address is computed as the sum of pd and the 8-bit signed displacement d with JKHL.

The address is treated either as a logical address that will be passed through the MMU for translation into a physical address or as a physical address that does not need MMU translation. If pd is 0xFFFFxxxx, i.e., the upper 16 bits are all ones, it represents a logical address. This is called a "long logical" address. Otherwise, it is a physical address with the low 20 bits or 24 bits being significant (depending on the memory available).


Rabbit Instructions << Previous | Next >> rabbit.com