7 ms·
Way back when I ported a C compiler for the Z-machine: http://cowlark.com/vbcc-z-compiler http://cowlark.com/vbcc-z-compiler It was hacky as hell, and unfortu
by david-given 11y ago
Way back when I ported a C compiler for the Z-machine:
http://cowlark.com/vbcc-z-compiler http://cowlark.com/vbcc-z-compiler
It was hacky as hell, and unfortunately I used a compiler frontend with a non-free license which makes it nigh undistributable, but actually worked. I didn't quite get floating point working.
I think the Z-machine internal architecture can best be described as 'interestingly insane'. Some of the hacks needed to make large games work are very educational. For my purposes, the non-memory-mapped stack was particularly... exciting (and very annoying). Another description is, alas, 'almost impossible to find a non-buggy assembler for'.
Highly recommended if you have the kind of twisted mind that likes to do impossible things with 8-bit microcomputers.