<< Previous | Next >>

RRC b,BCDE
RRC b,JKHL
    Rotate Right Affect Carry
    Rabbit 4000 Instruction
Opcode
Instruction
Clocks
Operation
-- RRC b,BCDE 4 (2,2)   BCDE = {B[7],BCDE[31,1]}
  CF = E[0]
  b = b - 1
repeat while b != 0

DD 58

RRC 1,BCDE

4 (2,2)

repeat the operation 1 time

DD 59

RRC 2,BCDE

4 (2,2)

repeat the operation 2 times

DD 5B

RRC 4,BCDE

4 (2,2)

repeat the operation 4 times

-- RRC b,JKHL 4 (2,2)   JKHL = {J[7],JKHL[31,1]}
  CF = L[0]
  b = b - 1
repeat while b !=0

FD 58

RRC 1,JKHL

4 (2,2)

repeat the operation 1 time

FD 59

RRC 2,JKHL

4 (2,2)

repeat the operation 2 times

FD 5B

RRC 4,JKHL

4 (2,2)

repeat the operation 4 times


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

Description

Rotates to the right the data in BCDE or JKHL. Each bit in the register moves to the next lowest-order bit position (bit 31 moves to bit 30, etc.) while bit 0 moves to both bit 31 and the C flag.

Figure 15: The bit logic of RRC.

This operation happens b number of times.


<< Previous | Next >>