Chapter 5: Standard RLL Instructions - Math
Decrement Binary (DECB)
1
The Decrement Binary instruction decrements a binary
230
value in a specified V-memory location by "1" each time the
240
instruction is executed.
2
250-1
260
3
DS
Used
4
HPP Used
Operand Data Type
5
V-memory
6
Pointer
7
Discrete Bit Flags
SP63
8
NOTE: The status flags are only valid until another instruction that uses the same flag is executed.
9
In the following example when C5 is on, the value in V2000 is decreased by 1.
10
DirectSOFT
11
C5
DECB
Decrement the binary value
12
in V2000 by "1"
13
14
A
B
C
D
5–108
DL205 User Manual, 4th Edition, Rev. B
DL230 Range
A
aaa
V
All (See page 3 - 53)
P
-
On when the result of the instruction causes the value in the accumulator to be zero.
V2000
4
A
3
?
C
V2000
V2000
4
A
?
3
B
DL240 Range
DL250-1 Range
aaa
All (See page 3 - 54)
All (See page 3 - 55)
All V-memory
All V-memory
(See page 3 - 54)
(See page 3 - 55)
Description
Handheld Programmer Keystrokes
$
P
D
SHFT
STR
CV
3
D
E
C
B
SHFT
3
4
2
DECB
A aaa
DL260 Range
aaa
All (See page 3 - 56)
All V-memory
(See page 3 - 56)
C
F
SHFT
ENT
2
5
C
A
A
1
2
0
0
aaa
A
ENT
0
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?