<< Previous | Next >>

> LD HL,(ps+BC) Load Rabbit 4000 Instruction

> Opcode | Instruction | Clocks | Operation
> -- | LD HL,(ps+BC) | 10(2,2,2,2,2) | L = (ps + BC) H = (ps + BC + 1)
> ED 06 | LD HL,(PW+BC) | 10(2,2,2,2,2) | L = (PW + BC) H = (PW + BC + 1)
> ED 16 | LD HL,(PX+BC) | 10(2,2,2,2,2) | L = (PX + BC) H = (PX + BC + 1)
> ED 26 | LD HL,(PY+BC) | 10(2,2,2,2,2) | L = (PY + BC) H = (PY + BC + 1)
> ED 36 | LD HL,(PZ+BC) | 10(2,2,2,2,2) | L = (PZ + BC) H = (PZ + BC + 1)

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

> #### Description

> Loads HL 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 bits or 24 bits being significant (depending on the memory available).

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

<< Previous | Next >>