Sherlock: annotated disassembly

Routines

Prev: D5D3 Up: Map Next: D5FB
D5EF: IX = room A's exits (record + 6), BC = 3 (their size)
Used by the routines at D60B and D68C.
Input
A A room number
Output
IX The room's exits
BC 3, the size of an exit
D5EF CALL $D224 Room A's record (D224)
D5F2 LD BC,$0006 Load BC with $0006, the amount that is added next - IX + 6 = its exits
D5F5 ADD IX,BC Add BC to IX
D5F7 LD BC,$0003 Load BC with $0003 - BC = 3, the size of an exit
D5FA RET Return to the caller
Prev: D5D3 Up: Map Next: D5FB