Sherlock: annotated disassembly

Routines

Prev: B6D6 Up: Map Next: B6FD
B6DA: If the slot names scenery: 'YOU CANNOT <verb> THE <word>'
B6DA for the first slot (verb pattern from B633), B6F0 for the second (B62F): if B6FD finds the words in the room's scenery, the caller's return address is dropped, the words are pushed as parameters (B83C) and 68A2 is printed.
Input
HL The slot's words
Output
F Z if the words do not name scenery; otherwise YOU CANNOT ... THE ... is printed and the caller is abandoned (entry $B6F0 does the same for the second slot)
B6DA CALL $B6FD Count the words in the slot (B6FD)
B6DD RET Z If the zero flag is set, return - None: return
B6DE POP DE Restore DE from the stack
B6DF CALL $B83C Push them as parameters (B83C)
B6E2 CALL $B633 Push the verb's words (B633)
B6E5 LD HL,($B186) Read $B186 in "Parser variables" into HL - And the saved word ($B186)
B6E8 PUSH HL Save HL on the stack
B6E9 LD HL,$68A2 Point HL at the message "YOU CANNOT ‹word› THE ‹word›" (68A2)
B6EC CALL $A59F Call the routine "Print the message at HL" (A59F)
B6EF RET Return to the caller
This entry point is used by the routine at B6AE.
B6F0 CALL $B6FD Call the routine "Do the slot's words name some of the room's scenery?" (B6FD)
B6F3 RET Z If the zero flag is set, return
B6F4 POP DE Restore DE from the stack
B6F5 CALL $B83C Call the routine "Push the three words at HL as message parameters" (B83C)
B6F8 CALL $B62F Call B62F (inside "Ask the player which object, or what")
B6FB JR $B6E5 Go back to B6E5
Prev: B6D6 Up: Map Next: B6FD