Reference Guide
RPL Programming Examples 2-37
Trace Mode
This section contains two programs, αENTER and ßENTER, which together provide “trace mode” for the
calculator using an external printer. To turn on “trace mode,” set flag
–
63 and activate User mode. To turn off
“trace mode,” clear flag
–
63 or turn off User mode.
Techniques used in αENTER and ßENTER
Vectored ENTER. Setting flag
–
63 and activating User mode turns on vectored ENTER. When vectored
ENTER is turned on and variable αENTER exists, the command-line text is put on the stack as a string and
αENTER is evaluated. Then, if variable ßENTER exists, the command that triggered the command-line
processing is put on the stack as a string and ßENTER is evaluated.
αENTER program listing
Checksum: # 127d
Bytes: 25.5
ßENTER program listing
Program: Comments:
«
PR1 DROP
PRSTC
Prints the command that caused
the processing, then drops it and
prints the stack in compact form.
»
`O
ßENTER K
Stores the program in ßENTER.
(Press
~‚
B to type ß. You
must use this name.)
Checksum: # 31902d
Bytes: 28
Program: Comments:
«
PR1
OBJ→
Prints the command line text,
then converts the string to an
object and evaluates it.
»
`
O αENTER K
Stores the program in αENTER.
(Press
~‚
A to type α. You
must use this name.)