[z-machine] "State of play" for restart/restore

Amir Karger amirkargerweb@yahoo.com
Wed, 17 Mar 2004 20:41:59 -0800 (PST)


The spec says almost everything is restarted on restart.

Does anyone have comments on what gets restarted other than the game
memory? All the stuff like output_stream, input_stream, buffer_mode,
which window you're writing to and what its dimensions are, that kind
of stuff. The spec does say you'll have to rewrite the status line, but
I'm looking for a bit more detail on this issue. From looking at a
couple interpreters, it looks like different ones restart different
things.

Any thoughts?

-Amir Karger
ps I've reappeared after a few months hanging out with my newborn son.
Czech 0.9 might appear soon, as I've added some @read tests and will be
adding some save/restore tests if I ever get that working.

Unfortunately, I'm trying to directly translate the Z-machine stacks
into using Perl's call stacks. I thought I had worked out a kludge that
would let me build up a save stack to do Quetzal save/restores while
still using real Perl subs, but now that I'm trying to actually write
(pseudo-)code, it's looking uglier. Bleah. On the other hand, once
that's done, I'll support all z3 commands!

__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com