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

 

 

 

 

 

 

 

Program:

Comments:

 

 

 

 

 

 

«

 

 

 

PR1

Prints the command line text,

 

 

OBJ→

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.)

Checksum: # 127d

 

 

 

 

Bytes:

25.5

 

 

ßENTER program listing

 

 

 

 

 

 

 

Program:

Comments:

 

 

 

 

 

 

«

 

 

 

PR1 DROP

Prints the command that caused

 

 

PRSTC

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

 

 

RPL Programming Examples 2-37