You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To load ZORK, and other z-machine games, I had to implement the random-read functionality.
It seems that when save-states are used the sequential-read operations are required. To save a game we need to implement F_WRITE (logged in #21), and to restore a game we need F_READ which this issue covers.
Assuming we can successfully write a saved game we current see a failure attempting to load it:
>restore
Load SAVE disk then enter file name.
(default file name is ZORK1.SAV).
Type <ENTER> to continue > FOO
{"time":"2024-04-15T22:15:23.074815567+03:00","level":"ERROR","msg":"Unimplemented syscall","syscall":20,"syscallHex":"0x14"}
Error running ZORK1.COM: UNIMPLEMENTED
The text was updated successfully, but these errors were encountered:
This pull-request implements (sequential) file writing operations,
which allow Zork to save its game-state. I've not yet implemented
F-READ (which is tracked in #22) but confirmed the save loads in
another emulator.
This closes#21:
```
>inventory
You are carrying:
A glass bottle
The glass bottle contains:
A quantity of water
A leaflet
>look
Kitchen
You are in the kitchen of the white house. A table seems to
have been used recently for the preparation of food. A passage
leads to the west and a dark staircase can be seen leading
upward. A dark chimney leads down and to the east is a small
window which is open.
On the table is an elongated brown sack, smelling of hot
peppers.
>save
Load SAVE disk then enter file name.
(default file name is ZORK1.SAV).
Type <ENTER> to continue > FOO
Load Game Disk if it was removed.
Type <ENTER> to continue >
Ok.
>quit
Your score is 10 (total of 350 points), in 18 moves.
This gives you the rank of Beginner.
Do you wish to leave the game? (Y is affirmative): >y
```
To load ZORK, and other z-machine games, I had to implement the random-read functionality.
It seems that when save-states are used the sequential-read operations are required. To save a game we need to implement F_WRITE (logged in #21), and to restore a game we need F_READ which this issue covers.
Assuming we can successfully write a saved game we current see a failure attempting to load it:
The text was updated successfully, but these errors were encountered: