Page Byte Address Description
96 0 24576
The game has just loaded
98 41 25129
Main loop
98 79 25167
Read the keyboard and update Horace's sprite accordingly
99 55 25399
Move Horace and the guards
99 218 25562
Move a guard
101 30 25886
Redraw the tiles behind Horace and the guards if they've moved
101 91 25947
Redraw the tiles behind a guard after he's moved
101 161 26017
Add to the score if Horace has eaten something
102 34 26146
Draw the guards
102 61 26173
Draw a guard
102 164 26276
Check whether Horace has run into a guard
103 58 26426
Lose a life
104 33 26657
Draw Horace
104 106 26730
Draw the bell and check whether Horace has sounded the alarm
105 7 26887
Check whether a guard should drop his lunch
105 34 26914
Make a guard drop his lunch if necessary
105 108 26988
Decrement the guard countdown timers
105 142 27022
Toggle the sound on/off if 'T' is pressed
105 164 27044
Ring the bell if necessary
106 23 27159
Unused
106 30 27166
Enter the next maze
106 34 27170
Initialise the guard countdown timers
106 63 27199
Copy a guard buffer into the temporary location
106 106 27242
Copy the temporary guard buffer back into place
106 119 27255
Make the title screen or game over sound effect
106 158 27294
Get the tunnel offset and bell, initial guard and entrance locations for the current maze
106 167 27303
Copyright © 1982 Beam Software...
106 231 27367
DEMO MODE  PRESS ANY KEY TO PLAY
107 8 27400
Title screen countdown timer
107 10 27402
Active guard counter
107 11 27403
Game mode indicator
107 12 27404
Wait for 26*BC+5 T states
107 18 27410
Collect a pseudo-random number (from the ROM)
107 33 27425
Print the score or high score
107 72 27464
Compute and print a digit
107 117 27509
Draw the current maze
107 214 27606
Draw a sprite
107 250 27642
Print a tile or font character
108 15 27663
Convert a sprite location or display file address into an attribute file address
108 32 27680
Check the attribute bytes at a sprite's location
108 70 27718
Check the attribute byte at a sprite tile location
108 104 27752
Copy maze background tiles into a guard's buffer
108 149 27797
Copy a maze background tile into a guard's buffer
108 194 27842
Check the tiles next to Horace or a guard
108 250 27898
Identify a tile in front of a sprite
109 23 27927
Get the location of the tile in front of a sprite
109 78 27982
Print 'HUNGRY' or 'HORACE' on the title screen
109 166 28070
Guard countdown timers
109 174 28078
Guard panic timer
109 176 28080
Temporary store for a guard's screen x- and y-coordinates
109 178 28082
Temporary store for direction probability parameters
109 182 28086
Buffer address of the guard currently being handled
109 184 28088
Temporary guard buffer
109 227 28131
Guard buffers
110 143 28303
Data for the word 'HUNGRY' on the title screen
111 47 28463
Data for the word 'HORACE' on the title screen
111 207 28623
Tunnel offset and bell, initial guard and entrance locations for the current maze
111 215 28631
Tunnel offset and bell, initial guard and entrance locations for maze 1
111 223 28639
Tunnel offset and bell, initial guard and entrance locations for maze 2
111 231 28647
Tunnel offset and bell, initial guard and entrance locations for maze 3
111 239 28655
Tunnel offset and bell, initial guard and entrance locations for maze 4
111 247 28663
Maze 2 layout
114 247 29431
Maze 1 layout
117 247 30199
Maze 3 layout
120 247 30967
Maze 4 layout
123 247 31735
Maze tiles
124 71 31815
PASSES   SCORE       BEST
124 97 31841
Sprite movement timer
124 98 31842
Game speed parameter (1-8)
124 99 31843
Current maze number
124 100 31844
Redundant temporary variable
124 101 31845
Lunch-drop countdown timer
124 103 31847
Address of the next pseudo-random number
124 105 31849
Sound on/off indicator
124 106 31850
'T' pressed indicator
124 107 31851
Horace's current location
124 109 31853
Horace's new location
124 111 31855
Temporary store for direction keypress
124 112 31856
Horace's animation frame (0-3)
124 113 31857
Horace's attribute byte
124 114 31858
Horace's walking animation timer
124 115 31859
Score
124 117 31861
High score
124 119 31863
Extra life indicator
124 120 31864
Number of lives remaining
124 121 31865
Tunnel timer
124 122 31866
Temporary store for Horace's screen x- and y-coordinates
124 124 31868
Cherry and strawberry graphics
124 196 31940
Bell location
124 198 31942
Bell animation frame counter
124 199 31943
Horace graphics
125 199 32199
Guard graphics
127 7 32519
Bell graphics
127 135 32647
Blank sprite