AND ACC, loc16
AND ACC, loc16
SYNTAX OPTIONS
AND ACC, loc16
Operands
ACC
loc16
Description
Flags and
g
N
Modes
Z
Repeat
Example
; Calculate the 32-bit value: VarA = VarA AND 0:VarB
MOVL ACC,@VarA
AND
MOVL @VarA,ACC
6-44
Accumulator register
Addressing mode (see Chapter 5)
Perform a bitwise AND operation on the ACC register with the zero-extended
content of the location pointed to by the "loc16" address mode. The result is
stored in the ACC register:
ACC = ACC AND 0:[loc16];
Clear flag.
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
This operation is repeatable. If the operation follows a RPT instruction,
then the AND instruction will be executed N+1 times. The state of the Z
and N flags will reflect the final result.
ACC,@VarB
OPCODE
1000 1001 LLLL LLLL
; Load ACC with contents of VarA
; AND ACC with contents of 0:VarB
; Store result in VarA
Bitwise AND
OBJMODE
RPT
CYC
1
Y
N+1
Need help?
Do you have a question about the TMS320C28x and is the answer not in the manual?