Compiler Library/XL Reference Manual (32650-90029)

4-: 4
Table 4-1. Low-Order Digits of External-Decimal Numbers
--------------------------------------------------------------------------------------------
| | |
| Low-Order Digit, | Low-Order Digit, |
| Decimal Number | External-Decimal Number |
| | |
--------------------------------------------------------------------------------------------
| | |
| | Unsigned Positive Negative |
| | |
--------------------------------------------------------------------------------------------
| | |
| 0 | $30 $7b { $7d } |
| | |
| 1 | $31 $41 A $4a J |
| | |
| 2 | $32 $42 B $4b K |
| | |
| 3 | $33 $43 C $4c L |
| | |
| 4 | $34 $44 D $4d M |
| | |
| 5 | $35 $45 E $4e N |
| | |
| 6 | $36 $46 F $4f O |
| | |
| 7 | $37 $47 G $50 P |
| | |
| 8 | $38 $48 H $51 Q |
| | |
| 9 | $39 $49 I $52 R |
| | |
--------------------------------------------------------------------------------------------
In the table, the letters A through R, and the braces, are the ASCII
equivalents of the hexadecimal numbers shown.
Digits other than the low-order digit conform with the "Unsigned" column
of Table 4-1.
Binary Numbers
The binary numbers used as parameters to HPPACCVBD and HPPACCVDB have the
following characteristics.
* The number is stored in twos-complement format.
* The length is a multiple of 16 bits.
* The length may be up to 96 bits.
* In storage, the high-order bit must occupy bit 0 or bit 15 of a
32-bit word. In other words, the number must be aligned on an
even-byte boundary.
* The storage address is the address of the byte that contains the
high-order bit.
NOTE For compatibility with the HP 3000 Series V instruction set, the
length of a binary number is given in terms of 16-bit elements,
sometimes referred to as "words." To avoid confusion with the
32-bit words of the Series 900 computer systems, the term "16-bit
word" is used in this chapter when referring to the 16-bit elements
of a binary number.