Chapter 5: Standard RLL Instructions - Math
Add Real (ADDR)
Add Real is a 32-bit instruction that adds a real number, which is
1
230
either two consecutive V-memory locations or a 32-bit constant,
240
to a real number in the accumulator. Both numbers must
2
250-1
conform to the IEEE floating point format. The result is a 32-bit
real number that resides in the accumulator.
260
3
DS
Used
HPP
N/A
4
V-memory
Pointer
5
Constant
6
SP63
7
SP70
SP71
SP72
8
SP73
SP74
9
SP75
NOTE: Status flags are valid only until another instruction uses the same flag.
10
DirectSOFT
X1
11
12
13
14
A
B
C
NOTE
format. You must use DirectSOFT for this feature.
D
NOTE
calculation will not work.
5–90
DL205 User Manual, 4th Edition, Rev. B
Operand Data Type
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 an invalid 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.
LDR
R7.0
Load the real number 7.0
into the accumulator
ADDR
R15.0
Add the real number 15.0 to
the accumulator contents,
which is in real number
format.
OUTD
Acc.
V1400
Copy the result in the accumulator
to V1400 and V1401.
Sign Bit
: The current HPP does not support real number entry with automatic conversion to the 32-bit IEEE
1
: If the value being added to a real number is 16,777,216 times smaller than the real number, the
2
DL250-1 Range
A
aaa
All. See
V
memory map
All V-memory.
P
See memory map
-3.402823E+038 to
R
+ 3.402823E+038
Discrete Bit Flags Description
4
0
7
4
0
(decimal)
+
1
5
+
4
1
2
2
Acc.
4
1
V1401
4
1
8 4
2
1
8
4 2
1
8
4
2 1
8
4
0 1
0
0
0
0 0
1
1
0
1 1
0
0
Exponent (8 bits)
128 + 2 + 1 = 131
1.011 x 2 (exp 4) = 10110. binary= 22 decimal
131 - - 127 = 4
Implies 2 (exp 4)
ADDR
ADDR
DL260 Range
aaa
All. See
memory map
All V-memory.
See memory map
-3.402823E+038 to
+ 3.402823E+038
E
0
0
0
0
0
E
0
0
0
0
0
(Accumulator)
7
0
0
0
0
0
(ADDR)
B
0
0
0
0
0
V1400
B
0
0
0
0
0
(Hex number)
Real Value
2
1
8 4
2
1
8
4 2
1
8
4
2 1
0
0
0 0
0
0
0
0 0
0
0
0
0 0
Mantissa (23 bits)
A aaa
A aaa
8
4
2
1
0
0
0
0
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?