Page Byte Address Description
92 0 23552
Attribute buffer (room + Willy + entities + items)
94 0 24064
Attribute buffer (empty room)
96 0 24576
Screen buffer (room + Willy + entities + items)
112 0 28672
Screen buffer (empty room)
128 0 32768
Room layout
128 128 32896
Room name
128 160 32928
Room tiles
128 214 32982
Conveyor definition
128 218 32986
Ramp definition
128 222 32990
Border colour
128 223 32991
Unused
128 225 32993
Item graphic
128 233 33001
Room exits
128 237 33005
Unused
128 240 33008
Entity specifications
129 0 33024
Entity buffers
129 65 33089
Unused
130 0 33280
Screen buffer address lookup table
131 0 33536
Rope animation table
132 0 33792
The game has just loaded
132 32 33824
Current room number
132 33 33825
Left-right movement table
132 49 33841
Triangle UDGs
132 81 33873
'AIR'
132 84 33876
'+++++ Press ENTER to Start +++++...'
133 84 34132
'Items collected 000 Time 00:00 m'
133 116 34164
'Game'
133 120 34168
'Over'
133 124 34172
Number of items collected
133 127 34175
Current time
133 133 34181
' 7:00a'
133 139 34187
'Enter Code at grid location     '
133 171 34219
'Sorry, try code at location     '
133 203 34251
Minute counter
133 204 34252
Lives remaining
133 205 34253
Screen flash counter
133 206 34254
Kempston joystick indicator
133 207 34255
Willy's y-coordinate
133 208 34256
Willy's direction and movement flags
133 209 34257
Airborne status indicator
133 210 34258
Willy's animation frame
133 211 34259
Address of Willy's location in the attribute buffer at 23552
133 213 34261
Jumping animation counter
133 214 34262
Rope status indicator
133 215 34263
Willy's state on entry to the room
133 222 34270
256 minus the number of items remaining
133 223 34271
Game mode indicator
133 224 34272
Inactivity timer
133 225 34273
In-game music note index
133 226 34274
Music flags
133 227 34275
WRITETYPER key counter
133 228 34276
Temporary variable
133 229 34277
WRITETYPER
133 251 34299
Title screen tune data (Moonlight Sonata)
134 95 34399
In-game tune data (If I Were a Rich Man)
134 159 34463
Give two chances to enter a correct code
134 195 34499
Display the code entry screen
135 60 34620
Read the keyboard during code entry
135 202 34762
Display the title screen and play the theme tune
136 252 35068
Start the game
137 18 35090
Initialise the current room
137 139 35211
Draw the remaining lives
137 173 35245
Main loop (1)
138 235 35563
Cycle the INK and PAPER colours
139 7 35591
Main loop (2)
140 1 35841
Lose a life
140 74 35914
Display the game over sequence
141 51 36147
Draw the current room to the screen buffer at 28672
141 107 36203
Fill the buffer at 24064 with attribute bytes for the current room
141 192 36288
Copy a room attribute byte into the buffer at 24064
141 211 36307
Move Willy (1)
142 212 36564
Move Willy (2)
143 188 36796
Move Willy (3)
144 182 37046
Kill Willy
144 192 37056
Move the rope and guardians in the current room
145 190 37310
Draw the rope, arrows and guardians in the current room
147 187 37819
Unused routine
147 209 37841
Draw the items in the current room and collect any that Willy is touching
148 86 37974
Draw a sprite
148 138 38026
Move Willy into the room to the left
148 158 38046
Move Willy into the room to the right
148 176 38064
Move Willy into the room above
148 210 38098
Move Willy into the room below
148 249 38137
Move the conveyor in the current room
149 52 38196
Deal with special rooms (Master Bedroom, The Bathroom)
149 132 38276
Check whether Willy has reached the toilet
149 154 38298
Animate the toilet in The Bathroom
149 200 38344
Check and set the attribute bytes for Willy's sprite in the buffer at 23552
150 30 38430
Check and set the attribute byte for a cell occupied by Willy's sprite
150 55 38455
Draw Willy to the screen buffer at 24576
150 128 38528
Print a message
150 145 38545
Print a single character
150 162 38562
Play the theme tune (Moonlight Sonata)
150 201 38601
Check whether ENTER, 0 or the fire button is being pressed
150 222 38622
Play an intro message sound effect
150 244 38644
Unused routine
151 24 38680
Unused
152 0 38912
Attributes for the top two-thirds of the title screen
154 0 39424
Attributes for the bottom third of the screen
155 0 39680
Number key graphics
155 128 39808
Attributes for the code entry screen
156 0 39936
Source code remnants
156 64 40000
Foot/barrel graphic data
156 128 40064
Maria sprite graphic data
157 0 40192
Willy sprite graphic data
158 0 40448
Codes
158 179 40627
Unused
160 0 40960
Entity definitions
163 255 41983
Index of the first item
164 0 41984
Item table
166 0 42496
Toilet graphics
166 128 42624
Unused
171 0 43776
Guardian graphics
192 0 49152
Room 0: The Off Licence (teleport: 9)
193 0 49408
Room 1: The Bridge (teleport: 19)
194 0 49664
Room 2: Under the MegaTree (teleport: 29)
195 0 49920
Room 3: At the Foot of the MegaTree (teleport: 129)
196 0 50176
Room 4: The Drive (teleport: 39)
197 0 50432
Room 5: The Security Guard (teleport: 139)
198 0 50688
Room 6: Entrance to Hades (teleport: 239)
199 0 50944
Room 7: Cuckoo's Nest (teleport: 1239)
200 0 51200
Room 8: Inside the MegaTrunk (teleport: 49)
201 0 51456
Room 9: On a Branch Over the Drive (teleport: 149)
202 0 51712
Room 10: The Front Door (teleport: 249)
203 0 51968
Room 11: The Hall (teleport: 1249)
204 0 52224
Room 12: Tree Top (teleport: 349)
205 0 52480
Room 13: Out on a limb (teleport: 1349)
206 0 52736
Room 14: Rescue Esmerelda (teleport: 2349)
207 0 52992
Room 15: I'm sure I've seen this before.. (teleport: 12349)
208 0 53248
Room 16: We must perform a Quirkafleeg (teleport: 59)
209 0 53504
Room 17: Up on the Battlements (teleport: 159)
210 0 53760
Room 18: On the Roof (teleport: 259)
211 0 54016
Room 19: The Forgotten Abbey (teleport: 1259)
212 0 54272
Room 20: Ballroom East (teleport: 359)
213 0 54528
Room 21: Ballroom West (teleport: 1359)
214 0 54784
Room 22: To the Kitchens    Main Stairway (teleport: 2359)
215 0 55040
Room 23: The Kitchen (teleport: 12359)
216 0 55296
Room 24: West of Kitchen (teleport: 459)
217 0 55552
Room 25: Cold Store (teleport: 1459)
218 0 55808
Room 26: East Wall Base (teleport: 2459)
219 0 56064
Room 27: The Chapel (teleport: 12459)
220 0 56320
Room 28: First Landing (teleport: 3459)
221 0 56576
Room 29: The Nightmare Room (teleport: 13459)
222 0 56832
Room 30: The Banyan Tree (teleport: 23459)
223 0 57088
Room 31: Swimming Pool (teleport: 123459)
224 0 57344
Room 32: Halfway up the East Wall (teleport: 69)
225 0 57600
Room 33: The Bathroom (teleport: 169)
226 0 57856
Room 34: Top Landing (teleport: 269)
227 0 58112
Room 35: Master Bedroom (teleport: 1269)
228 0 58368
Room 36: A bit of tree (teleport: 369)
229 0 58624
Room 37: Orangery (teleport: 1369)
230 0 58880
Room 38: Priests' Hole (teleport: 2369)
231 0 59136
Room 39: Emergency Generator (teleport: 12369)
232 0 59392
Room 40: Dr Jones will never believe this (teleport: 469)
233 0 59648
Room 41: The Attic (teleport: 1469)
234 0 59904
Room 42: Under the Roof (teleport: 2469)
235 0 60160
Room 43: Conservatory Roof (teleport: 12469)
236 0 60416
Room 44: On top of the house (teleport: 3469)
237 0 60672
Room 45: Under the Drive (teleport: 13469)
238 0 60928
Room 46: Tree Root (teleport: 23469)
239 0 61184
Room 47: [ (teleport: 123469)
240 0 61440
Room 48: Nomen Luni (teleport: 569)
241 0 61696
Room 49: The Wine Cellar (teleport: 1569)
242 0 61952
Room 50: Watch Tower (teleport: 2569)
243 0 62208
Room 51: Tool  Shed (teleport: 12569)
244 0 62464
Room 52: Back Stairway (teleport: 3569)
245 0 62720
Room 53: Back Door (teleport: 13569)
246 0 62976
Room 54: West  Wing (teleport: 23569)
247 0 63232
Room 55: West Bedroom (teleport: 123569)
248 0 63488
Room 56: West Wing Roof (teleport: 4569)
249 0 63744
Room 57: Above the West Bedroom (teleport: 14569)
250 0 64000
Room 58: The Beach (teleport: 24569)
251 0 64256
Room 59: The Yacht (teleport: 124569)
252 0 64512
Room 60: The Bow (teleport: 34569)
253 0 64768
Unused TRS-DOS code