Divide Real (DIVR)
The Divide Real instruction divides a real number in the
230
accumulator by either a real constant or a real number
240
occupying two consecutive V-memory locations. The result
250-1
resides in the accumulator. Both numbers must conform to
the IEEE floating point format.
260
Operand Data Type
DS
Used
HPP
N/A
V-memory
Pointer
Constant
Discrete Bit Flags
SP63
SP70
SP71
SP72
SP73
SP74
SP75
NOTE: Status flags are valid only until another instruction uses the same flag.
DirectSOFT
X1
LDR
R15.0
Load the real number 15.0
into the accumulator.
DIVR
R10.0
Divide the accumulator contents
by the real number 10.0.
OUTD
V1400
Copy the result in the accumulator
to V1400 and V1401.
NOTE: The current HPP does not support real number entry with automatic conversion to the 32-bit IEEE
format. You must use DirectSOFT for this feature.
Chapter 5: Standard RLL Instructions - Math
DL250-1 Range
A
aaa
V
All (See page 3 - 55)
P
All V mem (See page 3 - 55)
-3.402823E + 038 to
R
+ 3.402823E+038
On when the result of the instruction causes the value in the accumulator to be zero.
On anytime the value in the accumulator is negative.
On anytime the V-memory specified by a pointer (P) is not valid.
On anytime the value in the accumulator is a valid floating point number.
On when a signed addition or subtraction results in a incorrect sign bit.
On anytime a floating point math operation results in an underflow error.
On when a real number instruction is executed and a non-real number was encountered.
1
5
(decimal)
1
0
÷
÷
1
.
5
Acc.
8 4
2
1
8
4 2
1
8
4
2 1
Acc.
0 0
1
1
1
1 1
1
1
1
0 0
Sign Bit
Exponent (8 bits)
64 + 32 + 16 + 8 + 4 + 2 + 1 = 127
127 - - 127 = 0
Implies 2 (exp 0)
DL205 User Manual, 4th Edition, Rev. B
DL260 Range
All (See page 3 - 56)
All V mem (See page 3 - 56)
-3.402823E + 038 to
+ 3.402823E+038
Description
4
1
7
0
0
0
0
0
4
1
7
0
0
0
0
0
(Accumulator)
4
1
2
0
0
0
0
0
(DIVR )
3
F C
0
0
0
0
0
V1401
V1400
3
F C
0
0
0
0
0
(Hex number)
Real Value
8
4
2
1
8 4
2
1
8
4 2
1
8
4
0
0
0
0
0 0
0
0
0
0 0
0
0
0
Mantissa (23 bits)
1.1 x 2 (exp 0) = 1.1 binary= 1.5 decimal
DIVR
A aaa
aaa
2 1
8
4
2
1
0 0
0
0
0
0
5–99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?