<< Previous | Next >>

RRB A,BCDE
RRB A,JKHL
    Rotate Right with A
    Rabbit 4000/5000 Instruction

Opcode
Instruction
Operation
DD 7F RRB A,BCDE {A, BCDE} = {E, A, BCD}
FD 7F RRB A,JKHL {A, JKHL} = {L, A, JKH}

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
4
n/a
n/a
Rabbit 5000
4
4
2

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

Description

Rotates 8 bits to the right with A the data in BCDE or JKHL. For example, the data in B moves to C, while the data in C moves to D. The low-order byte moves to A and A moves to the high-order byte. See the figure below.

Figure 13: The bit logic of the "RRA 8,BCDE" instruction.


Rabbit Instructions << Previous | Next >> rabbit.com