Sherlock: annotated disassembly

Routines

Prev: 9E6A Up: Map Next: 9E85
9E74: End the game with the message in HL
Prints HL's message, waits for a key (C306), calls A296 and restarts the game (B0AC). Reached from the game-over records at 9E48-$9EBF and from DFCA.
Input
HL The message to print
Output
F None: the game restarts through $B0AC
9E74 LD A,$01 Load A with $01 - Output on ($5C3C = 1)
9E76 LD ($5C3C),A Store A in the output-switch byte (TV_FLAG) ($5C3C)
9E79 CALL $A59F Print the message in HL (A59F)
9E7C CALL $C306 Wait for a key (C306)
9E7F CALL $A296 Clear the text window: 18 newlines (A296)
9E82 JP $B0AC Get ready to load a saved game (B0AC)
Prev: 9E6A Up: Map Next: 9E85