HP 48gII Advanced User's Reference Manual page 87

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

Advertisement

BDISP program listing
Program:
«
«
»
3 FREEZE
»
PRESERVE
»
`OBDISP K
Checksum: # 22884d
Bytes:
187
DUP
-55 CF
IFERR
RB
THEN
END
 n
«
CLLCD
« BIN »
« OCT »
« DEC »
« HEX »
1 4
FOR j
EVAL
n STR
PAD
j DISP
NEXT
Comments:
Begins the main nested program.
Makes a copy of n.
Clears flag
55 to enable
LASTARG.
Begins error trap.
Converts n to a binary integer.
If an error occurs, do nothing (no
commands in the THEN clause).
Creates a local variable n and
begins the defining program.
Clears the display.
Nested program for BIN.
Nested program for OCT.
Nested program for DEC.
Nested program for HEX.
Sets the counter limits.
Starts the loop with counter j.
Executes one of the nested base
programs (initially for HEX).
Makes a string showing n in the
current base.
Pads the string to 22 characters.
Displays the string in the jth line.
Increments j and repeats the loop.
Ends the defining program.
Freezes the status and stack
areas.
Ends the main nested program.
Stores the current flag status,
executes the main nested
program, and restores the status.
Stores the program in BDISP.
RPL Programming Examples 2-9

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

49g+

Table of Contents