<< Previous | Next >>

> LD A,(ps+d) Load Rabbit 4000 Instruction

> Opcode | Instruction | Clocks | Operation
> -- | LD A,(ps+d) | 7 (2,2,1,2) | A = (ps + d)
> 8D d | LD A,(PW+d) | 7 (2,2,1,2) | A = (PW + d)
> 9D d | LD A,(PX+d) | 7 (2,2,1,2) | A = (PX + d)
> AD d | LD A,(PY+d) | 7 (2,2,1,2) | A = (PY + d)
> BD d | LD A,(PZ+d) | 7 (2,2,1,2) | A = (PZ + d)

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

> #### Description

> Load A 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 with only the low 16 bits being significant. 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 the 8-bit signed value d.

<< Previous | Next >>