DL205 User Manual, 4th Edition, Rev. D
5-120
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Divide Binary by Top of Stack (DIVBS)
Divide Binary Top of Stack is a 32-bit instruction that divides
the 32-bit binary value in the accumulator by the 16-bit binary
value in the first level of the accumulator stack. The result
resides in the accumulator. and the remainder resides in the
first level of the accumulator stack.
NOTE: Status flags are valid only until another instruction uses the same flag.
In the following example, when X1 is on, the value in V1400 will be loaded into the accumulator
using the Load instruction. The value in V1420 and V1421 is loaded into the accumulator
using the Load Double instruction, pushing the value previously loaded in the accumulator
onto the accumulator stack. The binary value in the accumulator is divided by the binary value
in the first level of the accumulator stack using the Divide Binary Stack instruction. The value
in the accumulator is copied to V1500 and V1501 using the Out Double instruction.
230
240
250-1
260
DIVBS
Discrete Bit Flags Description
SP53 On when the value of the operand is larger than the accumulator can work with
SP63 On when the result of the instruction causes the value in the accumulator to be zero
SP70 On anytime the value in the accumulator is negative
LD
V1400
X1 Load thevalue in V1400 into
theaccumulator
LDD
V1420
Load thevalue in V1420 and
V1421 into theaccumulator
OUTD
V1500
Copy thevalue in the
accumulatortoV1500
and V1501
XXXXXXXXLevel 1
XXXXXXXX
Level 2
XXXXXXXXLevel 3
XXXXXXXX
Level 4
XXXXXXXXLevel 5
XXXXXXXX
Level 6
XXXXXXXXLevel 7
XXXXXXXXLevel 8
00000014Level 1
XXXXXXXX
Level 2
XXXXXXXXLevel 3
XXXXXXXX
Level 4
XXXXXXXXLevel 5
XXXXXXXX
Level 6
XXXXXXXXLevel 7
XXXXXXXX
Level 8
DIVBS
Dividethe binaryvalue in
theaccumulatorbythe
binaryvalue in thefirst level
of theaccumulatorstack
Acc.