NEC 78K/0 Series User Manual page 77

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

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents