Rl — Rotate Left - Samsung S3F84B8 User Manual

8-bit cmos
Hide thumbs Also See for S3F84B8:
Table of Contents

Advertisement

S3F84B8_UM_REV 1.00
6.3.57 RL — ROTATE LEFT
dst
RL
C  dst (7)
Operation:
dst (0)  dst (7)
dst (n + 1)  dst (n), n = 0–6
The contents of destination operand are rotated left one bit position. The initial value of bit 7 is
moved to bit zero (LSB) position. It also replaces the carry flag.
C: Set if the bit rotated from the most significant bit position (bit 7) was "1".
Flags:
Z: Set if the result is "0"; cleared otherwise.
S: Set if the result bit 7 is set; cleared otherwise.
V: Set if arithmetic overflow occurred; cleared otherwise.
D: Unaffected.
H: Unaffected.
Format:
opc
Given register 00H = 0AAH, register 01H = 02H, and register 02H = 17H:
Examples:
RL
RL
In the first example, if general register 00H contains the value 0AAH (10101010B), the statement
"RL 00H" rotates the 0AAH value left one bit position, leaving the new value 55H (01010101B)
and setting the carry and overflow flags.
C
dst
00H
Register 00H = 55H, C = "1"
@01H 
Register 01H = 02H, register 02H = 2EH, C = "0"
7
0
Bytes
2
6-70
6 INSTRUCTION SET
Cycles
Opcode
(Hex)
4
90
4
91
Addr Mode
dst
R
IR

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents