Appendix: NGP-0 to PDP-10 Floating Point
The NGP-0 looks at all data numbers (X and Y parameters) as a fraction number in the following format (16 bits per number).
+--+--+--+--+--+--+-----------------+--+--+--+--+
| | | | | | | ... ... | | | | |
+--.--+--+--+--+--+-----------------+--+--+--+--+
Bit position 0 1 2 3 ...... 14 15
with the binary point assumed between bits 0 and 1. Bit 0 is the sign bit and all negative numbers are represented as their two's complement. The PDP-10 machine code representation of fractions in floating point (mantissa part) is very similar to the above (with one exception--the number -1), so the transformation could be obtained simply by two operations, move and substitute.
Data (X,Y) Conversion
NGP (extreme points) Floating Point (PDP-10)
(16 bits) (36 bits)
exp mantissa
1/2 0.1000 . . . . . .0 0 10000000 10 . . . . . .0
-1/2 1.1000 . . . . . .0 1 01111111 10 . . . . . .0
-1 1.00 . . . . . .0 1 01111101 10 . . . . . .0
Special case
1-e 0.11 . . . . . .1 0 10000000 1111 . . . . .1
Translation from NGP into floating point for PDP-1O:
-
Move sign bit (leftmost one) to sign bit.
-
Move fraction part (15 bits) to mantissa part (left justified; fill with zero's to right).
-
Fill in exponent part (8 bits) according to:
a. If positive number exp = 10000000 = (80) hex
b. If negative number exp = 01111111 = (7F) hex
c. Exception in_only one number
-1 in NGP (negative sign and fraction all zero's)
(1) mantissa becomes same as -1/2
(2) exponent becomes the one's complement of (82) hex = (7D) hex
The methods of conversion will remain the same regardless of the number of bits (up to 24) that are used for the NGP fraction.
[ This RFC was put into machine readable form for entry ]
[ into the online RFC archives by Alex McKenzie with ]
[ support from GTE, formerly BBN Corp. 9/99 ]