STAYON by Brian Maguire; a substitute for 0 WAIT. Documentation by Joe Horn ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Mini-instructions: STAYON. Wait. Press any key to exit. ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ The HP-41, 75, 71 and 42 all have commands that allow the automatic time-out powerdown to be disabled. The HP 48 does not. The STAYON program can be used to force the HP 48 into low-power mode yet stay on. STAYON is like 0 WAIT; both suspend program execution until a key is pressed, at which time the key's numeric code is placed on the stack and the program continues. Both also put the HP 48 into light sleep (low-drain mode) to extend battery life. Both turn off the busy annunciator. Due to these similarities, STAYON may be included in a program in place of 0 WAIT. However, there are some vital differences: ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» º STAYON ³ 0 WAIT º ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍØÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹ º HP 48 stays on until key is pressed ³ Times out after 10 minutes and º º (hence the name STAYON). ³ the HP 48 turns off. º ÇÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĶ º Ignores alarms (they merely light ³ Interrupted by alarms. º º the busy annunciator and wait until ³ º º STAYON is exited by a keystroke). ³ º ÇÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĶ º Ticking clock display (if active) ³ Ticking clock can be displayed. º º appears frozen as during program ³ º º execution. ³ º ÇÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĶ º Returned keycode is in absolute key ³ Returned keycode is in rc.p form º º position form (e.g. MTH is key 7, ³ as used by the ASN command. º º and + is key 49). ³ º ÇÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĶ º Any key exits, even the shifts ³ Shift keys do not exit, but are º º (alpha is key 30, left-shift is key ³ combined with other keys to form º º 35, and right-shift is key 40). ³ an rc.p keycode. º ÇÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĶ º The ON key (ATTN) is treated like ³ The ON key (ATTN) aborts the WAIT º º any other key: it returns keycode ³ command and program execution º º 45 and does not abort a program. ³ (unless included in an IFERR º º ³ error trap). º ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÏÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ