The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

Simple? programming question [WP34S]
Message #1 Posted by Shawn Gibson on 15 Mar 2013, 10:40 a.m.

Greetings, I am trying to make the A,B,C & D hotkey feature of the WP34S work as unit conversion keys. I would like to have a value in the X register, then Hit the (A) key and have a custom conversion program ( MM to IN ) and/or hit the (B) key and have my IN to MM conversion run. Can I do this, or is not really the way the hotkey is supposed to work? Thanks in advance for your reply(s).

      
Re: Simple? programming question [WP34S]
Message #2 Posted by Didier Lachieze on 15 Mar 2013, 11:16 a.m.,
in response to message #1 by Shawn Gibson

This should work:

001 LBL A
002 SDR 001
003 cm->inches
004 RTN
005 LBL B
006 inches->cm
007 SDL 001
008 RTN

Edited: 15 Mar 2013, 11:17 a.m.

            
Re: Simple? programming question [WP34S]
Message #3 Posted by Shawn Gibson on 15 Mar 2013, 11:43 a.m.,
in response to message #2 by Didier Lachieze

I was using END instead of RTN. It is working now. Thank You Didier.

                  
Re: Simple? programming question [WP34S]
Message #4 Posted by Didier Lachieze on 15 Mar 2013, 11:56 a.m.,
in response to message #3 by Shawn Gibson

Hotkeys are local labels (as in the HP-41C), so the ones separated from the current program counter position by an END are out of reach.

See the “Labels” section under “PROGRAMMING YOUR WP 34S” in the manual.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall