MOVU OVC,loc16
6-222
MOVU OVC,loc16 Load Overflow Counter With Unsigned Value
SYNTAX OPTIONS OPCODE OBJMODE RPT CYC
MOVU OVC,loc16 0101 0110 0110 0010
0000 0000 LLLL LLLL
1 − 1
Operands OVC 6-bit overflow counter
Description Load the overflow counter (OVC) with the lower 6 bits of the location pointed
to by the “loc16” addressing mode:
OVC = [loc16(5:0)]
Flags and
Modes
OVC
The 6-bit overflow counter is modified.
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:
MOVU *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
MOVU OVC,*−−SP ; Restore OVC from stack