XOR loc16,#16bit
XOR loc16,#16bit
SYNTAX OPTIONS
XOR loc16,#16bit
Operands
loc16
#16bit
Description
Flags and
N
Modes
Z
Repeat
Example
; Toggle Bits 2 and 14 of VarA:
; VarA = VarA XOR #(1 << 2 | 1 << 14)
XOR
6-386
Addressing mode (see Chapter 5)
16-bit immediate constant value
Perform a bitwise XOR operation on the content of the location pointed to by
the "loc16" addressing mode and the 16-bit immediate constant value. The
result is stored in the location pointed to by "loc16":
[loc16] = [loc16] XOR 16bit;
Smart Encoding:
If loc16 = AH or AL and #16bit is an 8-bit number, then the assembler will
encode this instruction as XO"RB AX,#8bt. To override this encoding, use
the XORW AX,#16bit instruction alias.
After the operation if bit 15 of [loc16] 1, set N; otherwise, clear N.
After the operation if [loc16] is zero, set Z; otherwise, clear Z.
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
@VarA,#(1 << 2 | 1 << 14)
OPCODE
0001 1100 LLLL LLLL
CCCC CCCC CCCC CCCC
; Toggle bits 2 and 11 of VarA
Bitwise Exclusive OR
OBJMODE
RPT
CYC
X
−
1
Need help?
Do you have a question about the TMS320C28x and is the answer not in the manual?