Routines
| Prev: 9AE1 | Up: Map | Next: 9B25 |
9AF4: Shared action 14: GO TO in a hansom cab
|
Header $04 $00 then code (a cabbie's action list sends verb 29, GO TO, here): the route check (9B50), the fare at 2d a step (9B25 with DE = 2) and the table's minutes as the ride's length (9B02 stores it at $A01F); then the cab is moved (DD0E) and the ride handed to the vehicle sub-script F3AD. 20 minutes and 10d from Baker Street to Parliament Street.
|
||||||||||||||
| 9AF4 | DEFB $04,$00 | Action record header: flags $04; byte 1 $00 | ||||||||||||
| 9AF6 | CALL $9B50 | Can the cab get there from here? (9B50) | ||||||||||||
| 9AF9 | LD DE,$0002 | Load DE with $0002 - The fare at 2d a step (9B25 with DE = 2) | ||||||||||||
| 9AFC | CALL $9B25 | Call the routine "Price a cab ride from its journey time" (9B25) | ||||||||||||
| 9AFF | LD L,(IX+$02) | Read byte +2 of the record at IX into L - L = the table's journey time, in minutes (IX+2) | ||||||||||||
|
This entry point is used by the routine at 9AE1.
|
||||||||||||||
| 9B02 | LD A,$01 | Load A with $01 | ||||||||||||
|
This entry point is used by the routine at 9ACB.
|
||||||||||||||
| 9B04 | PUSH AF | Save AF on the stack | ||||||||||||
| 9B05 | LD H,$00 | Load H with $00 | ||||||||||||
| 9B07 | LD ($A01F),HL | Which is the length of the action ($A01F) | ||||||||||||
| 9B0A | LD A,($E2C6) | Read "HAIL: the cab hailed, plus one" (E2C6) into A - Clear the 'revealed' flag of the thing named at E2C6 (9C60) | ||||||||||||
| 9B0D | CALL $9C60 | Call the routine "Clear an object's 'revealed' flag (+5 bit 7)" (9C60) | ||||||||||||
| 9B10 | POP BC | Restore BC from the stack | ||||||||||||
| 9B11 | PUSH BC | Save BC on the stack | ||||||||||||
| 9B12 | LD A,($E2C6) | Read "HAIL: the cab hailed, plus one" (E2C6) into A - Then DD0E with the same thing and B = 1 | ||||||||||||
| 9B15 | CALL $DD0E | Call DD0E (inside "Default action: move in a direction (verbs...") | ||||||||||||
| 9B18 | POP AF | Restore AF from the stack | ||||||||||||
| 9B19 | CALL $D224 | The destination's record (D224) | ||||||||||||
| 9B1C | RES 6,(IX+$00) | Clear bit 6 of its +0 | ||||||||||||
| 9B20 | LD HL,$F3AD | Point HL at F3AD in "Plan script: returned as a sub-script by..." - Hand the ride to the vehicle sub-script at F3AD | ||||||||||||
| 9B23 | SCF | Set the carry flag for the caller | ||||||||||||
| 9B24 | RET | Return to the caller | ||||||||||||
| Prev: 9AE1 | Up: Map | Next: 9B25 |