ASR64 ACC:P,#1..16
6-55
ASR64 ACC:P,#1..16
Arithmetic Shift Right of 64-bit Value
SYNTAX OPTIONS
OPCODE
OBJMODE
RPT
CYC
ASR64 ACC:P,#1..16
0101 0110 1000 SHFT
1
−
1
Operands
ACC:P
Accumulator register (ACC) and product register (P)
#1..16
Shift value
Description
Arithmetic shift right the 64-bit combined value of the ACC:P registers by the
amount specified in the shift value field. As the value is shifted, the most
significant bits are sign extended and the last bit shifted out is stored in the
carry bit flag:
SIGN
C
ACC:P
ACC:P
Right shift
(immediate value)
Discard other bits
Last bit out
Flags and
Modes
N
After the shift, if bit 31 of the ACC register is 1 then ACC:P is negative and the
N bit is set; otherwise N is cleared.
Z
After the shift, the Z flag is set if the combined 64-bit value of the ACC:P is
zero; otherwise, Z is cleared.
C
The last bit shifted out of the combined 64-bit value is loaded into the C bit.
Repeat
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
Example
; Arithmetic shift right the 64-bit Var64 by 10:
MOVL ACC,@Var64+2
; Load ACC with high 32 bits of Var64
MOVL P,@Var64+0
; Load P with low 32 bits of Var64
ASR64 ACC:P,#10
; Arithmetic shift right ACC:P by 10
MOVL @Var64+2,ACC
; Store high 32-bit result into Var64
MOVL @Var64+0,P
; Store low 32-bit result into Var64
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...