Starting HP25 programs with numbers
11-24-2017, 11:26 AM
Post: #3
 teenix Senior Member Posts: 1,581 Joined: May 2016
RE: Starting HP25 programs with numbers
[quote='Dieter' pid='84024' dateline='1511516280']

Now omit the first two lines:

Code:
01 2 02 X<>Y 03 - 04 STO 5 ...

I think this works ok.

if there is only zeros in the stack then the result will be 2.

2[Y] - 0[X] = 2[X]

Run the program again

2[X] - 2[Y] = 0[X]

Run it again and it repeats with 2 in X again.

If you enter 2 then R/S then the next [2] from line 01 from the program will be a continuation of a number entry. Eg 22

Assuming a clear stack.

22[Y] - 0[X] = 22[X].

The HP-67 (emulator) does exactly the same thing.

cheers

Tony
 « Next Oldest | Next Newest »

 Messages In This Thread Starting HP25 programs with numbers - Dieter - 11-24-2017, 09:38 AM RE: Starting HP25 programs with numbers - Paul Dale - 11-24-2017, 10:07 AM RE: Starting HP25 programs with numbers - teenix - 11-24-2017 11:26 AM RE: Starting HP25 programs with numbers - Dieter - 11-24-2017, 12:14 PM RE: Starting HP25 programs with numbers - Thomas Okken - 11-24-2017, 02:07 PM RE: Starting HP25 programs with numbers - PANAMATIK - 11-24-2017, 02:36 PM RE: Starting HP25 programs with numbers - Thomas Okken - 11-24-2017, 03:18 PM RE: Starting HP25 programs with numbers - PANAMATIK - 11-24-2017, 04:17 PM RE: Starting HP25 programs with numbers - teenix - 11-24-2017, 09:25 PM RE: Starting HP25 programs with numbers - Thomas Okken - 11-24-2017, 11:37 PM RE: Starting HP25 programs with numbers - PANAMATIK - 11-24-2017, 11:49 PM RE: Starting HP25 programs with numbers - teenix - 11-25-2017, 12:17 AM RE: Starting HP25 programs with numbers - Dieter - 11-25-2017, 12:49 PM RE: Starting HP25 programs with numbers - teenix - 11-24-2017, 09:11 PM RE: Starting HP25 programs with numbers - teenix - 11-24-2017, 10:01 PM RE: Starting HP25 programs with numbers - PANAMATIK - 11-24-2017, 10:07 PM RE: Starting HP25 programs with numbers - teenix - 11-24-2017, 11:06 PM RE: Starting HP25 programs with numbers - PANAMATIK - 11-24-2017, 11:18 PM RE: Starting HP25 programs with numbers - teenix - 11-24-2017, 11:21 PM RE: Starting HP25 programs with numbers - teenix - 11-24-2017, 11:28 PM RE: Starting HP25 programs with numbers - Dieter - 11-25-2017, 01:10 PM RE: Starting HP25 programs with numbers - PANAMATIK - 11-25-2017, 02:21 PM RE: Starting HP25 programs with numbers - rprosperi - 11-25-2017, 02:34 PM RE: Starting HP25 programs with numbers - PANAMATIK - 11-25-2017, 04:37 PM RE: Starting HP25 programs with numbers - Thomas Okken - 11-24-2017, 11:40 PM

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