LDD
LDI
Byte Copy
Rabbit 2000/3000/4000/5000 Instruction
|
| ED A8 |
LDD |
(DE) = (HL) BC = BC - 1 DE = DE - 1 HL = HL - 1 |
| ED A0 |
LDI |
(DE) = (HL) BC = BC - 1 DE = DE + 1 HL = HL + 1 |
|
| Rabbit 2000/3000/4000 |
|
|
|
| Rabbit 5000 |
|
|
|
Description
-
LDD: Loads the memory location whose address is DE with the data at the address in HL. Then it decrements the value in BC, DE, and HL.
-
LDI: Loads the memory location whose address is DE with the data at the address in HL. Then the value in BC is decremented and the value in DE and HL is incremented.
If either instruction is prefixed by IOI or IOE, the destination will be in the specified I/O space. Add 1
clock for each iteration if the prefix is IOI (internal I/O). If the prefix is IOE, add 2 clocks plus the number
of I/O wait states enabled. The V flag is cleared when BC transitions from 1 to 0.