Sherlock: annotated disassembly

Routines

Prev: 9A99 Up: Map Next: 9AE1
9ACB: Shared action 2: the police cab, GO FURIOUSLY TO - 20 minutes quicker
Header $04 $00 then code: the same routes (9AA3) with 20 minutes taken off - 94 out to Old Mill Road and 92 back. The local police man's action list (after its 00 entry) sends verb 29, GO TO, to shared action 1 and verb 30, GO FURIOUSLY TO, here. Lestrade's orders use verb 30 both ways in the chase, and SAY TO POLICE MAN "GO FURIOUSLY TO KINGS CROSS ROAD" took 75 minutes against 95 for plain GO TO.
Input
IX The action record
Output
F Z when the route is refused; otherwise continues at $9B04
9ACB DEFB $04,$00 Action record header: flags $04; byte 1 $00
9ACD CALL $9AA3 Call 9AA3 (inside "Shared action 1: the police cab, GO TO...") - Work out the route's time as GO TO does (9AA3); no route: refuse
9AD0 JP Z,$DC15 If the zero flag is set, jump on to the routine "Fail: A = 0, HL = 0, Z set" (DC15)
9AD3 LD A,L Copy L into A - Twenty minutes less: L - $14
9AD4 SUB $14 Subtract $14 from A
9AD6 LD L,A Copy A into L
This entry point is used by the routine at 9A99.
9AD7 LD A,$6D Load A with $6D - The thing named at E2C6 is $6D (109)...
9AD9 LD ($E2C6),A Store A in "HAIL: the cab hailed, plus one" (E2C6)
9ADC LD A,$69 Load A with $69 - ...and the shared-action code is $69; carry on as 9B04 does
9ADE JP $9B04 Skip ahead to 9B04
Prev: 9A99 Up: Map Next: 9AE1