Sherlock: annotated disassembly

Data

Prev: A536 Up: Map Next: A59D
A55D: Routines for the message control codes $00-$1F
One address per control code, used by A621. Codes below $1D are called and the interpreter carries on; $1D-$1F are jumped to instead (A62F).
What the handlers do, from reading them: $00 print the thing whose address is the next parameter; $01 print the next parameter as a word; $05 print the case statement at the next parameter; $06 name the current actor; $07 name the direct object; $08 print the character in A; $09 name the indirect object; $0A pick one of the next n elements at random; $0B print a message at an offset from here; $0C YOUR for the player, HIS for anyone else (the actor); $0D print the character in A; $0E YOUR for the player, HIS for anyone else (the direct object); $0F only in part of the day 5; $10 name the actor with the verb form (ARE / IS); $11 name the direct object with the verb form; $13 name the person in the next parameter with the verb form; $14 only in part of the day 4; $15 only in part of the day 3; $16 only in part of the day 2; $17 only in part of the day 1; $18 narrate the remembered command; $19 print the message at the next parameter; $1D end the message, no full stop, with a newline; $1E end the message with a full stop and a newline; $1F does nothing.
A55D DEFW $A65D Code $00: A65D
A55F DEFW $A66C Code $01: A66C
A561 DEFW $A679 Code $02: A679
A563 DEFW $A702 Code $03: A702
A565 DEFW $A709 Code $04: A709
A567 DEFW $A711 Code $05: A711
A569 DEFW $A720 Code $06: A720
A56B DEFW $A72C Code $07: A72C
A56D DEFW $A736 Code $08: A736
A56F DEFW $A73B Code $09: A73B
A571 DEFW $A6D3 Code $0A: A6D3
A573 DEFW $A75B Code $0B: A75B
A575 DEFW $A780 Code $0C: A780
A577 DEFW $A63A Code $0D: A63A
A579 DEFW $A78E Code $0E: A78E
A57B DEFW $A68C Code $0F: A68C
A57D DEFW $A793 Code $10: A793
A57F DEFW $A7AC Code $11: A7AC
A581 DEFW $A65C Code $12: A65C
A583 DEFW $A7B4 Code $13: A7B4
A585 DEFW $A694 Code $14: A694
A587 DEFW $A69C Code $15: A69C
A589 DEFW $A6A4 Code $16: A6A4
A58B DEFW $A6AC Code $17: A6AC
A58D DEFW $A360 Code $18: A360
A58F DEFW $A771 Code $19: A771
A591 DEFW $A684 Code $1A: A684
A593 DEFW $A852 Code $1B: A852
A595 DEFW $A682 Code $1C: A682
A597 DEFW $A63F Code $1D: A63F
A599 DEFW $A643 Code $1E: A643
A59B DEFW $A65A Code $1F: A65A
Prev: A536 Up: Map Next: A59D