| Data

7D1C: Object/key/cash/message location table

Used by the routines at 7541, 7603 and 7CD8. Each entry here consists of 4 bytes. The bits in the first byte have the following meanings:
Bit(s) | Meaning
--- | ---
7 | If set, the entry is initially inactive
4-6 | 000: entry corresponds to a cash bonus
001: entry corresponds to a key
010: entry corresponds to a message
100: entry corresponds to an object that must be picked up (hook or budgie)
1-3 | Unused
0 | If set, the entry is inactive
The second and third bytes contain the coordinates of the object. The contents of the fourth byte depend on the type of object; see the individual entry for details. The first entry in this table is for the hook. It is active from the beginning of the game, deactivated (by the routine at 7603) when the hook is picked up, and reactivated (by the routine at 7BB6) after the hook has been thrown and finished flying.
7D1C | DEFB $40 | Bit 6 set: object that must be picked up
7D1D | DEFB $33,$0D | Location (top floor of no. 74)
7D1F | DEFB $40 | Bit 6 set (see 7FE9)
The next entry is for the budgie. It is activated by the routine at 7500 (using the event entry at 6097), and deactivated (by the routine at 7603) when the budgie is picked up.
7D20 | DEFB $C1 | Bit 6 set: object that must be picked up
7D21 | DEFB $E1,$0D | Location (room above Sam's office)
7D23 | DEFB $80 | Bit 7 set (see 7FE9)
The next entry is for the key to no. 74. It is activated by the routine at 7500 (using the event entry at 605A), and deactivated (by the routine at 7603) when the key is found.
7D24 | DEFB $91 | Bit 4 set: key
7D25 | DEFB $22,$0D | Location (in the room past the catwalk)
7D27 | DEFB $08 | Bit 3 set (see 7FEA)
The next entry is for the key to no. 31. It is active from the beginning of the game, and deactivated (by the routine at 7603) when the key is found.
7D28 | DEFB $10 | Bit 4 set: key
7D29 | DEFB $FC,$0D | Location (top floor of no. 15)
7D2B | DEFB $10 | Bit 4 set (see 7FEA)
The next entry is for the key to no. 27. It is activated by the routine at 7500 (using the event entry at 608C), and deactivated (by the routine at 7603) when the key is found.
7D2C | DEFB $91 | Bit 4 set: key
7D2D | DEFB $AA,$23 | Location (middle of the road next to no. 27)
7D2F | DEFB $20 | Bit 5 set (see 7FEA)
The next entry is for the key to no. 15. It is active from the beginning of the game, and deactivated (by the routine at 7603) when the key is found.
7D30 | DEFB $10 | Bit 4 set: key
7D31 | DEFB $6A,$19 | Location (second floor of no. 31)
7D33 | DEFB $40 | Bit 6 set (see 7FEA)
The next entry is for the dead man's body on the top floor of the hotel. It is active from the beginning of the game, and deactivated (by the routine at 7603) when Sam finds the body.
7D34 | DEFB $20 | Bit 5 set: message
7D35 | DEFB $40,$07 | Location (top floor of the hotel)
7D37 | DEFB $35 | Message 0x35: 'THERE'S A MAN'S BODY ON THE FLOOR'
The next entry is for where someone growls 'NO KEY EH!'. It is active from the beginning of the game, and deactivated by the routine at 7500 (using the event entry at 600A).
7D38 | DEFB $20 | Bit 5 set: message
7D39 | DEFB $F9,$1B | Location (stairs up to the second floor of no. 15)
7D3B | DEFB $3D | Message 0x3D: 'SOMEONE GROWLED 'NO KEY EH!''
The next entry is for where there's a safe with four locks. It is active from the beginning of the game, and deactivated (by the routine at 7603) when Sam finds the safe.
7D3C | DEFB $20 | Bit 5 set: message
7D3D | DEFB $E4,$0D | Location (room above Sam's office)
7D3F | DEFB $47 | Message 0x47: 'THERES A SAFE WITH 4 LOCKS'
The next entry is for where someone below says 'CRUISE WAS DRESSED AS THE OIL MAN...'. It is deactivated (by the routine at 7603) when Sam is halfway across the rope, and checked by the routine at 7500 (using the event entry at 5FEE).
7D40 | DEFB $20 | Bit 5 set: message
7D41 | DEFB $D6,$06 | Location (on the rope above no. 19)
7D43 | DEFB $46 | Message 0x46: 'SOMEONE BELOW SAID 'CRUISE WAS DRESSED AS THE OIL MAN. DONT LET ANYONE PAST''
The next entry is for the cash bonus on the top floor of the hotel. It is deactivated (by the routine at 7603) when Sam finds the money.
7D44 | DEFB $00 | Bits 4-6 reset: cash
7D45 | DEFB $3A,$07 | Location
7D47 | DEFB $64 | $100
The next entry is for the cash bonus on the first floor of no. 19. It is deactivated (by the routine at 7603) when Sam finds the money.
7D48 | DEFB $00 | Bits 4-6 reset: cash
7D49 | DEFB $DC,$1F | Location
7D4B | DEFB $32 | $50
The next entry is for the cash bonus on the second floor of no. 15. It is deactivated (by the routine at 7603) when Sam finds the money.
7D4C | DEFB $00 | Bits 4-6 reset: cash
7D4D | DEFB $F2,$19 | Location
7D4F | DEFB $64 | $100
The next entry is for the cash bonus on the top floor of no. 74. It is deactivated (by the routine at 7603) when Sam finds the money.
7D50 | DEFB $00 | Bits 4-6 reset: cash
7D51 | DEFB $28,$0D | Location
7D53 | DEFB $64 | $100
The last entry is for the cash bonus in the room above Sam's office. It is deactivated (by the routine at 7603) when Sam finds the money.
7D54 | DEFB $00 | Bits 4-6 reset: cash
7D55 | DEFB $E2,$0D | Location
7D57 | DEFB $C8 | $200
And finally the end marker.
7D58 | DEFB $FF |