Texas Instruments TMS320C28x Reference Manual page 208

Dsp cpu and instruction set
Table of Contents

Advertisement

ANDB AX, #8bit
SYNTAX OPTIONS
ANDB AX, #8bit
Operands
AX
#8bit
Description
Flags and
N
Modes
Z
Repeat
Example
; Add VarA to VarB, keep LSByte and store result in VarC:
MOV
AL,@VarA
ADD
AL,@VarB
ANDB
MOV
@VarC,AL
Accumulator high (AH) or accumulator low (AL) register
8-bit immediate constant value
Perform a bitwise AND operation with the content of the specified AX register
(AH or AL) with the given 8-bit unsigned immediate constant zero extended.
The result is stored in AX:
AX = AX AND 0:8bit;
The load to AX is tested for a negative condition. If bit 15 of AX is 1, then the
negative flag bit is set; otherwise it is cleared.
The load to AX is tested for a zero condition. The zero flag bit is set if the
operation generates AX = 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,#0xFF
OPCODE
1001 000A CCCC CCCC
; Load AL with contents of VarA
; Add to AL contents of VarB
; AND contents of AL with 0x00FF
; Store result in VarC
ANDB AX, #8bit
Bitwise AND 8-bit Value
OBJMODE
RPT
CYC
X
1
6-51

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C28x and is the answer not in the manual?

Table of Contents

Save PDF