Detect number entry on HP-35s?
|
03-06-2015, 04:27 PM
(This post was last modified: 03-09-2015 05:09 AM by mbrethen.)
Post: #28
|
|||
|
|||
RE: Detect number entry on HP-35s?
This performs most of the computations using just the stack. The A, I and T named variables are used for input, indirect register access and temporary storage, respectively. It is based on a program for the HP-41 by Jean-Marc Baillard. I have translated it for the HP-35s. In addition to the HP-41 Flag 22 issue, there were other parts of the code I had to work around: "sign" of zero results in 1 on the HP-41 (0 on the 35s) , ISG loop counter and STO arithmetic on the stack (e.g. STOx Y). As Dieter pointed out, the program isn't fail safe but I like the fact that it does all the bookkeeping for you.
Thanks to all who participated in this topic. Code: W001 LBL W Revision History 3/6/15 – Fixed an issue with the loop counter at line 42. 3/7/15 – Shortened the control # routine. 3/8/15 - Added line W025 so that absolute value isn't stored. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 20 Guest(s)