ZAP OVC
SYNTAX OPTIONS
ZAP OVC
Operands
OVC
Description
Flags and
OVC
Modes
Repeat
Example
; Calculate: VarD = sat(VarA + VarB + VarC)
ZAP
MOVL
ADDL
ADDL
SAT
MOVL
overflow counter bits in Status Register 0 (ST0)
Clear the overflow counter (OVC) bits in Status Register 0 (ST0).
The 6-bit overflow counter bits (OVC) are cleared.
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
OVC
ACC,@VarA
ACC,@VarB
ACC,@VarC
ACC
@VarD,ACC
OPCODE
0101 0110 0101 1100
; Zero overflow counter
; ACC = VarA
; ACC = ACC + VarB
; ACC = ACC + VarC
; Saturate if OVC != 0
; Store saturated result into VarD
ZAP OVC
Clear Overflow Counter
OBJMODE
RPT
CYC
1
−
1
6-395
Need help?
Do you have a question about the TMS320C28x and is the answer not in the manual?