![background image](http://html1.mh-extra.com/html/texas-instruments/tms320c28x/tms320c28x_reference-manual_1097071540.webp)
XOR ACC,#16bit << #0..16
6-383
XOR ACC,#16bit << #0..16
Bitwise Exclusive OR
SYNTAX OPTIONS
OPCODE
OBJMODE
RPT
CYC
XOR ACC,#16bit << #0..15
0011 1110 0010 SHFT
CCCC CCCC CCCC CCCC
1
−
1
XOR ACC,#16bit << #16
0101 0110 0100 1110
CCCC CCCC CCCC CCCC
1
−
1
Operands
ACC
Accumulator register
#16bit
16-bit immediate constant value
#0..16
Shift value (default is ”<< #0” if no value specified)
Description
Perform a bitwise XOR operation on the ACC register with the given 16-bit
unsigned constant value left shifted as specified. The value is zero extended
and lower order bits are zero filled before the XOR operation. The result is
stored in the ACC register:
ACC = ACC XOR (0:16bit << shift value);
Flags and
Modes
N
The load to ACC is tested for a negative condition. If bit 31 of ACC is 1, then
the negative flag bit is set; otherwise it is cleared.
Z
The load to ACC is tested for a zero condition. The zero flag bit is set if the
operation generates ACC = 0; otherwise it is cleared
Repeat
This instruction is not repeatable. If this instruction follows the RPT in-
struction, it resets the repeat counter (RPTC) and executes only once.
Example
; Calculate the 32-bit value: VarA = VarA XOR 0x08000000
MOVL ACC,@VarA
; Load ACC with contents of VarA
XOR ACC,#0x8000 << 12
; XOR ACC with 0x08000000
MOVL @VarA,ACC
; Store result in 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...