<< Previous | Next >>

> LD (pd+d),rr Load Rabbit 4000 Instruction

> Opcode | Instruction | Clocks | Operation
> -- | LD (pd+d),rr | 13 (2,2,2,1,3,3) | (pd+d) = rrl; (pd+d+1) = rrh
> 6D 01 d | LD (PW+d),BC | 13 (2,2,2,1,3,3) | (PW+d) = C; (PW+d+1) = B
> 6D 11 d | LD (PX+d),BC | 13 (2,2,2,1,3,3) | (PX+d) = C; (PX+d+1) = B
> 6D 21 d | LD (PY+d),BC | 13 (2,2,2,1,3,3) | (PY+d) = C; (PY+d+1) = B
> 6D 31 d | LD (PZ+d),BC | 13 (2,2,2,1,3,3) | (PZ+d) = C; (PZ+d+1) = B
> 6D 41 d | LD (PW+d),DE | 13 (2,2,2,1,3,3) | (PW+d) = E; (PW+d+1) = D
> 6D 51 d | LD (PX+d),DE | 13 (2,2,2,1,3,3) | (PX+d) = E; (PX+d+1) = D
> 6D 61 d | LD (PY+d),DE | 13 (2,2,2,1,3,3) | (PY+d) = E; (PY+d+1) = D
> 6D 71 d | LD (PZ+d),DE | 13 (2,2,2,1,3,3) | (PZ+d) = E; (PZ+d+1) = D
> 6D 81 d | LD (PW+d),IX | 13 (2,2,2,1,3,3) | (PW+d)=IXlow; (PW+d+1)=IXhigh
> 6D 91 d | LD (PX+d),IX | 13 (2,2,2,1,3,3) | (PX+d)=IXlow; (PX+d+1)=IXhigh
> 6D A1 d | LD (PY+d),IX | 13 (2,2,2,1,3,3) | (PY+d)=IXlow; (PY+d+1)=IXhigh
> 6D B1 d | LD (PZ+d),IX | 13 (2,2,2,1,3,3) | (PZ+d)=IXlow; (PZ+d+1)=IXhigh
> 6D C1 d | LD (PW+d),IY | 13 (2,2,2,1,3,3) | (PW+d)=IYlow; (PW+d+1)=IYhigh
> 6D D1 d | LD (PX+d),IY | 13 (2,2,2,1,3,3) | (PX+d)=IYlow; (PX+d+1)=IYhigh
> 6D E1 d | LD (PY+d),IY | 13 (2,2,2,1,3,3) | (PY+d)=IYlow; (PY+d+1)=IYhigh
> 6D F1 d | LD (PZ+d),IY | 13 (2,2,2,1,3,3) | (PZ+d)=IYlow; (PZ+d+1)=IYhigH

> 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 the 8-bit signed displacement d with rr (any of the 16-bit registers BC, DE, IX or IY).

> 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).

<< Previous | Next >>