Sherlock: annotated disassembly

Routines

Prev: B0C6 Up: Map Next: B0EE
B0D7: Load a saved game from tape
Loads the game state (B0EE: from 840B, 7,188 bytes, up to $A01F) with the ROM's LD-BYTES (C0DF), asking again until it loads, then restores IY from 9FD4 and returns to the main loop's restart at A040. B0E4 is the save: it keeps IY at 9FD4 and saves the same block (C040).
Output
IY Restored as saved
The saved game loaded over $840B onwards
B0D7 CALL $B0EE Which block
B0DA CALL $C0DF Load it...
B0DD JR NC,$B0D7 ...until it works
B0DF LD IY,($9FD4) Read "Unused" (9FD4) into IY - IY as saved
B0E3 RET Return to the caller
This entry point is used by the routine at A064.
B0E4 LD ($9FD4),IY Save: remember IY
B0E8 CALL $B0EE Which block
B0EB JP $C040 Save it (and verify)
Prev: B0C6 Up: Map Next: B0EE