Post Reply 
Pause in WP34s
11-25-2015, 07:01 PM (This post was last modified: 11-25-2015 07:19 PM by Dieter.)
Post: #13
RE: Pause in WP34s
(11-25-2015 04:58 PM)ggauny@live.fr Wrote:  I understand well what you say, KEY? return the *code* of the key, not her value numeric AND it is just my problem !
Passionant problem that I have to solve. Translate the code key in his numeric value.

Simple. As already mentioned you can use KEY? followed by KTP?

Code:
PSE 99
KEY? X
BACK 002
KTP? X
RTN

If you like you can also manually calculate the numeric value from the key code. Reminds me of the days when TI58/59 users had to translate numeric values to printer codes. And these were not continuous... Here is a formula for the WP34s where c is the key code:

value = (c mod 10) – 3 * (c idiv 10) + 17

BTW this would be another nice application for DIVMOD. *gg*

The only exception is the 0 key (code 72), this yields –2. Add x<0? CLX and you're done. ;-)
But I'd prefer KTP?. Applications like these are the reason why this command exists.

(11-25-2015 04:58 PM)ggauny@live.fr Wrote:  Another issue : if I run with BST, the code appears in X but no in RUN ?

BST does not run anything. It simply steps back in program memory.
And single-stepping through the code (with the down-arrow key) of course will not work as this returns the key code of that key, i.e. 61. #-)

(11-25-2015 04:58 PM)ggauny@live.fr Wrote:  Well, Well, a white night in perspective !

No nuits blanches required. All you need to know takes just a few minutes.

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


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)