Sherlock: annotated disassembly

Routines

Prev: E6E6 Up: Map Next: E72F
E70E: Action record: the cabbie's parting shout (RUN at $F35C)
Addresses named in the title: F35C.
The cabbie's parting shout when a passenger has gone without paying: 'The cabbie shouts " You bloody snob, watch out if we ever meet again ... "' (6C54). The record reads +3 of the actor's table record (the saved direct-object register, CFB6): if it is non-zero it prints the shout; if it is zero it sets the ROM variable $5C3C to 1 first and then prints.
Output
F NZ; the cabbie's shout printed, if the player can see it
E70E DEFB $00,$00 Action record header: flags $00; byte 1 $00
E710 LD A,($5C3C) Read the output-switch byte (TV_FLAG) ($5C3C) into A - Keep the output switch $5C3C
E713 PUSH AF Save AF on the stack
E714 CALL $CFB6 (CFB6)
E717 LD A,(IX+$03) Read byte +3 of the record at IX into A - The record's flags (+3)
E71A AND A Test A for zero (this leaves A as it was and clears carry)
E71B LD HL,$6C54 Point HL at the message "YOU SHOUTS" YOU BLOODY SNOB, WATCH OUT IF WE... (6C54)
E71E JR NZ,$E725 If A is not zero, skip ahead to E725
E720 LD A,$01 Load A with $01
E722 LD ($5C3C),A Store A in the output-switch byte (TV_FLAG) ($5C3C)
E725 CALL $A59F Call the routine "Print the message at HL" (A59F)
E728 POP AF Restore AF from the stack
E729 LD ($5C3C),A Store A in the output-switch byte (TV_FLAG) ($5C3C)
E72C OR $01 Make A non-zero, which clears the zero flag, and hand that back to the caller
E72E RET Return to the caller
Prev: E6E6 Up: Map Next: E72F