LSL ACC,#1..16
6-133
LSL ACC,#1..16
Logical Shift Left
SYNTAX OPTIONS
OPCODE
OBJMODE
RPT
CYC
LSL ACC,#1..16
1111 1111 0011 SHFT
X
Y
N+1
Operands
ACC
Accumulator register
#1..16
Shift value
Description
Perform a logical shift left on the content of the ACC register by the amount
specified by the shift value. During the shift, the low order bits of the ACC
register are zero filled and the last bit shifted out is stored in the carry flag bit:
0
C
ACC
ACC
Last bit out
Discard
other bits
Left shift
(Immediate value)
Flags and
Modes
N
After the shift, if bit 31 of ACC is 1 then the negative flag bit is set; otherwise it
is cleared.
Z
After the shift, if ACC is 0, then the Z bit is set, otherwise it is cleared.
C
The last bit to be shifted out of ACC is stored in C.
Repeat
This instruction is repeatable. If the operation follows a RPT instruction, then
the LSL instruction will be executed N+1 times. The state of the Z, N, and C
flags will reflect the final result.
Example
; Logical shift left contents of VarA by 4:
MOVL ACC,@VarA
; ACC = VarA
LSL ACC,#4
; Logical shift left ACC by 4
MOVL @VarA,ACC
; Store result into VarA
Summary of Contents for TMS320C28x
Page 30: ...1 12...
Page 80: ...This page intentionally left blank 2 50 This page intentionally left blank...
Page 269: ...IN loc16 PA 6 112 MOV AL 0 AL 0 UOUT IORegC AL IOspace IORegC AL 10...
Page 308: ...MAXCUL P loc32 6 151 Saturate MOVL Var64 2 ACC Store result into Var64 MOVL Var64 P...
Page 509: ...SUBL ACC P PM 6 352 SUBL ACC P PM ACC S B 11 M X 4 MOVH Y ACC 5 Store Q15 result into Y...
Page 585: ...This page intentionally left blank 7 32 This page intentionally left blank...