TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Z3 – The Zork CPU

167 点作者 mnem超过 7 年前

5 条评论

captncraig超过 7 年前
This is awesome to see. There&#x27;s been a lot of articles about zork lately, so I started writing my own interpreter, just to see what all the fuss is about. It&#x27;s a pretty interesting system. I&#x27;m currently trying to step&#x2F;debug through zork too see how they implemented the parsing, game state, and other such things, and it is really quite interesting.<p>I&#x27;ve considered trying to do a hardware implementation, but concluded it is beyond my skill. Some things like user input can be complicated. It is the interpreter&#x27;s job to split the input on a program-defined set of delimiters, look up each token in a dictionary provided by the program, and copy a variable number of specified values it finds base on that info into other locations. That&#x27;s really complicated for a single instruction, and makes it pretty apparent to me that their target from the beginning was interpreters, not any kind of special hardware.<p>Nevertheless, its an awesome project, and a really fun thought experiment. I&#x27;d love to see a physical version of something like this from 74xx chips.
评论 #15171161 未加载
评论 #15170379 未加载
Klasiaster超过 7 年前
In university we wrote a compiler¹ for the Z-machine, source input was in Twee², a language for web-based interactive fiction. Finding enough information about the opcodes was sometimes not easy.<p>¹ <a href="https:&#x2F;&#x2F;github.com&#x2F;Drakulix&#x2F;zwreec" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Drakulix&#x2F;zwreec</a> ² <a href="http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Twine_(software)" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Twine_(software)</a>
derefr超过 7 年前
Is there an overview of the <i>evolution</i> of the Z-Machine through the years—what features were added and how the architecture changed in each version, and what these changes allowed that was previously difficult?<p>It&#x27;d also be interesting to see similar &quot;release notes&quot; for proprietary game VMs, like the runtimes of Game Maker Studio or RPG Maker—though these would probably have to be the result of reverse-engineering + wild-ass guessing.
评论 #15172782 未加载
评论 #15173454 未加载
评论 #15172738 未加载
mardiros超过 7 年前
Sadly, spec link is broken.
评论 #15170102 未加载
PhasmaFelis超过 7 年前
&gt; <i>Save&#x2F;Restore isn&#x27;t currently supported (as my hardware hasn&#x27;t any storage) and is the only notable omission.</i><p>That&#x27;s an awfully notable omission.<p>Really cool project, still.