4 ms·
Kinda, I'm currently learning Idris and compilers by writing a CommodoreBASIC compiler that targets the HP 15-C calculator: https://gitlab.com/michaelzinn/voyc
by RedNifre 7y ago
Kinda, I'm currently learning Idris and compilers by writing a CommodoreBASIC compiler that targets the HP 15-C calculator: https://gitlab.com/michaelzinn/voyc https://gitlab.com/michaelzinn/voyc
Compiler output looks like this:
227 IF Q>0 THEN 230......................................................90 1
91 0
92 8
93 CHS
94 STO I
95 0
96 RCL .1
97 TEST 7
98 GTO I
228 P=INT(P/2)...........................................................99 RCL 9
100 2
101 /
102 INT
103 STO 9
So far, I can compile Hammurabi, but I actually haven't written any BASIC programs myself yet (except some simple QBasic stuff in the last millennium).
I get the games to compile from the old "101 BASIC Computer Games" book: http://vintage-basic.net/games.html http://vintage-basic.net/games.html