Sherlock: annotated disassembly

Data

Prev: 9FD4 Up: Map Next: A040
9FD6: Game variables
The plan-script registers, the clock and the heads of the engine's linked lists (each list's head word doubles as the link of a pseudo-node 2 bytes further on, which is the address the list walk A0F7 starts from: 9FE7 for countdowns, 9FE9 for tokens, 9FEB for frames, 9FF0 for orders).
9FD6 DEFB $00 9FD6: the plan's verb (argument $FA)
9FD7 DEFB $00 9FD7: the plan's direct object (argument $FD)
9FD8 DEFB $00 9FD8: the plan's indirect object (argument $FC)
9FD9 DEFW $0000 9FD9: the plan instruction being run
9FDB DEFW $0000 9FDB: the current actor's record in the actor table
9FDD DEFW $0000 9FDD: minutes since the start
9FDF DEFB $3B 9FDF: the minute
9FE0 DEFB $07 9FE0: the hour, 1-12
9FE1 DEFB $00 9FE1: the day (0 = Monday)
9FE2 DEFB $61 9FE2: 'a' or 'p'
9FE3 DEFW $9570 9FE3: the heap's free list
9FE5 DEFW $0000 9FE5: countdowns (2-byte nodes: actor, count)
9FE7 DEFW $0000 9FE7: SIGNAL tokens (2-byte nodes: from, to)
9FE9 DEFW $0000 9FE9: sub-script call frames (7-byte nodes)
9FEB DEFB $00 9FEB: not identified (D781 clears it)
9FEC DEFW $0000 9FEC: quoted speech waiting to be handed over (B049, B86A)
9FEE DEFW $0000 9FEE: orders and remarks waiting for actors (8-byte nodes)
9FF0 DEFW $0000 9FF0: words the player has said, for the next remark
9FF2 DEFB $00,$00,$00,$00,$00,$00,$00,$00
9FFA DEFB $00,$00,$00,$00,$00,$00,$00,$00
A002 DEFB $71,$09,$00,$00,$00,$00,$00,$00
A00A DEFB $00,$00,$00,$00,$00,$00,$00,$00
A012 DEFB $FF,$00,$00,$00,$00,$00,$00,$00
A01A DEFB $00,$00,$00,$00,$00,$00,$00,$00
A022 DEFB $00,$00,$00,$00,$01,$00,$00,$00
A02A DEFB $00,$00,$00,$00,$00,$00,$00,$00
A032 DEFB $00,$00,$00,$00,$00,$00,$00,$00
A03A DEFB $00,$00,$00,$04,$40,$58
Prev: 9FD4 Up: Map Next: A040