[comp.sys.handhelds] vectored enter question

koslowj@math.ksu.edu (Juergen Koslowski) (08/24/90)

I've tried the following programs, posted some time ago by Tom Conte:

xsum: #1E19h, bytes: 27
'\GaENTER'		@ \Ga means `alpha', right-shifted A
\<< DUP 'L' STO OBJ\-> \>>

xsum: #1D8Dh, bytes: 71
'\GbENTER'		@ \Gb means `beta', right-shifted B
\<< 'L' RCL " " ROT "\010" @ a new-line
+ + + 1 DISP 1 FREEZE "" 'L' STO \>>

xsum: #A657h, bytes: 53
'PPON'
\<< -62 -63 SF SF "" 'L' STO \>>

xsum: #44ADh, bytes: 48
'PPOFF'
\<< -62 -63 CF CF 'L' PURGE \>>

They worked just as advertised. (Only the checksum for 'PPOFF' comes out as
#49ADh on my machine). 

Then I wanted to try out Bill Wickes' suggestion of a more convenient binary
calculator by means of vectored enter, and I replaced '\GaENTER' by the
following program

'\GaENTER'
\<< "#" SWAP + OBJ\-> \>>  (I love these backslashes, they remind me of TeX :-)

'\GbENTER' remained unchanged, and surprizingly the operations would still
be displayed in the status area, even *after* executing 'PPOFF' (and
thereby presumably purging the variable 'L') and then executing 'PPON'.
In fact, pressing the menu key 'PPON' results in the display of "PPON"
in the status area. What happens with 'L'? Could someone please explain this?

J"urgen Koslowski
Department of Mathematics
Kansas State University
koslowj@math.ksu.edu