Texas Instruments TMS320C28x Reference Manual page 420

Dsp cpu and instruction set
Table of Contents

Advertisement

OR loc16, AX
SYNTAX OPTIONS
OR loc16, AX
Operands
loc16
AX
Description
Flags and
N
Modes
Z
Repeat
Example
; OR the contents of VarA with VarB and store in VarB:
MOV
OR
1001 100A LLLL LLLL
Addressing mode (see Chapter 5)
Aaccumulator high (AH) or accumulator low (AL) register
Perform a bitwise OR operation on the contents of location pointed to by the
"loc16" addressing mode with the specified AX register. The result is stored
in the addressed location specified by "loc16":
[loc16] = [loc16] OR 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 OR AL
OR loc16, AX
Bitwise OR
OBJMODE
RPT
CYC
X
1
6-263

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