beautypg.com

Sla/sla2/sla4, Sla/sla2/sla4 -30, Maxq family user’s guide – Maxim Integrated MAXQ Family User Manual

Page 207

background image

18-30

MAXQ Family User’s Guide

(MAXQ10 Version)

Shift Accumulator Left Arithmetically

SLA/SLA2/SLA4

One, Two, or Four Times

Description:

Shifts the active accumulator left once, twice, or four times respectively for SLA, SLA2, and SLA4. For each shift iter-

ation, a 0 is shifted into the lsb, and the msb is shifted into the Carry (C) flag. For signed data, this shifting process

effectively retains the sign orientation of the data to the point at which overflow/underflow would occur.

Status Flags:

C, S, Z

SLA Operation: Carry Flag 7 Active Acc (Acc) 0

C

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

Encoding:

15

0

Example(s):

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

SLA

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

SLA

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

SLA2 Operation:

Carry Flag 7 Active Acc (Acc) 0

C

← Acc.6 ; Acc.[7:2]← Acc.[5:0] ; Acc.[1:0] ← 0

Encoding:

15

0

Example(s):

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

SLA2

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

SLA4 Operation:

Carry Flag 7 Active Acc (Acc) 0

C

← Acc.4 ; Acc.[7:4]← Acc.[3:0] ; Acc.[3:0] ← 0

Encoding:

15

0

Example(s):

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

SLA4

; Acc = 30h, C=0, S=0, Z=0

1000

1010

0011

1010

0

1000

1010

0110

1010

0

0

1000

1010

0010

1010

Maxim Integrated