beautypg.com

Rl/rlc, Rl/rlc -26, Maxq family user’s guide – Maxim Integrated MAXQ Family User Manual

Page 203

background image

18-26

MAXQ Family User’s Guide

(MAXQ10 Version)

Rotate Left Accumulator

RL/RLC

Carry Flag (Ex/In)clusive

Description:

Rotates the active accumulator left by a single bit position. The RL instruction circulates the msb of the accumula-

tor (bit 7) back to the lsb (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:

7

Active Acc 0

Acc.[7:1]

← Acc.[6:0]; Acc.0 ← Acc.7

Encoding:

15

0

Example(s):

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

RL

; Acc = 47h, S=0, Z=0

RL

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

RLC Operation:

7

Active Acc 0 Carry Flag

Acc.[7:1]

← Acc.[6:0]; Acc.0 ← C; C ← Acc.7

Encoding:

15

0

Example(s):

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

RLC

; Acc = 47h, C=1, S=0, Z=0

RLC

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

1000

1010

0100

1010

1000

1010

0101

1010

Maxim Integrated