Date: Mon, 11 Mar 1991 08:52 CST
Subject: HP48: Binary display & 2's complement arithmatic
Lines: 174

The following directory provides routines for displaying and converting
binary numbers and performing 2's complement arithmatic.  The following
entry points are provided through a custom menu:

BDISP      - displays the binary number in level 1 of the stack in binary,
             octal, hexidecimal, and decimal form.  It's basically a mod
             of BDISP from the manual.
CONV       - converts the number in level 1 of the stack to or from binary
             form.
DEC/HEX/
OCT/BIN    - select math base.
\->2C      - convert number to 2's complement
2C\->      - convert number from 2's complement
2C+        - add 2's complement numbers
2C-        - subtract 2's complement numbers
2C*        - multiply 2's complement numbers
2C/        - integer division of 2's complement numbers.

The routines are sensitive to the current word size.  If you attempt to
convert a number that is outside the current range of 2's complement numbers,
the converted binary will be tagged "CF".  This is similar to setting the
carry flag if a math operation exceeds the range of the destination.
If you find these routines useful, please let me know.
                                                          ndw


***END OF POSTING***
