# HP 50g User Manual Page 670

Graphing calculator.

@SST @
@SST @
@SST @
@SST @
@SST @
Further pressing the @SST @ soft menu key produces no more output since we
have gone through the entire program, step by step. This run through the
debugger did not provide any information on why the program is not
calculating the value of 2a
sub-program, we need to run the debugger again and evaluate a within the
sub-program. Try the following:
J
³@FUNCa `
„°LL @) @ RUN@ @@DBG@
@SST @
@SST @
@SST @
2`
@SST @
@SST @
@SST @
At this point we are within the subprogram
variable a. To see the value of a use:
~„aμ
Let's kill the debugger at this point since we already know the result we will get.
To kill the debugger press @KILL. You receive an
acknowledging killing the debugger. Press \$to recover normal calculator
display.
Note: In debugging mode, every time we press @SST @ the top left corner of the
display shows the program step being executed. A soft key function called
@@SST@ is also available under the @) R UN sub-menu within the PRG menu. This can
be used to execute at once any sub-program called from within a main
program. Examples of the application of @@SST@ will be shown later.
Result: empty stack, executing
Result: empty stack, entering subprogram
Result: '2*a^2+3'
Result: '2*a^2+3', leaving subprogram "
Result: '2*a^2+3', leaving main program"
2
+3 for a = 2. To see what is the value of a in the
Copies program name to stack level 1
Starts debugger
Step-by-step debugging, result: "Enter a:"
Result: {" a:" {2 0} V}
Result: user is prompted to enter value of a
Enter a value of 2 for a. Result: " :a:2"
Result: a:2
Result: empty stack, executing
Result: empty stack, entering subprogram
This indeed shows that the local variable a = 2
'2*a^2+3'
" which uses the local
«
<!> Interrupted
a
«
a
«
message
Page 21-23