Errors and error trapping, Doerr, Errn – HP 48gII User Manual

Page 713

Advertising
background image

Page 21-64


J1 # 1.5 # 0.5 `

Enter parameters 1 1.5 0.5

[‘]

@GLIS4 `

Enter the program name in level 1

„°LL @)@RUN@ @@DBG@

Start the debugger.

Use

@SST↓@ to step into the program and see the detailed operation of each

command.

Errors and error trapping

The functions of the PRG/ERROR sub-menu provide ways to manipulate errors
in the calculator, and trap errors in programs. The PRG/ERROR sub-menu,
available through

„°LL@)ERROR@ , contains the following functions

and sub-menus:

DOERR

This function executes an user-define error, thus causing the calculator to
behave as if that particular error has occurred. The function can take as
argument either an integer number, a binary integer number, an error
message, or the number zero (0). For example, in RPN mode, entering
5` @DOERR, produces the following error message: Error: Memory Clear

If you enter #11h

` @DOERR, produces the following message: Error:

Undefined FPTR Name

If you enter “TRY AGAIN”

` @DOERR, produces the following message: TRY

AGAIN

Finally,

0` @DOERR, produces the message: Interrupted


ERRN

This function returns a number representing the most recent error. For
example, if you try

0Y$@ERRN, you get the number #305h. This is the

binary integer representing the error: Infinite Result

Advertising
This manual is related to the following products: