3 ms·
Does anyone else remember playing Zork? http://mentalfloss.com/article/29885/eaten-grue-brief-history-zork http://mentalfloss.com/article/29885/eaten-grue-brie
by helloworld 10y ago
Does anyone else remember playing Zork?
http://mentalfloss.com/article/29885/eaten-grue-brief-history-zork http://mentalfloss.com/article/29885/eaten-grue-brief-histor...
- kmill 10y agoYes, but not anytime near it came out (it was probably around 2000 C.E. for me). Earlier this year I was playing around with recompilation (reading the Emscripten whitepaper) of z-code. The Infocom games used a virtual machine to get their games onto lots of contemporary computers, and also to reasonably implement a virtual memory system to fit the games into the small memory of those computers. Anyway, it isn't too hard to make a z-machine interpreter (at least version 5 of z-code), so I made one which recompiles the code into javascript: http://tmp.esoteri.casa/zmach/zmach.html http://tmp.esoteri.casa/zmach/zmach.html The way z-code works makes it so you can't tell what is code and what is data ahead of time, so it decompiles as you play. "Dump routines" gives you the the code so far (as javascript). Part of the fun is making code which can pause execution to wait for player input. (Turns out the technique is already in some paper from some scheme workshop.) https://github.com/kmill/zmach https://github.com/kmill/zmach is the project.