Sherlock: annotated disassembly

Routines

Prev: D1B2 Up: Map Next: D1DB
D1C6: Print room IX's name (its name words at +1)
With no article ($A028 = 0), through D405.
Input
IX A room's record
Output
The room's name printed with no article
D1C6 LD DE,$0001 Load DE with $0001 - IY = the room record + 1 (its name words)
D1C9 PUSH IY Save IY on the stack
D1CB PUSH IX Save IX on the stack
D1CD POP IY Restore IY from the stack
D1CF ADD IY,DE Add DE to IY
D1D1 XOR A Clear A to zero (and the carry flag) - $A028 = 0
D1D2 LD ($A028),A Store A in $A028 in "Game variables"
D1D5 CALL $D405 Call the routine "Print a thing's name with its adjectives (IY = its..." (D405) - Print the name (D405)
D1D8 POP IY Restore IY from the stack
D1DA RET Return to the caller
Prev: D1B2 Up: Map Next: D1DB