![background image](http://html1.mh-extra.com/html/texas-instruments/tms320c28x/tms320c28x_reference-manual_1097071408.webp)
NORM ACC, *ind
6-251
NORM ACC, *ind
Normalize ACC and Modify Selected Auxiliary Register
SYNTAX OPTIONS
OPCODE
OBJMODE
RPT
CYC
NORM ACC, *
0101 0110 0010 0100
1
Y
N+4
NORM ACC, *++
0101 0110 0101 1010
1
Y
N+4
NORM ACC, *
−−
0101 0110 0010 0000
1
Y
N+4
NORM ACC, *0++
0101 0110 0111 0111
1
Y
N+4
NORM ACC, *0
−−
0101 0110 0011 0000
1
Y
N+4
Operands
ACC
Accumulator register
*ind
*, *++, *
−−
, *0++, *0
−−
indirect addressing modes (see Chapter 5)
Description
Normalize the signed content of the ACC register and modify, as specified by
the indirect addressing mode, the auxiliary register (XAR0 to XAR7) pointed
to by the auxiliary register pointer (ARP):
Note:
The NORM instruction normalizes a signed number in the ACC register by finding the
magnitude of the number. An XOR operation is performed on ACC bits 31 and 30. If the
bits are the same, then the content of the ACC register is logically shifted left by 1 to
eliminate the extra sign bit and the selected pointer is modified. If the bits are different,
the ACC is not shifted and the selected pointer is not modified. The selected pointer
does not access any memory location.
Flags and
Modes
Z
After the operation, the Z flag is set if the ACC value is zero, else Z is cleared.
Modes
N
After the operation, the N flag is set if bit 31 of the ACC is 1, else N is cleared.
TC
If the operation set TC, no normalization was needed (ACC did not need to
be modified). If the operation cleared TC, bits 31 and 30 were the same and,
as a result, the ACC register was logically shifted left by 1.
ARP
Auxiliary register pointer selects which pointer to modify as part of the
operation (XAR0 to XAR7).
Repeat
This instruction is repeatable. If the operation follows a RPT instruction, then
the NORM instruction will be executed N+1 times. The state of the Z, N, and
TC flags will reflect the final result. Note: If you only want the NORM
instruction to execute until normalization is done, you can create a loop that
checks the value of the TC bit. When TC = 1, normalization is complete.
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...