Reading Memory in Grue

We have to talk about how to access memory so we can read values from it. And to do that I have to talk a little about a Z-Machine area of memory called the header. With that, I’ll show you some helper methods you’ll want to have in place. Then we’ll deep dive into the memory considerations and, finally, we’ll come up for air by showing how to represent some of the Z-Machine memory in Grue.

Continue reading Reading Memory in Grue

Bits and Bytes in Grue

In this post, we’re going to start down the path of implementing the basics of a Z-Machine. Crucial to this start, however, is making sure it’s understood how the Z-Machine actually works in terms of taking in zcode to execute and what, exactly, is executing. Spoiler alert: it’s 0’s and 1’s all the way down.

Continue reading Bits and Bytes in Grue