NOT ACC
SYNTAX OPTIONS
NOT ACC
Operands
ACC
Description
Flags and
N
Modes
Z
Repeat
Example
; Complement the contents of VarA:
MOVL
NOT
MOVL
1111 1111 0101 0101
Accumulator register
The content of the ACC register is replaced with its complement:
ACC = ACC XOR 0xFFFFFFFF;
After the operation, the N flag is set if bit 31 of the ACC is 1, else N is cleared.
After the operation, the Z flag is set if the ACC is zero, else Z is cleared.
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
ACC,@VarA
ACC
@VarA,ACC
Complement Accumulator
OPCODE
OBJMODE
; ACC = VarA
; Complement ACC contents
; Store result into VarA
NOT ACC
RPT
CYC
X
−
1
6-255
Need help?
Do you have a question about the TMS320C28x and is the answer not in the manual?