A SERVICE OF

logo

122 EPSON S1C63000 CORE CPU MANUAL
CHAPTER 4: INSTRUCTION SET
RR %r
RR [%ir]
Rotate right r reg. with carry 1 cycle
Function:
Rotates the content of the r register (A or B) including the carry (C) to the right for 1 bit. The
content of the C flag moves to bit 3 of the r register and bit 0 moves to the C flag.
Code:
Mnemonic MSB LSB
RR %A 100001111001110F3H
RR %B 100001111011110F7H
Flags: EICZ
↕↕
Mode: Register direct
Extended addressing: Invalid
r
C
3210
[ir]
C
3210
Rotate right location [ir reg.] with carry 2 cycles
Function:
Rotates the content of the data memory addressed by the ir register (X or Y) including the carry
(C) to the right for 1 bit. The content of the C flag moves to bit 3 of the data memory and bit 0
moves to the C flag.
Code:
Mnemonic MSB LSB
RR [%X] 100001110110010ECH
RR [%Y] 100001110111010EEH
Flags: EICZ
↕↕
Mode: Register indirect
Extended addressing: Valid
Extended LDB %EXT,imm8
operation: RR [%X] Rotates the content of [00imm8] (00imm8 = 0000H + 00H to FFH)
LDB %EXT,imm8
RR [%Y] Rotates the content of [FFimm8] (FFimm8 = FF00H + 00H to FFH)