S1C63000 CORE CPU MANUAL EPSON 123
CHAPTER 4: INSTRUCTION SET
RR [%ir]+ Rotate right location [ir reg.] with carry and increment ir reg. 2 cycles
Function: , ir ← ir +1
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. Then increments the ir register (X or Y). The increment result of the ir
register does not affect the flags.
Code:
Mnemonic MSB LSB
RR [%X]+ 100001110110110EDH
RR [%Y]+ 100001110111110EFH
Flags: EICZ
↓ – ↕↕
Mode: Register indirect
Extended addressing: Invalid
SBC %r,%r' Subtract with carry r' reg. from r reg. 1 cycle
Function: r ← r - r' - C
Subtracts the content of the r' register (A or B) and carry (C) from the r register (A or B).
Code: Mnemonic MSB LSB
SBC %A,%A 110001111000X18F0H, (18F1H)
SBC %A,%B 110001111001X18F2H, (18F3H)
SBC %B,%A 110001111010X18F4H, (18F5H)
SBC %B,%B 110001111011X18F6H, (18F7H)
Flags: EICZ
↓ – ↕↕
Mode: Src: Register direct
Dst: Register direct
Extended addressing: Invalid
[ir]
C
3210