Bdisp (Binary Display) - HP 48gII Advanced User's Reference Manual

Graphing calculator
Hide thumbs Also See for 48gII:
Table of Contents

Advertisement

PRESERVE program listing
Program:
«
RCLF
 f
«
»
»
Checksum: # 26834d
Bytes:
71
PRESERVE is demonstrated in the program BDISP.

BDISP (Binary Display)

BDISP displays a real or binary number in HEX, DEC, OCT, and BIN bases.
IFERR
EVAL
THEN
f STOF ERRN DOERR
END
f STOF
`OPRESERVE K
Level 1
# n
n
Comments:
Recalls the list of four 64-bit
binary integers representing the
status of the 128 system flags
and 128 user flags.
Stores the list in local variable f.
Begins the defining procedure.
Starts the error trap.
Executes the program placed on
the stack as the level 1
argument. If the program caused
an error, restores flags, shows
the error, and aborts execution.
Ends the error routine.
Puts the list back on the stack,
then restores the status of all
flags.
Ends the defining procedure.
Stores the program in
PRESERVE.
"
Level 1
"
# n
"
n
RPL Programming Examples 2-7

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

49g+

Table of Contents