Keyboard Codes And Direct Keyboard Access - HP RPN SCIENTIFIC WP 34S Owner's Manual

Table of Contents

Advertisement

015
LBL 01
...
...
...
...
...
RTN
...
LBL B
...
...
...
...
...
RTN
...
...
...
END
This is the way the TVM application is implemented.
If there is more than one program using labels A to D in RAM or FM, you must move the
program counter (PC) into the desired program and stop there – provided programs are
separated by END (see p.

Keyboard Codes and Direct Keyboard Access

Sometimes, the four hotkeys might not suffice.
There is, however, an easy way to extend the
number
of
directly
shorthand addressing of numeric labels using
keyboard codes as defined at right. Each key
gets a code simply given by its row and column
on the keyboard.
Whenever you are asked for the entry of a two-
digit label, any of the keys highlighted green in
this picture may be used for direct input. The
label will then be replaced by the row/column
code of the respective key. Keys not available
this way (since they have another fixed
meaning in this context) may still be used for a
short address by pressing
itself cannot be used for shorthand addressing.
If, for example, you want to link a program to the key
beginning of the routine; then it can be called via
conveniently.
The same keyboard codes are returned by the KEY? command, which allows 'real time'
response to user input from the keyboard. KEY? takes a register argument (X is allowed
but does not lift the stack) and stores the key most recently pressed during program
execution in the register specified. R/S and EXIT cannot be queried; they stop program
execution immediately. The keyboard is active during program execution – but it is
desirable to display a message and suspend the program by PSE while waiting for user
input. Since PSE will be terminated by a key press, simply use PSE 99 in a loop to wait for
WP 34S Owner's Manual
Compute the new number for missing numeric user input.
Called if user input after step 006 was terminated by
67
to learn which label will be found else).
callable
subroutines:
before. Only
Edition 3.1


11
12
  
21
22
    
31


41
42


51
52


61
62


71
72


.


 
13
14
15


23
24
25
32
33
34


43
44


53
54


63
64


73
74
, just put label 21 at the

by the user
Page 71 of 211
16

26
35

45

55

65

75

Advertisement

Table of Contents
loading

Table of Contents