Ror4 – NEC 78K/0 Series User Manual
Page 80
80
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
User's Manual U12326EJ4V0UM
Rotate Right Digit
ROR4
Digit Rotation to the Right
[Instruction format]
ROR4 dst
[Operation]
A
3-0
← (dst)
3-0
, (dst)
7-4
← A
3-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]
Z
AC
CY
[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)
7
4
3
0
7
4
3
0
Before Execution
1010
0011
1100
0101
After Execution
1010
0101
0011
1100
0
0
3
4
7
dst
3
4
7
A