Sherlock: annotated disassembly

Routines

Prev: F198 Up: Map Next: F1C1
F1A8: Action record: the Major knocks the policeman out (RUN at $F097)
Addresses named in the title: F097.
Prints 'You knocks the police man unconscious from behind.' (6D5D) and sets the policeman (thing 11) to UNCONSCIOUS ($0910), high nibble 2 of +8, and clears bit 6 of +5.
Output
F NZ; the policeman knocked out
F1A8 DEFB $00,$00 Action record header: flags $00; byte 1 $00
F1AA LD HL,$6D5D Point HL at the message "YOU KNOCKS THE POLICE MAN UNCONSCIOUS FROM... (6D5D)
F1AD LD DE,$0910 Load DE with $0910
F1B0 LD B,$20 Load B with $20
This entry point is used by the routine at ED39.
F1B2 LD A,$0B Load A with $0B
F1B4 CALL $F1C1 Call the routine "Set a thing's state word and state bits" (F1C1)
F1B7 RES 6,(IX+$05) Clear bit 6 of byte +5 of the record at IX
F1BB CALL $A59F Call the routine "Print the message at HL" (A59F)
F1BE OR $01 Make A non-zero, which clears the zero flag, and hand that back to the caller
F1C0 RET Return to the caller
Prev: F198 Up: Map Next: F1C1