Sherlock: annotated disassembly

Data

Prev: D04F Up: Map Next: D06A
D05A: How a room is entered in words: 'You are ON Baker Street'
Indexed by bits 1-3 of the room record's first byte (D0DD): OUTSIDE, INSIDE, IN, ON, AT, NORTH, SOUTH, EAST. The word is written into the message 'YOU ARE IN' at 68DD itself (its second word, at $68DE) before it is printed - self-modifying message data.
Kinds 5-7 are really the start of the next table: the direction words at D064 (NORTH, SOUTH, EAST, then WEST to DOWN at D06A), which D5FB indexes by direction number. No room uses kinds 0, 1 or 5-7: 65 rooms are IN, 32 ON and 9 AT (counted from the room records).
D05A DEFW $0624 Room kind 0: OUTSIDE
D05C DEFW $0466 Room kind 1: INSIDE
D05E DEFW $0450 Room kind 2: IN
D060 DEFW $05FF Room kind 3: ON
D062 DEFW $009A Room kind 4: AT
D064 DEFW $05C3 Room kind 5: NORTH
D066 DEFW $081A Room kind 6: SOUTH
D068 DEFW $0284 Room kind 7: EAST
Prev: D04F Up: Map Next: D06A