<< Previous | Next >>

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

Opcode
Instruction
Operation
-- LD BCDE,(ps+HL) E = (ps+HL); D = (ps+HL+1)
C = (ps+HL+2); B = (ps+HL+3)
DD 0C d LD BCDE,(PW+HL) E = (PW+HL); D = (PW+HL+1)
C = (PW+HL+2); B = (PW+HL+3)
DD 1C d LD BCDE,(PX+HL) E = (PX+HL); D = (PX+HL+1)
C = (PX+HL+2); B = (PX+HL+3)
DD 2C d LD BCDE,(PY+HL) E = (PY+HL); D = (PY+HL+1)
C = (PY+HL+2); B = (PY+HL+3)
DD 3C d LD BCDE,(PZ+HL) E = (PZ+HL); D = (PZ+HL+1)
C = (PZ+HL+2); B = (PZ+HL+3)

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 4000
14
n/a
n/a
Rabbit 5000
15
15
13

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

Description

Loads the 32-bit register BCDE with the data whose 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 ps 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 or 24 bits (depending on the memory that is used) being significant.

The address is computed as the sum of ps and HL. HL is considered to be sign extended to 24 bits.


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