Sherlock: annotated disassembly

Routines

Prev: D4EF Up: Map Next: D526
D51A: List the things in a place, with commas and AND
D526 does the work: it also marks each thing listed as seen by the player (+6 bit 7), which is what the case's evidence tests (see 9965).
Input
A A place
B, C As for $D526
Output
The things in the place listed; IY, DE, BC kept
D51A PUSH IY Save IY on the stack - Keep IY, DE and BC around the list (D526)
D51C PUSH DE Save DE on the stack
D51D PUSH BC Save BC on the stack
D51E CALL $D526 Call the routine "List the things in place A, then what each of them..." (D526)
D521 POP BC Restore BC from the stack
D522 POP DE Restore DE from the stack
D523 POP IY Restore IY from the stack
D525 RET Return to the caller
Prev: D4EF Up: Map Next: D526