NEC 78K/0 Series User Manual page 80

Nec computer hardware user's manual
Hide thumbs Also See for 78K/0 Series:
Table of Contents

Advertisement

ROR4
[Instruction format]
[Operation]
[Operand]
Mnemonic
ROR4
[HL]
Note Specify an area other than the SFR area as operand [HL].
[Flag]
Z
AC
[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.
Before Execution
After Execution
80
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
ROR4 dst
← (dst)
← A
A
, (dst)
3-0
3-0
7-4
Operand(dst)
Note
CY
7
4
3
0
A
A
7
4
3
1010
0011
1010
0101
User's Manual U12326EJ4V0UM
← (dst)
, (dst)
3-0
3-0
7-4
7
4
3
dst
(HL)
0
7
4
3
0
1100
0101
0011
1100
Rotate Right Digit
Digit Rotation to the Right
0

Advertisement

Table of Contents
loading

Table of Contents