Texas Instruments TMS320C28x Reference Manual page 330

Dsp cpu and instruction set
Table of Contents

Advertisement

MOV loc16,OVC
SYNTAX OPTIONS
MOV loc16,OVC
loc16
Operands
OVC
Description
Flags and
g
N
Modes
Z
Repeat
Example
; Save and restore contents of ACC and OVC bits:
MOV
*SP++,OVC
MOV
*SP++,AL
MOV
*SP++,AH
.
.
.
.
MOV
AH,*−−SP
MOV
AL,*−−SP
MOV
OVC,*−−SP
0101 0110 0010 1001
0000 0000 LLLL LLLL
Addressing mode (see Chapter 5)
Overflow counter
Store the 6 bits of the overflow counter (OVC) into the upper 6 bits of the
location pointed to by the "loc16" addressing mode and zero the lower 10 bits
of the addressed location:
[loc16(15:10)] = OVC;
[loc16(9:0)]
= 0;
If (loc16 = @AX) and bit 15 of AX is 1, then set N; otherwise clear N.
If (loc16 = @AX) and AX is zero, then set Z; otherwise clear Z.
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
; Save OVC on stack
; Save AL on stack
; Save AH on stack
; Restore AH from stack
; Restore AL from stack
; Restore OVC from stack
Store the Overflow Counter
OPCODE
OBJMODE
MOV loc16,OVC
RPT
CYC
1
1
6-173

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