[z-machine] save vs. restore in v3
Amir Karger
amirkargerweb@yahoo.com
Wed, 23 Jun 2004 11:24:29 -0700 (PDT)
In v4+, save returns 1 or 2 to tell you whether you just finished a
successful save or you've just executed a restore, which lands you at
the same place.
Is there a way to know in v3? It doesn't seem like it. Either way,
you'll branch to the same location with the same variables and eval
stack. Is the only way to tell by setting and comparing the transcript
or fixed font bit?
-Amir Karger
amirkargerweb@yahoo.com
ps I assume someone noticed already that in spec1.0, in the "save"
entry in section 15, it says "On Versions 3 and 4, attempts to save the
game (all questions about filenames are asked by interpreters) and
branches if successful. From Version 5 it is a store rather than a
branch instruction...." In fact, the branch is only for version (1-)3,
not 4, right? At least, that's what the table of opcodes says, and
that's what Inform seems to compile.
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail