<< Previous | Next >>

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

Opcode
Instruction
Operation
-- LD (pd+BC),HL (pd + BC) = L
(pd + BC + 1) = H
ED 07 LD (PW+BC),HL (PW + BC) = L
(PW + BC + 1) = H
ED 17 LD (PX+BC),HL (PX + BC) = L
(PX + BC + 1) = H
ED 27 LD (PY+BC),HL (PY + BC) = L
(PY + BC + 1) = H
ED 37 LD (PZ+BC),HL (PZ + BC) = L
(PZ + BC + 1) = H

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 4000
12
n/a
n/a
Rabbit 5000
13
13
11

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 BC with HL.

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