Sherlock: annotated disassembly

Routines

Prev: 9E85 Up: Map Next: 9EC0
9EA2: Game-over record: the morning papers
Run by Lestrade's script (EAB3). Unless both MRS BROWN KILLED HERSELF (9973) and MRS JONES KILLED TRICIA FENDER (9981) have been proven (bit 1 of their flags), ends with 6A33: 'NOT ONLY HAVE YOU FAILED TO SOLVE THE CRIMES AT HAND BUT THE MORNING PAPERS CARRY A REPORT OF MR BROWNS LOST P...'; if both have, with 6ABD: 'YOU HAVE DONE EXTREMELY WELL TO SOLVE THE CASE AT HAND BUT THE MORNING PAPERS CARRY A REPORT OF MR BROWNS LOST...'.
9E74 is the shared ending: prints the message in HL, waits for a key (C306), and restarts (B0AC).
Output
F The game ends through $9E74 with the failure or success message
9EA2 DEFB $00,$00 Action record header: flags $00; byte 1 $00
9EA4 LD HL,$6A33 Point HL at the message "NOT ONLY HAVE YOU FAILED TO SOLVE THE CRIMES AT... (6A33)
9EA7 LD IX,$9973 Point IX at 9973 in "The case: statements about the crime, and..."
9EAB BIT 1,(IX+$03) Test bit 1 of byte +3 of the record at IX
9EAF JR Z,$9E74 If bit 1 of byte +3 of the record at IX is clear, go back to the routine "End the game with the message in HL" (9E74)
9EB1 LD IX,$9981 Point IX at 9981 in "The case: statements about the crime, and..."
9EB5 BIT 1,(IX+$03) Test bit 1 of byte +3 of the record at IX
9EB9 JR Z,$9E74 If bit 1 of byte +3 of the record at IX is clear, go back to the routine "End the game with the message in HL" (9E74)
9EBB LD HL,$6ABD Point HL at the message "YOU HAVE DONE EXTREMELY WELL TO SOLVE THE CASE... (6ABD)
9EBE JR $9E74 Go back to the routine "End the game with the message in HL" (9E74)
Prev: 9E85 Up: Map Next: 9EC0