
<
2
.75
7UGT U/CPWCN
=L/2*
#FFTGUU5RCEG
7/<:
DEC
Decrement
Instruction Format:
DEC dst
Operation:
dst
←
dst - 1
The contents of the destination operand are decremented by one.
Flags:
When the instruction is executed, the flags are set as follows:
Example: Working register
R10
contains
2AH
. The following statement leaves the value
29H
in working
register
R10
. The
Z
,
V
, and
S
flags are set to 0.
DEC R10
Op Code: 00 EA
Example: Register
B3H
contains
CBH
. Register
CBH
contains
01H
. The following statement leaves the value
00H
in Register
CBH
. The
Z
flag is set to 1, and the
V
and
S
flags are set to 0.
DEC @B3H
Op Code: 01 B3
C:
The value set by the preceding instruction.
Z:
1 if the result is
0
; otherwise, 0.
S:
1 if bit
7
of the result is 1 (negative); otherwise, 0.
V:
1 if arithmetic overflow occurs; otherwise, 0.
D:
The value set by the preceding instruction.
H:
The value set by the preceding instruction.
OPC
dst
OPC (Hex)
Address Mode
dst
00
01
R
IR