6.7 Floating point calculation
6.7.1 ADD - R&SUB - R
Input/output Operand
Data type
IN1, IN2
VD, ID, QD, MD, SD, SMD, LD, AC,constant, *VD, *LD, *AC
Real number
OUT
VD, ID, QD, MD, SD, SMD, LD, AC, *VD, *LD, *AC
Real number
ADD - R:Adding N1 and N2, the result is put into the
output buffer.
SUB - R:N1 minus N2, the result is put into the output
buffer.
N1, N2, and OUT are 32 bits of real numbers.
IN1 + IN2 = OUT
IN1 - IN2 = OUT
Special memory bit:
SM1.0
Zero result
SM1.1
Overflow
SM1.2
Negative result
SM1.1 is used to indicate overflow errors and illegal values.
119
Made with FlippingBook - Online magazine maker