Post Reply 
Detect number entry on HP-35s?
03-01-2015, 04:13 PM (This post was last modified: 03-01-2015 04:43 PM by Tugdual.)
Post: #23
RE: Detect number entry on HP-35s?
My understanding if the goal is that we want to enter an undefined number of values and at some point signal that the table is complete. The expectation is that when the user has entered the last value and is asked for the next one, he would simply press Enter and then a flag should indicate that nothing was entered which means -> end of data entry.
Is that correct?

If that is the case, I would suggest KIS!
Don't use INPUT, just a simple STOP and then GTO in the data entry loop.

Then when data entry is complete, just have a second LBL B ready and expect the user to press XEC B when data entry is complete instead of entering a value and pressing R/S.

So the scenario would be:
Code:
XEQ A
Enter value R/S
Enter value R/S
Enter value R/S
Enter value R/S
...
XEQ B

You're done.
Code sample:
Code:
A001 LBL A
A002 0.999
A003 STO I
A004 RCL I
A005 IP     // shows index of next expected value (line above shows previous value)
A006 STOP
A007 STO(I)
A008 ISG I
A009 GTO A004
A010 SF 10
A011 EQN MAX 999
A012 RTN
B001 LBL B
etc...
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Detect number entry on HP-35s? - mbrethen - 02-25-2015, 03:37 AM
RE: Detect number entry on HP-35s? - d b - 02-26-2015, 06:31 AM
RE: Detect number entry on HP-35s? - Tugdual - 03-01-2015 04:13 PM



User(s) browsing this thread: 1 Guest(s)