Post Reply 
WTB RPN Module for TI-59
09-05-2024, 02:39 AM (This post was last modified: 09-05-2024 02:40 AM by Thomas Klemm.)
Post: #8
RE: WTB RPN Module for TI-59
If anybody has this module I'd be interested to see the generated result.
As an example, here is a program for the HP-67 that calculates the greatest common denominator of two numbers:
Code:
001: 31 25 11 # LBL A
002: 35 33    # ST I
003: 35 53    # Rv
004: 31 25 00 # LBL 0
005: 41       # ENTER
006: 41       # ENTER
007: 35 34    # RC I
008: 31 51    # x=0
009: 22 01    # GTO 1
010: 81       # /
011: 31 83    # INT
012: 35 34    # RC I
013: 71       # *
014: 51       # -
015: 35 24    # x<>I
016: 22 00    # GTO 0
017: 31 25 01 # LBL 1
018: 35 53    # RC I
019: 35 22    # RTN

I don't have a TI-59 but here's an analogue program for the TI-57:
Code:
00  32 1  # STO 1
01  22    # x<>t
02  32 0  # STO 0
03  86 0  # Lbl 0
04  19    # C.t
05  33 1  # RCL 1
06  66    # x=t
07  51 1  # GTO 1
08  33 0  # RCL 0
09  45    # /
10  33 1  # RCL 1
11  85    # =
12  49    # Int
13  55    # *
14  33 1  # RCL 1
15  85    # =
16 -34 0  # INV SUM 0
17  33 0  # RCL 0
18  22    # x<>t
19  33 1  # RCL 1
20  32 0  # STO 0
21  22    # x<>t
22  32 1  # STO 1
23  51 0  # GTO 0
24  86 1  # Lbl 1
25  33 0  # RCL 0
26  81    # R/S
27  71    # RST

I just wonder how this translation even works.
Is the stack implemented using registers?
Does this mean that e.g. Rv is implemented using multiple register commands?
Are these inlined or are subroutines called?
I can imagine that correct but rather inefficient code is created.

OTOH it's possible to implement an Algebraic Operation System (AOS) using the HP-41C.
This simulates e.g. the TI-57 at least to some extent.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
WTB RPN Module for TI-59 - Namir - 09-03-2024, 06:25 PM
RE: WTB RPN Module for TI-59 - KeithB - 09-03-2024, 07:07 PM
RE: WTB RPN Module for TI-59 - Namir - 09-03-2024, 11:53 PM
RE: WTB RPN Module for TI-59 - floppy - 09-04-2024, 03:59 PM
RE: WTB RPN Module for TI-59 - Namir - 09-04-2024, 04:14 PM
RE: WTB RPN Module for TI-59 - Namir - 09-04-2024, 10:46 PM
RE: WTB RPN Module for TI-59 - Thomas Klemm - 09-05-2024 02:39 AM



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