<< Previous | Next >>

LD (pd+HL),ps     Load     Rabbit 4000/5000 Instruction

Opcode
Instruction
Operation
-- LD (pd+HL),ps (pd+HL)=ps0; (pd+HL+1)=ps1
(pd+HL+2)=ps2; (pd+HL+3)=ps3
6D 0B
6D 1B
6D 2B
6D 3B
LD (PW+HL),PW
LD (PX+HL),PW
LD (PY+HL),PW
LD (PZ+HL),PW
(pd+HL)=PW0; (pd+HL+1)=PW1
(pd+HL+2)=PW2; (pd+HL+3)=PW3
6D 4B
6D 5B
6D 6B
6D 7B
LD (PW+HL),PX
LD (PX+HL),PX
LD (PY+HL),PX
LD (PZ+HL),PX
(pd+HL)=PX0; (pd+HL+1)=PX1
(pd+HL+2)=PX2; (pd+HL+3)=PX3
6D 8B
6D 9B
6D AB
6D BB
LD (PW+HL),PY
LD (PX+HL),PY
LD (PY+HL),PY
LD (PZ+HL),PY
(pd+HL)=PY0; (pd+HL+1)=PY1
(pd+HL+2)=PY2; (pd+HL+3)=PY3
6D CB
6D DB
6D EB
6D FB
LD (PW+HL),PZ
LD (PX+HL),PZ
LD (PY+HL),PZ
LD (PZ+HL),PZ
(pd+HL)=PZ0; (pd+HL+1)=PZ1
(pd+HL+2)=PZ2; (pd+HL+3)=PZ3

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

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 HL with ps (any of the 32-bit registers PW, PX, PY or PZ).

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