Post Reply 
HP-25 Emulators suggestion
02-07-2024, 10:30 PM (This post was last modified: 02-07-2024 10:32 PM by teenix.)
Post: #17
RE: HP-25 Emulators suggestion
(02-07-2024 01:51 PM)Dave Britten Wrote:  That doesn't sound quite right either. On my 55, GTO takes up a single step (displayed as the line number to branch to, but negative). The comparisons are simply f GTO or g GTO, and appear as such, so x<=y? GTO 20 is two steps: 31, -20 (f GTO 20).

Apologies, I was trying to refer to the program tokens used for the comparison functions

55
Code:

49 x GTO                -   GTOnn
49 x if X<=Y then GTO   -   [f][GTO]nn
49 x if X=Y  then GTO   -   [g][GTO]nn

The 33 was better in that comparisons used 1 token each, then they can use any of the GTO codes as a branch if TRUE.

33
Code:

49 x GTO                -   GTOnn

f X<=Y
f X>Y
f X!=Y
f X=Y
g X<=0
g X>0
g X!=0
g X=0

So, there is a big token saving, 147 vs 57 (plus there are 6 extra comparisons) The [f] and [g] keys also used one extra in the 55 and not in the merged keycode 33.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP-25 Emulators suggestion - Namir - 02-06-2024, 04:51 PM
RE: HP-25 Emulators suggestion - teenix - 02-06-2024, 09:59 PM
RE: HP-25 Emulators suggestion - teenix - 02-07-2024, 01:00 AM
RE: HP-25 Emulators suggestion - teenix - 02-07-2024, 11:04 AM
RE: HP-25 Emulators suggestion - teenix - 02-07-2024 10:30 PM
RE: HP-25 Emulators suggestion - brouhaha - 02-06-2024, 11:55 PM
RE: HP-25 Emulators suggestion - teenix - 02-25-2024, 06:23 AM
RE: HP-25 Emulators suggestion - Namir - 02-07-2024, 06:32 PM
RE: HP-25 Emulators suggestion - teenix - 02-08-2024, 09:53 PM
RE: HP-25 Emulators suggestion - Namir - 02-09-2024, 11:02 PM
RE: HP-25 Emulators suggestion - teenix - 02-26-2024, 12:09 AM
RE: HP-25 Emulators suggestion - teenix - 02-26-2024, 10:20 PM



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