NEC 78K/0S Series User Manual page 84

8-bit single-chip microcontroller
Table of Contents

Advertisement

ROR
[Instruction format]
[Operation]
[Operand]
Mnemonic
ROR
A, 1
[Flag]
Z
AC
[Description]
The destination operand (dst) contents specified with the 1st operand are rotated to the right just once.
The LSB (bit 0) contents are simultaneously rotated to MSB (bit 7) and transferred to the CY flag.
[Description example]
ROR A, 1; The A register contents are rotated one bit to the right.
84
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
ROR dst, cnt
← dst
← dst
(CY, dst
, dst
7
0
m–1
Operand (dst, cnt)
CY
×
CY
7
User's Manual U11047EJ3V0UM00
Byte Data Rotation to the Right
) × one time
m
Rotate Right
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents