80
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
User's Manual U12326EJ4V0UM
Rotate Right Digit
ROR4 Digit Rotation to the Right
[Instruction format] ROR4 dst
[Operation] A3-0 ←(dst)3-0, (dst)7-4 ←A3-0, (dst)3-0 ←(dst)7-4
[Operand]
Mnemonic Operand(dst)
ROR4 [HL] Note
Note Specify an area other than the SFR area as operand [HL].
[Flag]
ZACCY
[Description]
•The lower 4 bits of the A register and the 2-digit data (4-bit data) of the destination operand (dst) are rotated
to the right.
The higher 4 bits of the A register remain unchanged.
[Description example]
ROR4 [HL]; Rightward digit rotation is executed with the memory contents specified by the A and HL registers.
A (HL)
7430 7430
Before Execution 1010 0011 1100 0101
After Execution 1010 0101 0011 1100
00 347
dst
347
A