Page Byte Address Length Description
96 0 24576 591
The game has just loaded
98 79 25167 232
Read the keyboard and update Horace's sprite accordingly
99 55 25399 163
Move Horace and the guards
99 218 25562 324
Move a guard
101 30 25886 61
Redraw the tiles behind Horace and the guards if they've moved
101 91 25947 70
Redraw the tiles behind a guard after he's moved
101 161 26017 129
Add to the score if Horace has eaten something
102 34 26146 27
Draw the guards
102 61 26173 103
Draw a guard
102 164 26276 150
Check whether Horace has run into a guard
103 58 26426 231
Lose a life
104 33 26657 73
Draw Horace
104 106 26730 157
Draw the bell and check whether Horace has sounded the alarm
105 7 26887 27
Check whether a guard should drop his lunch
105 34 26914 74
Make a guard drop his lunch if necessary
105 108 26988 34
Decrement the guard countdown timers
105 142 27022 22
Toggle the sound on/off if 'T' is pressed
105 164 27044 115
Ring the bell if necessary
106 30 27166 4
Enter the next maze
106 34 27170 29
Initialise the guard countdown timers
106 63 27199 43
Copy a guard buffer into the temporary location
106 106 27242 13
Copy the temporary guard buffer back into place
106 119 27255 39
Make the title screen or game over sound effect
106 158 27294 9
Get the tunnel offset and bell, initial guard and entrance locations for the current maze
107 12 27404 6
Wait for 26*BC+5 T states
107 18 27410 15
Collect a pseudo-random number (from the ROM)
107 33 27425 39
Print the score or high score
107 72 27464 45
Compute and print a digit
107 117 27509 97
Draw the current maze
107 214 27606 36
Draw a sprite
107 250 27642 21
Print a tile or font character
108 15 27663 17
Convert a sprite location or display file address into an attribute file address
108 32 27680 38
Check the attribute bytes at a sprite's location
108 70 27718 34
Check the attribute byte at a sprite tile location
108 104 27752 45
Copy maze background tiles into a guard's buffer
108 149 27797 45
Copy a maze background tile into a guard's buffer
108 194 27842 56
Check the tiles next to Horace or a guard
108 250 27898 29
Identify a tile in front of a sprite
109 23 27927 55
Get the location of the tile in front of a sprite
109 78 27982 88
Print 'HUNGRY' or 'HORACE' on the title screen