XOR loc16, AX
SYNTAX OPTIONS
XOR loc16, AX
Operands
loc16
AX
Description
Flags and
N
Modes
Z
Repeat
Example
; XOR the contents of VarA with VarB and store in VarB:
MOV
XOR
1111 001A LLLL LLLL
Addressing mode (see Chapter 5)
Accumulator high (AH) or accumulator low (AL) register
Perform a bitwise exclusive OR operation on the 16-bit contents of location
pointed to by the "loc16" addressing mode and the specified AX register (AH
or AL). The result is stored in the location pointed to by "loc16":
[loc16] = [loc16] XOR AX;
This instruction performs a read-modify-write operation.
The load to [loc16] is tested for a negative condition. If bit 15 of [loc16] is 1,
then the negative flag bit is set; otherwise it is cleared.
The load to [loc16] is tested for a zero condition. The zero flag bit is set if the
operation generates [loc16] = 0, otherwise it is cleared.
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
AL,@VarA
@VarB,AL
OPCODE
; Load AL with contents of VarA
; VarB = VarB XOR AL
XOR loc16, AX
Bitwise Exclusive OR
OBJMODE
RPT
CYC
X
−
1
6-385
Need help?
Do you have a question about the TMS320C28x and is the answer not in the manual?