Sherlock: annotated disassembly

Routines

Prev: 9ACB Up: Map Next: 9AF4
9AE1: Shared action 15: GO FURIOUSLY TO in a hansom cab - dearer, two minutes quicker
Header $04 $00 then code: the route check (9B50), the fare at 6d a step (9B25 with DE = 6), and the table's minutes less 2 as the ride's length; then on as 9AF4. A cabbie's own action list sends verb 30 (GO FURIOUSLY TO) here.
Input
IX The action record (a cabbie's GO FURIOUSLY TO)
Output
F From the ride routine at $9B02
9AE1 DEFB $04,$00 Action record header: flags $04; byte 1 $00
9AE3 CALL $9B50 (9B50)
9AE6 LD DE,$0006 Load DE with $0006 - DE = 6 (9B25)
9AE9 CALL $9B25 Call the routine "Price a cab ride from its journey time" (9B25)
9AEC LD A,(IX+$02) Read byte +2 of the record at IX into A - L = the byte at IX+2 minus 2
9AEF SUB $02 Subtract $02 from A
9AF1 LD L,A Copy A into L
9AF2 JR $9B02 Join the common ending at 9B02
Prev: 9ACB Up: Map Next: 9AF4