MOV loc16,OVC
6-173
MOV loc16,OVC
Store the Overflow Counter
SYNTAX OPTIONS
OPCODE
OBJMODE
RPT
CYC
MOV loc16,OVC
0101 0110 0010 1001
0000 0000 LLLL LLLL
1
−
1
Operands
loc16
Addressing mode (see Chapter 5)
OVC
Overflow counter
Description
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;
Flags and
N
If (loc16 = @AX) and bit 15 of AX is 1, then set N; otherwise clear N.
g
Modes
Z
If (loc16 = @AX) and AX is zero, then set Z; otherwise clear Z.
Repeat
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
Example
; Save and restore contents of ACC and OVC bits:
MOV *SP++,OVC
; Save OVC on stack
MOV *SP++,AL
; Save AL on stack
MOV *SP++,AH
; Save AH on stack
.
.
.
.
MOV AH,*−−SP
; Restore AH from stack
MOV AL,*−−SP
; Restore AL from stack
MOV OVC,*−−SP
; Restore OVC from stack
Содержание TMS320C28x
Страница 30: ...1 12...
Страница 80: ...This page intentionally left blank 2 50 This page intentionally left blank...
Страница 269: ...IN loc16 PA 6 112 MOV AL 0 AL 0 UOUT IORegC AL IOspace IORegC AL 10...
Страница 308: ...MAXCUL P loc32 6 151 Saturate MOVL Var64 2 ACC Store result into Var64 MOVL Var64 P...
Страница 509: ...SUBL ACC P PM 6 352 SUBL ACC P PM ACC S B 11 M X 4 MOVH Y ACC 5 Store Q15 result into Y...
Страница 585: ...This page intentionally left blank 7 32 This page intentionally left blank...