5 ms·
I also wrote a forth system for the Z80 TI calculator series when I was in high school, about 20 years ago now (wow). Very happy to see young people still fool
by hoytech 8y ago
I also wrote a forth system for the Z80 TI calculator series when I was in high school, about 20 years ago now (wow).
Very happy to see young people still fooling with this stuff, despite the ubiquity of smart phones etc.
I just uploaded the code to github: https://github.com/hoytech/tiforth https://github.com/hoytech/tiforth
To anyone else interested in really understanding forth, Brad Rodriguez's "Moving Forth" series is the best I've ever read (and I don't imagine much has changed since), including a great explanation on "DOES>", widely regarded as the most difficult part of the forth kernel. You can read it online here:
https://www.bradrodriguez.com/papers/index.html https://www.bradrodriguez.com/papers/index.html
Also I have to confess I stole the division routine for my forth from Brad's CamelForth: https://github.com/hoytech/tiforth/blob/master/forth.z80#L501-L552 https://github.com/hoytech/tiforth/blob/master/forth.z80#L50...
Quickly looking it over I notice I used m4 as the macro-expander (haha I've since grown out of that).
- deleted 8y ago[deleted]