Texas Instruments TMS320C28x Reference Manual page 414

Dsp cpu and instruction set
Table of Contents

Advertisement

OR ACC, loc16
SYNTAX OPTIONS
OR ACC, loc16
Operands
ACC
loc16
Description
Flags and
N
Modes
Z
Repeat
Example
; Calculate the 32-bit value: VarA = VarA OR 0:VarB
MOVL
OR
MOVL
Accumulator register
Addressing mode (see Chapter 5)
Perform a bitwise OR 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 OR 0:[loc16];
The load to ACC is tested for a negative condition. If bit 31 of ACC is 1, then
the negative flag bit is set; otherwise it is cleared.
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 OR instruction will be executed N+1 times. The state of the Z and N flags
will reflect the final result.
ACC,@VarA
ACC,@VarB
@VarA,ACC
OPCODE
1010 1111 LLLL LLLL
; Load ACC with contents of VarA
; OR ACC with contents of 0:VarB
; Store result in VarA
OR ACC, loc16
Bitwise OR
OBJMODE
RPT
CYC
1
Y
N+1
6-257

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