Pause in WP34s
|
11-25-2015, 01:19 PM
(This post was last modified: 11-25-2015 01:35 PM by Dieter.)
Post: #2
|
|||
|
|||
RE: Pause in WP34s
(11-25-2015 12:41 PM)ggauny@live.fr Wrote: Assume in a program you put a PAUSE instruction to have time for enter a numeric value, if it is no value do this, if it is value do that... Using PAUSE or PSE for this can only be done with a few calculators, for instance the HP67/97 and the HP41. In both cases checking for entry can be done by testing flag 3 resp. flag 22/23. But this will not work with most other HP calculators. For instance the HP34C simply stops as soon as any key is pressed, and the 35s ignores keystrokes during PSE. So do others. However, on the 34s keystrokes during a PSE statement are registered. They can be checked by using the KEY? test. There is a special section on input and output in the manual. Note that KEY? does not return a numeric value but the code of the key that has been pressed. Here is an example: Code: CLX Note that the step after KEY? is executed if no (!) key has been pressed. Run the program and see 1 ... 2 ... 3 ... Press a key, for instance ENTER, and see its keycode (here 31) returned by the program. (11-25-2015 12:41 PM)ggauny@live.fr Wrote: I've try with ENTRY?, no run too. ENTRY? is similar (but not identical) to testing flag 3 or 22/23 on the 67/97/41. So you can check whether something has been entered, e.g. after a PROMPT where the program stopped. Another example: Code: CLalpha HTH, Dieter |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Pause in WP34s - ggauny@live.fr - 11-25-2015, 12:41 PM
RE: Pause in WP34s - Dieter - 11-25-2015 01:19 PM
RE: Pause in WP34s - walter b - 11-25-2015, 01:45 PM
RE: Pause in WP34s - emece67 - 11-25-2015, 02:40 PM
RE: Pause in WP34s - ggauny@live.fr - 11-25-2015, 04:47 PM
RE: Pause in WP34s - ggauny@live.fr - 11-25-2015, 03:47 PM
RE: Pause in WP34s - ggauny@live.fr - 11-25-2015, 04:58 PM
RE: Pause in WP34s - Didier Lachieze - 11-25-2015, 05:16 PM
RE: Pause in WP34s - Dieter - 11-25-2015, 07:01 PM
RE: Pause in WP34s - ggauny@live.fr - 11-25-2015, 05:43 PM
RE: Pause in WP34s - walter b - 11-25-2015, 06:22 PM
RE: Pause in WP34s - ggauny@live.fr - 11-25-2015, 06:41 PM
RE: Pause in WP34s - ggauny@live.fr - 11-25-2015, 06:38 PM
RE: Pause in WP34s - Dieter - 11-25-2015, 07:15 PM
RE: Pause in WP34s - ggauny@live.fr - 11-25-2015, 07:47 PM
RE: Pause in WP34s - Dieter - 11-25-2015, 08:32 PM
RE: Pause in WP34s - rprosperi - 11-25-2015, 08:54 PM
RE: Pause in WP34s - ggauny@live.fr - 11-26-2015, 06:49 AM
RE: Pause in WP34s - Dieter - 11-26-2015, 01:24 PM
RE: Pause in WP34s - Marcus von Cube - 11-27-2015, 10:26 PM
|
User(s) browsing this thread: 1 Guest(s)