TI-58/59 SBR question
|
06-10-2024, 11:54 AM
(This post was last modified: 06-10-2024 12:11 PM by Maximilian Hohmann.)
Post: #8
|
|||
|
|||
RE: TI-58/59 SBR question
Hello!
(06-10-2024 11:35 AM)Gene Wrote: My emulator example is flawed ! I also had to try this out. Few people may know, but a person called Philippe Tiwolle created a compiler for the Ti 58/59. For input it takes a subset of C (that he calls "T" for Texas instruments) and generates ready-to-use programs for the calculator: https://ti59compiler.wixsite.com/ti59 (*) So I made a tiny tiny little program that calls two different subroutines as the result of a branch: Code:
The compiler translates it to some kind of metacode first: Code:
and finally to a sequence of keystrokes: Code:
It works by replacing the call to the subroutine with the call to a label from where the subroutine is called. I am not sure if this will work in all circumstances... Regads Max (*) For those who want to try it for themselves: in order to work on MacOS, after downloading and unzipping, the following change has to be made in the makefile: Replace -lfl with -ll in two places and rename the resulting programs ti59 and ti59b to ti59.exe and ti59b.exe (or otherwise modifiy the "compile.sh"). NB: This is not the only compiler written for the Ti 59. Google finds a master's thesis (> 600 pages!) about a "cross compiler and virtual memory management system for the Ti 59" here: https://archive.org/details/designndimpl...8/mode/2up |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)