Texas Instruments TMS320C28x Reference Manual page 344

Dsp cpu and instruction set
Table of Contents

Advertisement

MOVB ACC,#8bit
SYNTAX OPTIONS
MOVB ACC,#8bit
Operands
ACC
#8bit
Description
Flags and
g
N
Modes
Z
Repeat
Example
; Increment contents of 32-bit location VarA:
MOVB
ADDL
MOVL
0000 0010 CCCC CCCC
Accumulator register
8-bit immediate unsigned constant value
Load the ACC register with the specified 8-bit, zero-extended immediate
constant:
ACC = 0:8bit;
After the load, the N flag is set if bit 31 of the ACC is 1, else N is cleared.
After the load, the Z flag is set if the ACC value 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,#1
ACC,@VarA
@VarA,ACC
Load Accumulator With 8-bit Value
OPCODE
; Load ACC with the value 0x0000 0001
; Add to ACC the contents of VarA
; Store result back into VarA
MOVB ACC,#8bit
OBJMODE
RPT
CYC
1
1
6-187

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?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF