On 27Mar2022 08:20am (-0700), Vincent Slyngstad wrote:
> On Sunday, March 27, 2022 at 7:34:55 AM UTC-7 Nick Moffitt wrote:
> > On 26Mar2022 11:56pm (-0700), Vincent Slyngstad wrote:
> > > I know that Ethan Dicks has thought and worked extensively on the Infocom
> > > VM for various machines including the PDP-8.
> > Oh, really? Do you have any links for this?
> Not offhand, but I did send a query to Ethan.
Thank you!
> > That's neat. The trouble with this is that the bytecode spec is already
> > nailed down, but there's room for
>
> Worse, the bytecode spec is version dependent, with I think an older
> integer only VM used in the cross compiler. Showed a lot of power for the
> memory size, though. Most other systems can't even fit the cross compiled
> compiler into memory.
I think that targeting v3 only is a reasonable requirement, as that was the version that aimed at the 32k micros. And yeah, it's about being able to *play* a hand-curated z3 game on the 12 rather than being able to build arbitrary games on the thing!
> I also looked at the LINC instruction set as being a possibly decent "VM".
> In particular, I thought the addressing modes (and page size) to be better
> suited to stack frames and recursive programming.
> (My specific thought was "wish I'd had this when I did my C compiler".
Hm, that's interesting. I don't think the Z machine did a lot of recursion, and focused mainly on table manipulation and text input/output.