beautypg.com

Maxim Integrated MAXQ622 User Manual

Page 230

background image

MAXQ612/MAXQ622 User’s Guide

16-20

Maxim Integrated

RL/RLC

Rotate Left Accumulator Carry Flag Exclusive/Inclusive

Description:

Rotates the active accumulator left by a single bit position . The RL instruction circulates the msbit of
the accumulator (bit 15) back to the lsbit (bit 0) while the RLC instruction includes the Carry (C) flag
in the circular left shift .

Status Flags: C (for RLC only), S, Z (for RLC only)

RL Operation: 15

Active Accumulator (Acc)

0

Acc .[15:1]

← Acc .[14:0]; Acc .0 ← Acc .15

Encoding:

15

0

1000

1010

0100

1010

Example(s):

; Acc = A345h, S=1, Z=0

RL

; Acc = 468Bh, S=0, Z=0

RL

; Acc = 8D16h, S=1, Z=0

RLC

15

Active Accumulator (Acc)

0 Carry Flag

Operation:

Acc .[15:1]

← Acc .[14:0]; Acc .0 ← C; C ← Acc .15

Encoding:

15

0

1000

1010

0101

1010

Example(s):

; Acc = A345h, C=1, S=1, Z=0

RLC

; Acc = 468Bh, C=1, S=0, Z=0

RLC

; Acc = 8D17h, C=0, S=1, Z=0

This manual is related to the following products: