Sherlock: annotated disassembly

Routines

Prev: D182 Up: Map Next: D1C6
D1B2: Describe room A briefly (a room seen before)
Its name line (D0DD, D187) and then, unless it is too dark (D078, message 68C1), the rest (D178).
Input
A A room number
Output
The name line and, if it is not dark, the rest
D1B2 LD B,A Keep A in B
D1B3 CALL $D0DD (D0DD)
D1B6 EX DE,HL Swap DE and HL - (D187)
D1B7 CALL $D187 Call D187 (inside "Print a room's description")
D1BA CALL $D078 Call the routine "Is it too dark for the actor to see? (carry if so)" (D078) - Too dark to see (D078)? No carry: go to D178
D1BD JR NC,$D178 If the carry flag is clear, go back to D178
D1BF LD HL,$68C1 Point HL at the message "IT IS TOO DARK TO SEE MUCH ELSE." (68C1)
D1C2 CALL $A59F Call the routine "Print the message at HL" (A59F)
D1C5 RET Return to the caller
Prev: D182 Up: Map Next: D1C6