<< Previous | Next >>

LDDSR
LDISR
    Block Copy
    Rabbit 3000A/4000 Instruction
Opcode
Instruction
Clocks
Operation

ED 98

LDDSR

6+7i (2,2,1, (2,3,2)i,1)

   (DE) = (HL)
   BC = BC - 1
   HL = HL - 1
repeat while BC != 0

ED 90

LDISR

6+7i (2,2,1, (2,3,2)i,1)

   (DE) = (HL)
   BC = BC - 1
   HL = HL + 1
repeat while BC != 0


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

Description

These instructions are only useful when prefixed by IOI or IOE. If the prefix is IOI (internal I/O), add 1 clock for each iteration. 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, which ends the block copy.

Interrupts can occur between different repeats (after the registers have been updated), but not within an iteration. Return from the interrupt is to the first byte of the instruction, which is the I/O prefix byte if there is one.


<< Previous | Next >>