/[projet1]/users/chema/skooldaze/data.s
Defence Force logotype

Contents of /users/chema/skooldaze/data.s

Parent Directory Parent Directory | Revision Log Revision Log


Revision 516 - (show annotations)
Fri May 27 19:04:57 2011 UTC (8 years, 10 months ago) by Chema
File size: 78272 byte(s)
Just relocated some tables... still a lot of work to do in this field...
1
2 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3 ;; -----------------------------------
4 ;; Skool Daze
5 ;; The Oric Version
6 ;; -----------------------------------
7 ;; (c) Chema 2011
8 ;; enguita@gmail.com
9 ;; -----------------------------------
10 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
11
12 ;; Data file
13 ;; --------------------
14
15
16
17 #include "params.h"
18 #include "script.h"
19
20 .zero
21 ; Column and row of tile in visible area coordinates
22 vis_col .byt 00
23 tile_row
24 vis_row .byt 00
25
26 ; Same but in skool coordinates
27 tile_col .byt 00
28
29
30 .text
31 ; Some game variables
32 first_col .byt 0 ; Leftmost visible column
33 lesson_clock .word 5376 ; Lesson clock
34 current_lesson_index .byt 0 ; Index of the current lesson in the main timetable
35 current_lesson .byt PLAYTIME1 ; Current lesson from the main timetable
36 last_char_moved .byt 0 ; Last character we have moved
37
38 ; Keep the next 5 contiguous!
39 lesson_status .byt 0 ; Lesson status flags
40 lesson_signals .byt 0 ; Lesson signal flags
41 game_status .byt 0 ; Game status flags
42 stampede_signals .byt 0 ; Stampede control signals
43 special_playtime .byt 0 ; Special playtime flags
44
45
46 game_mode .byt 0 ; Game mode indicator (0 demo, 1 shields need to be flashed, 2 combination, 3 shields need to be unflashed)
47 lesson_descriptor .byt 0 ; Indicates who is teaching Eric and where
48
49 ; Eric's status flags
50 ; 0 ERIC is firing the catapult
51 ; 1 ERIC is hitting
52 ; 2 ERIC is jumping
53 ; 3 ERIC is being spoken to by little boy no. 10
54 ; 4 ERIC has just been knocked down or unseated
55 ; 5 ERIC is writing on a blackboard
56 ; 6 Unused (always reset)
57 ; 7 ERIC is sitting or lying down
58
59 Eric_flags .byt 0
60 Eric_timer .byt 0
61 Eric_mid_timer .byt 0
62
63 ; For the speech bubble
64 bubble_on .byt 0 ; There is a bubble onscreen
65 bubble_lip_col .byt 0 ; Column of the bubble lip
66 bubble_lip_row .byt 0 ; Row of the bubble lip
67 bubble_col .byt 0 ; Col of the start (upper left corner) of the bubble
68 bubble_row .byt 0 ; Row of the start (upper left corner) of the bubble
69 bubble_loc_p .word 000 ; Pointer to the bubble screen position (upper left corner)
70
71 cur_speaking_char .byt 0 ; Current speaking character
72
73 ; Bitmasks for the bubble in the SRB
74 ; This is to protect against corruption
75 srb_bitmask .byt 0 ; Bitmask for first byte
76 srb_bitmask2 .byt 0 ; Idem for second byte
77 srb_offset .byt 0 ; Offset of the first byte in the SRB
78 srb_offset_lip .byt 0 ; Offset of the lip's byte
79 srb_bitmask_lip .byt 0 ; Bitmask for the lip
80
81 ; Locations for goto random location script
82 tab_locs
83 .byt D_LIBRARY
84 .byt D_FIRE_ESCAPE
85 .byt D_GYM
86 .byt D_BIG_WINDOW
87
88 ; Screen refresh buffer
89 SRB
90 .byt $3f,$ff,$ff,$ff,$fc
91 .byt $3f,$ff,$ff,$ff,$fc
92 .byt $3f,$ff,$ff,$ff,$fc
93 .byt $3f,$ff,$ff,$ff,$fc
94 .byt $3f,$ff,$ff,$ff,$fc
95 .byt $3f,$ff,$ff,$ff,$fc
96 .byt $3f,$ff,$ff,$ff,$fc
97 .byt $3f,$ff,$ff,$ff,$fc
98 .byt $3f,$ff,$ff,$ff,$fc
99 .byt $3f,$ff,$ff,$ff,$fc
100 .byt $3f,$ff,$ff,$ff,$fc
101 .byt $3f,$ff,$ff,$ff,$fc
102 .byt $3f,$ff,$ff,$ff,$fc
103 .byt $3f,$ff,$ff,$ff,$fc
104 .byt $3f,$ff,$ff,$ff,$fc
105 .byt $3f,$ff,$ff,$ff,$fc
106 .byt $3f,$ff,$ff,$ff,$fc
107 .byt $3f,$ff,$ff,$ff,$fc
108 .byt $3f,$ff,$ff,$ff,$fc
109 .byt $3f,$ff,$ff,$ff,$fc
110 .byt $3f,$ff,$ff,$ff,$fc
111
112
113 ; Backbuffer, just one tile..
114
115 backbuffer .dsb 8
116
117 ; Buffer for lesson box
118 buffer_text
119 .dsb BUFFER_TEXT_WIDTH*8,$40
120 .dsb BUFFER_TEXT_WIDTH*8,$40
121 .dsb BUFFER_TEXT_WIDTH*8,$40
122
123
124 ; Table to relate teacher codes and identifiers. Used in s_do_class
125 table_teacher_codes
126 .byt CHAR_ROCKITT, CHAR_WACKER, CHAR_WITHIT, CHAR_CREAK, 0
127
128
129 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
130 .dsb 256-(*&255)
131 ; Tile map for background: row 0
132 skool_r00 ;.dsb SKOOL_COLS,1
133 .byt $1,$2,$3,$4,$5,$5,$5,$5,$5,$5,$6,$7,$3,$4,$5,$5,$5,$5,$5,$5,$5,$8,$9,$a,$5,$5,$5,$5,$5,$5,$5,$5,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$2,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$2,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$2,$3,$4,$1,$1,$1,$1,$1,$1,$1,$5,$6,$7,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0
134
135 base_as_pointer_high
136 .byt >Eric_anim_states,>Einstein_anim_states,>Angelface_anim_states,>BoyWander_anim_states
137 .byt >Boy_anim_states,>Boy_anim_states,>Boy_anim_states,>Boy_anim_states,>Boy_anim_states
138 .byt >Boy_anim_states,>Boy_anim_states,>Boy_anim_states,>Boy_anim_states,>Boy_anim_states
139 .byt >Boy_anim_states,>Creak_anim_states,>Rockitt_anim_states,>Wacker_anim_states,>Withit_anim_states
140 .byt >Pellet_anim_states,>Pellet_anim_states
141 base_as_pointer_low
142 .byt <Eric_anim_states,<Einstein_anim_states,<Angelface_anim_states,<BoyWander_anim_states
143 .byt <Boy_anim_states,<Boy_anim_states,<Boy_anim_states,<Boy_anim_states,<Boy_anim_states
144 .byt <Boy_anim_states,<Boy_anim_states,<Boy_anim_states,<Boy_anim_states,<Boy_anim_states
145 .byt <Boy_anim_states,<Creak_anim_states,<Rockitt_anim_states,<Wacker_anim_states,<Withit_anim_states
146 .byt <Pellet_anim_states,<Pellet_anim_states
147
148 as_pointer_high
149 .byt >Eric_anim_states,>Einstein_anim_states,>Angelface_anim_states,>BoyWander_anim_states
150 .byt >Boy_anim_states,>Boy_anim_states,>Boy_anim_states,>Boy_anim_states,>Boy_anim_states
151 .byt >Boy_anim_states,>Boy_anim_states,>Boy_anim_states,>Boy_anim_states,>Boy_anim_states
152 .byt >Boy_anim_states,>Creak_anim_states,>Rockitt_anim_states,>Wacker_anim_states,>Withit_anim_states
153 .byt >Pellet_anim_states,>Pellet_anim_states
154 as_pointer_low
155 .byt <Eric_anim_states,<Einstein_anim_states,<Angelface_anim_states,<BoyWander_anim_states
156 .byt <Boy_anim_states,<Boy_anim_states,<Boy_anim_states,<Boy_anim_states,<Boy_anim_states
157 .byt <Boy_anim_states,<Boy_anim_states,<Boy_anim_states,<Boy_anim_states,<Boy_anim_states
158 .byt <Boy_anim_states,<Creak_anim_states,<Rockitt_anim_states,<Wacker_anim_states,<Withit_anim_states
159 .byt <Pellet_anim_states,<Pellet_anim_states
160
161
162 free_r0
163 .dsb (256)-(*&255)-32
164 ; Personal timetable for Eric (temporary)
165 per_timet_eric
166 .byt 170,170,160,160,176,176,176,144,152,152,152,168,168,168,168,144,144,168,152,196,212,196,196,196,196,196,196,196,196,196,196,196
167
168 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
169 ;.dsb 256-(*&255)
170 ; Tile map for background: row 1
171 skool_r01 ;.dsb SKOOL_COLS,1
172 .byt $b,$c,$c,$c,$d,$2,$3,$4,$5,$5,$e,$f,$10,$c,$11,$9,$12,$5,$5,$5,$5,$13,$14,$c,$15,$16,$17,$5,$5,$5,$5,$5,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$3,$4,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$3,$4,$0,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$8,$9,$a,$b,$c,$d,$1,$1,$1,$e,$f,$10,$11,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0
173
174 anim_state
175 .dsb MAX_CHARACTERS,0
176 flags
177 .dsb MAX_CHARACTERS,0
178 speed_counter
179 .dsb MAX_CHARACTERS, 4
180 uni_subcom_low
181 .dsb MAX_CHARACTERS,0
182
183 free_r1
184 .dsb (256-32)-(*&255)
185 ; Personal timetable for Einstein
186 per_timet_einstein
187 .byt 170,170,160,160,176,176,176,144,152,152,152,168,168,168,168,144,144,168,152,196,212,196,196,196,196,196,196,196,196,196,196,196
188
189 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
190 ;.dsb 256-(*&255)
191 ; Tile map for background: row 2
192 skool_r02 ;.dsb SKOOL_COLS,1
193 .byt $b,$18,$19,$1a,$1b,$c,$c,$c,$0,$0,$0,$0,$1c,$c,$c,$c,$c,$1d,$0,$0,$0,$0,$1e,$c,$c,$c,$1f,$0,$20,$21,$22,$0,$5,$6,$7,$0,$5,$6,$7,$0,$5,$6,$7,$0,$5,$6,$7,$0,$5,$6,$7,$0,$5,$6,$8,$9,$5,$6,$7,$0,$5,$6,$7,$0,$5,$6,$7,$0,$5,$6,$7,$0,$5,$6,$8,$0,$0,$9,$6,$a,$0,$b,$6,$a,$0,$c,$7,$0,$5,$6,$7,$0,$5,$6,$7,$0,$12,$0,$0,$13,$0,$0,$0,$0,$0,$14,$0,$0,$0,$0,$15,$0,$0,$0,$16,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0
194
195 uni_subcom_high
196 .dsb MAX_CHARACTERS,0
197 i_subcom_low
198 .dsb MAX_CHARACTERS,0
199
200 i_subcom_high
201 .dsb MAX_CHARACTERS,0
202 cont_subcom_low
203 .dsb MAX_CHARACTERS,0
204
205 free_r2
206 .dsb (256-32)-(*&255)
207 ; Personal timetable for Angelface
208 per_timet_angelface
209 .byt 174,174,158,158,166,180,180,142,166,150,150,166,166,180,180,142,142,166,150,220,196,196,182,182,182,182,182,182,182,182,182,182
210
211 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
212 ;.dsb 256-(*&255)
213 ; Tile map for background: row 3
214 skool_r03 ;.dsb SKOOL_COLS,1
215 .byt $b,$23,$24,$25,$26,$27,$28,$29,$2a,$2b,$2c,$2d,$1c,$c,$c,$c,$c,$1d,$0,$0,$20,$2e,$2f,$c,$c,$30,$31,$32,$33,$34,$35,$36,$a,$b,$c,$d,$e,$f,$10,$11,$12,$13,$14,$15,$0,$0,$16,$e,$17,$18,$19,$1a,$1b,$1c,$1d,$9,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$d,$0,$0,$0,$0,$0,$0,$0,$e,$0,$0,$f,$0,$10,$11,$12,$13,$14,$15,$f,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$12,$0,$0,$13,$17,$18,$19,$0,$0,$14,$0,$0,$0,$0,$1a,$1b,$1c,$1d,$16,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0
216
217 cont_subcom_high
218 .dsb MAX_CHARACTERS,0
219 command_list_high
220 .byt >command_list1
221 .byt >command_list212
222 .byt >command_list220
223 .byt >command_list216
224 .dsb 11,0
225 .byt >command_list214
226 .byt >command_list222
227 .byt >command_list218
228 .dsb 3,0
229 command_list_low
230 .byt <command_list1
231 .byt <command_list212
232 .byt <command_list220
233 .byt <command_list216
234 .dsb 11,0
235 .byt <command_list214
236 .byt <command_list222
237 .byt <command_list218
238 .dsb 3,0
239
240 dest_x
241 .dsb MAX_CHARACTERS,0
242
243 free_r3
244 .dsb (256-32)-(*&255)
245 ; Personal timetable for Boy Wander
246 per_timet_bwander
247 .byt 172,172,156,156,178,140,178,156,148,148,148,164,178,178,164,156,140,164,148,196,196,216,192,194,192,192,192,194,194,194,192,194
248
249 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
250 ;.dsb 256-(*&255)
251 ; Tile map for background: row 4
252 skool_r04 ;.dsb SKOOL_COLS,1
253 .byt $b,$37,$38,$39,$3a,$3b,$3c,$3d,$3e,$3f,$40,$2d,$1c,$c,$c,$c,$c,$1d,$0,$0,$20,$2e,$2f,$c,$c,$41,$42,$43,$43,$44,$45,$2d,$e,$1a,$10,$1e,$1f,$20,$21,$22,$22,$22,$23,$24,$0,$0,$25,$26,$1b,$27,$28,$29,$e,$2a,$1d,$9,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$d,$0,$0,$0,$0,$0,$0,$0,$e,$0,$0,$f,$0,$16,$17,$0,$18,$19,$1a,$1b,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$12,$0,$0,$13,$17,$18,$19,$0,$0,$14,$0,$0,$0,$0,$1a,$1b,$1c,$1d,$16,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0
254
255 dest_y
256 .dsb MAX_CHARACTERS,0
257 var1 ; Byte 103
258 .dsb MAX_CHARACTERS,0
259 var2 ; Byte 104
260 .dsb MAX_CHARACTERS,0
261 var3 ; Byte 107
262 .dsb MAX_CHARACTERS,0
263
264 free_r4
265 .dsb (256-32)-(*&255)
266 ; Personal timetable for Little boy 1
267 per_timet_lb1
268 .byt 170,170,146,154,176,136,154,146,162,154,146,146,136,146,136,154,146,154,162,196,196,196,198,176,176,202,196,196,204,204,176,196
269
270 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
271 ;.dsb 256-(*&255)
272 ; Tile map for background: row 5
273 skool_r05 ;.dsb SKOOL_COLS,1
274 .byt $b,$c,$18,$46,$47,$48,$49,$4a,$4b,$4c,$4d,$4e,$1c,$c,$c,$c,$c,$1d,$0,$0,$0,$0,$1e,$c,$c,$4f,$3d,$2c,$50,$51,$52,$3e,$1a,$2b,$2c,$2d,$2e,$e,$2f,$30,$31,$32,$33,$24,$0,$0,$25,$1e,$1b,$1e,$34,$1a,$1b,$2f,$35,$9,$1,$1,$1,$1,$1,$1,$1,$36,$1c,$1d,$1e,$1f,$20,$21,$22,$23,$1c,$24,$25,$1f,$20,$f,$0,$26,$27,$0,$0,$28,$29,$2a,$2b,$2c,$2d,$2e,$2f,$30,$31,$32,$33,$34,$1e,$1f,$20,$13,$0,$0,$0,$0,$0,$14,$0,$0,$0,$0,$21,$22,$23,$22,$23,$24,$25,$24,$25,$24,$25,$24,$25,$24,$25,$26,$27,$0
275
276
277 var4 ; Byte 108
278 .dsb MAX_CHARACTERS,0
279 var5 ; Byte 109
280 .dsb MAX_CHARACTERS,0
281 var6 ; Byte 110
282 .dsb MAX_CHARACTERS,0
283 var7 ; Byte 113
284 .dsb MAX_CHARACTERS,0
285
286 free_r5
287 .dsb (256-32)-(*&255)
288 ; Personal timetable for little boy 2
289 per_timet_lb2
290 .byt 170,170,146,154,146,136,162,162,146,154,136,136,146,162,154,162,146,154,136,196,196,196,198,198,176,202,196,196,206,206,198,176
291
292 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
293 ;.dsb 256-(*&255)
294 ; Tile map for background: row 6
295 skool_r06 ;.dsb SKOOL_COLS,1
296 .byt $b,$c,$53,$54,$55,$56,$57,$0,$58,$c,$59,$0,$1c,$c,$c,$c,$c,$1d,$0,$0,$0,$0,$1e,$c,$c,$5a,$5b,$5b,$5b,$5b,$5b,$5b,$37,$37,$37,$37,$37,$37,$37,$37,$37,$37,$38,$24,$0,$0,$25,$37,$37,$37,$37,$37,$37,$37,$39,$9,$0,$0,$0,$0,$0,$0,$0,$25,$35,$36,$37,$38,$39,$3a,$3b,$3c,$35,$36,$37,$38,$39,$f,$0,$0,$0,$0,$0,$0,$0,$3d,$3b,$39,$35,$3e,$3f,$38,$a,$40,$3b,$41,$28,$29,$2a,$13,$0,$0,$0,$0,$0,$14,$0,$0,$0,$0,$2b,$14,$2c,$14,$2c,$2d,$2e,$2d,$2e,$2d,$2e,$2d,$2e,$2d,$2e,$2d,$2e,$2f
297
298 var8 ; Byte 114
299 .dsb MAX_CHARACTERS,0
300
301 cur_command_high
302 .dsb MAX_CHARACTERS,0
303 cur_command_low
304 .dsb MAX_CHARACTERS,0
305 pcommand
306 .dsb MAX_CHARACTERS,0
307
308 free_r6
309 .dsb (256-32)-(*&255)
310 ; Personal timetable for little boy 3
311 per_timet_lb3
312 .byt 170,170,146,154,146,136,154,146,136,154,162,154,136,154,136,154,136,154,162,196,196,196,198,200,198,202,196,196,206,206,200,196
313
314 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
315 ;.dsb 256-(*&255)
316 ; Tile map for background: row 7
317 skool_r07 ;.dsb SKOOL_COLS,1
318 .byt $5c,$5d,$5e,$5f,$3,$60,$61,$5,$5,$5,$5,$5,$5,$5,$6,$7,$9,$62,$63,$64,$65,$66,$66,$67,$68,$69,$6a,$5,$5,$6b,$7,$5f,$3a,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$3b,$3c,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$42,$43,$44,$45,$30,$31,$32,$33,$33,$33,$34,$35,$36,$37,$38,$39,$3a,$3b,$3b,$3b,$3c,$3c,$3c,$3c,$3c,$3c,$3c,$3d,$3e,$3f,$40,$41,$42,$43,$44,$45
319
320 pos_row
321 .byt 10,3,3,3,3,3,3,10,10,10,10,10,10,10,17,17,17,17,17,10,17
322
323 pos_col
324 .byt 4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,38,42,46,255,255
325
326 ; Tables with base pointers to tiles for characters
327 tab_tiles
328 .dsb 15, >(children_tiles-8)
329 .dsb 3, >(teacher_tiles-8)
330 .dsb 1, >(teacher2_tiles-8)
331 .dsb 2, >(children_tiles-8)
332 tab_masks
333 .dsb 15, >(children_masks-8)
334 .dsb 3, >(teacher_masks-8)
335 .dsb 1, >(teacher2_masks-8)
336 .dsb 2, >(children_masks-8)
337
338 free_r7
339 .dsb (256-32)-(*&255)
340 ; Personal timetable for little boy 4
341 per_timet_lb4
342 .byt 170,170,146,162,146,146,154,162,154,162,154,146,146,136,136,162,146,154,136,196,196,196,200,176,198,198,200,196,206,206,202,198
343
344 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
345 ;.dsb 256-(*&255)
346 ; Tile map for background: row 8
347 skool_r08 ;.dsb SKOOL_COLS,1
348 .byt $b,$6c,$6d,$6d,$6e,$6e,$6f,$c,$0,$0,$0,$0,$0,$0,$70,$71,$72,$c,$73,$74,$75,$76,$0,$0,$0,$0,$0,$0,$0,$77,$72,$c,$3d,$3e,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$3f,$40,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$46,$0,$47,$48,$0,$0,$0,$0,$0,$46,$47,$48,$12,$0,$0,$49,$4a,$4b,$18,$18,$18,$18,$18,$18,$18,$18,$4c,$4d,$4e,$4f,$50,$51,$0,$0,$0,$49
349
350 ; Tables with offsets for animatory states when moving left to right or viceversa
351 tab_offset_invl
352 .dsb 15, <(Inverted_anim_states-Eric_anim_states)
353 .dsb 3, <(t1_inverted_anim_states-Creak_anim_states)
354 .dsb 1, <(t2_inverted_anim_states-Withit_anim_states)
355 .dsb 2, <(Inverted_anim_states-Eric_anim_states)
356 tab_offset_invh
357 .dsb 15, >(Inverted_anim_states-Eric_anim_states)
358 .dsb 3, >(t1_inverted_anim_states-Creak_anim_states)
359 .dsb 1, >(t2_inverted_anim_states-Withit_anim_states)
360 .dsb 2, >(Inverted_anim_states-Eric_anim_states)
361
362 in_pos_col
363 .dsb MAX_CHARACTERS,0
364 in_pos_row
365 .dsb MAX_CHARACTERS,0
366
367 free_r8
368 .dsb (256-32)-(*&255)
369 ; Personal timetable for little boy 5
370 per_timet_lb5
371 .byt 170,170,146,162,162,176,162,146,136,146,162,136,154,146,162,154,162,154,162,196,196,196,200,198,202,200,200,196,206,206,176,200
372 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
373 ;.dsb 256-(*&255)
374 ; Tile map for background: row 9
375 skool_r09 ;.dsb SKOOL_COLS,1
376 .byt $b,$78,$79,$7a,$20,$21,$7b,$c,$0,$7c,$21,$7d,$21,$7e,$7f,$21,$1c,$c,$80,$81,$5b,$82,$83,$0,$0,$0,$84,$21,$85,$21,$86,$c,$3d,$3e,$41,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$42,$0,$0,$0,$0,$0,$0,$3f,$40,$41,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$f,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$46,$0,$49,$a,$0,$0,$0,$0,$52,$53,$54,$55,$56,$0,$0,$49,$48,$48,$48,$48,$48,$57,$0,$0,$0,$49,$58,$4d,$12,$4f,$50,$51,$0,$0,$0,$49
377
378
379
380 free_r9
381 .dsb (256-32)-(*&255)
382 ; Personal timetable for little boy 6
383 per_timet_lb6
384 .byt 170,170,154,162,162,146,162,162,154,162,154,154,136,162,146,154,162,154,136,196,196,196,200,202,200,198,202,196,206,206,198,202
385
386 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
387 ;.dsb 256-(*&255)
388 ; Tile map for background: row 10
389 skool_r10 ;.dsb SKOOL_COLS,1
390 .byt $b,$87,$5b,$74,$88,$89,$8a,$c,$0,$7c,$21,$7d,$21,$8b,$84,$21,$1c,$c,$c,$8c,$8d,$8e,$8f,$90,$91,$0,$84,$21,$85,$21,$86,$c,$3d,$3e,$41,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$42,$0,$0,$0,$0,$0,$0,$3f,$40,$41,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$f,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$46,$0,$4a,$4b,$0,$59,$5a,$5b,$5c,$22,$5d,$0,$0,$0,$0,$49,$5e,$5f,$0,$0,$5e,$60,$0,$0,$0,$49,$61,$4d,$12,$4f,$50,$51,$0,$0,$0,$49
391
392 free_r10
393 .dsb (256-32)-(*&255)
394 ; Personal timetable for little boy 7
395 per_timet_lb7
396 .byt 170,170,154,162,154,146,154,154,146,162,136,146,162,154,136,146,162,154,162,196,196,196,202,176,200,200,202,196,206,206,200,176
397
398
399 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
400 ;.dsb 256-(*&255)
401 ; Tile map for background: row 11
402 skool_r11 ;.dsb SKOOL_COLS,1
403 .byt $92,$93,$94,$95,$96,$97,$98,$99,$0,$9a,$5b,$5b,$5b,$9b,$9c,$9d,$1c,$c,$c,$c,$9e,$9f,$a0,$74,$a1,$a2,$a3,$0,$0,$0,$1e,$c,$3d,$3e,$41,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$43,$0,$44,$45,$46,$44,$47,$3f,$40,$41,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$4c,$4d,$47,$38,$4e,$4f,$50,$0,$0,$0,$0,$0,$0,$0,$51,$4f,$52,$53,$38,$54,$38,$55,$47,$38,$52,$4f,$38,$56,$0,$57,$0,$62,$63,$64,$48,$5c,$65,$61,$0,$0,$0,$0,$49,$66,$67,$68,$68,$69,$6a,$0,$0,$0,$49,$61,$4d,$12,$4f,$50,$51,$0,$0,$0,$49
404
405 free_r11
406 .dsb (256-32)-(*&255)
407 ; Personal timetable for little boy 8
408 per_timet_lb8
409 .byt 170,170,154,162,154,146,162,146,154,136,154,136,146,136,146,154,146,154,136,196,196,196,202,198,202,176,198,196,206,206,202,198
410
411 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
412 ;.dsb 256-(*&255)
413 ; Tile map for background: row 12
414 skool_r12 ;.dsb SKOOL_COLS,1
415 .byt $a4,$a5,$a6,$a7,$a8,$a9,$aa,$ab,$ac,$ad,$ae,$ae,$ae,$af,$b0,$b1,$1c,$c,$c,$c,$9e,$0,$b2,$74,$5b,$b3,$59,$0,$0,$0,$1e,$c,$3d,$3e,$0,$0,$0,$0,$48,$49,$4a,$4b,$4c,$4d,$4e,$4f,$50,$49,$4a,$51,$4c,$4d,$3f,$40,$0,$0,$0,$52,$4c,$4d,$4e,$4f,$50,$53,$58,$59,$5a,$5b,$5c,$5d,$5e,$5f,$58,$60,$0,$0,$0,$0,$0,$61,$5c,$5d,$5e,$5f,$58,$62,$63,$64,$1c,$65,$66,$67,$68,$60,$57,$0,$6b,$6c,$6d,$48,$6e,$0,$61,$0,$0,$0,$0,$49,$66,$67,$68,$68,$68,$6a,$0,$0,$0,$49,$61,$6f,$61,$4f,$50,$51,$0,$0,$0,$49
416
417 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
418 ; Tables for questions and answers...
419 ; see script.s s_prepare_question
420 ; the first 4 tables (16 bytes)
421 ; must be contiguous.
422 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
423 creak_table
424 .byt 5,2
425 .byt 6,3
426 rockitt_table
427 .byt 1,1
428 .byt 2,1
429 p_question
430 .dsb 2
431 p_answer
432 .dsb 2
433 withit_table
434 .byt 3,1
435 .byt 4,1
436
437 ; This table is also 16 bytes...
438 qa_tables
439 .byt <st_battles
440 .byt >st_battles
441 .byt <st_years
442 .byt >st_years
443 .byt <st_chemical_sym
444 .byt >st_chemical_sym
445 .byt <st_chemical_name
446 .byt >st_chemical_name
447 .byt 0,0,0,0
448 .byt <st_countries
449 .byt >st_countries
450 .byt <st_capitals
451 .byt >st_capitals
452
453 free_r12
454 .dsb (256-32)-(*&255)
455 ; Personal timetable for little boy 9
456 per_timet_lb9
457 .byt 170,170,154,154,154,136,162,154,136,136,162,154,154,146,154,146,146,154,136,196,196,196,202,200,196,176,198,196,206,206,176,200
458
459
460 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
461 ;.dsb 256-(*&255)
462 ; Tile map for background: row 13
463 skool_r13 ;.dsb SKOOL_COLS,1
464 .byt $b4,$b5,$b6,$b7,$b8,$b9,$ba,$bb,$bc,$5,$5,$5,$5,$bd,$be,$bf,$c0,$c1,$c2,$c3,$c4,$c5,$c6,$c7,$c8,$c9,$5,$5,$5,$5,$5,$ca,$54,$1,$1,$1,$1,$1,$55,$56,$57,$58,$59,$5a,$5b,$5c,$5d,$56,$57,$58,$59,$5a,$5e,$5f,$1,$1,$1,$60,$59,$5a,$5b,$5c,$61,$59,$69,$6a,$6b,$6c,$6d,$6e,$6f,$6b,$69,$70,$1,$1,$1,$1,$1,$71,$6d,$6e,$6f,$6b,$69,$6a,$6e,$72,$6d,$73,$6f,$6b,$74,$75,$76,$1,$1,$70,$71,$72,$73,$74,$75,$76,$77,$78,$79,$7a,$66,$67,$68,$68,$68,$6a,$0,$0,$0,$49,$61,$7b,$7c,$4f,$50,$7d,$0,$0,$0,$49
465 charset_col1
466 .byt 000,250,192,040,018,078,108,064,124,130,016,008,001,008,003,007
467 .byt 124,066,070,130,056,242,124,128,108,098,054,049,008,020,034,064
468 .byt 076,126,254,124,254,254,254,126,254,130,004,254,254,254,254,124
469 .byt 254,124,254,098,128,252,224,252,198,192,134,255,192,129,032,001
470 .byt 002,028,254,028,028,028,016,024,254,094,001,254,254,062,062,028
471 .byt 063,024,062,018,016,060,056,056,034,056,038,024,255,129,008,124
472 free_r13
473 .dsb (256-32)-(*&255)
474 ; Personal timetable for little boy 10
475 per_timet_lb10
476 .byt 170,170,154,154,154,136,176,154,162,136,136,146,154,154,146,154,162,154,162,210,208,208,176,200,196,196,176,196,206,206,176,202
477
478 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
479 ;.dsb 256-(*&255)
480 ; Tile map for background: row 14
481 skool_r14 ;.dsb SKOOL_COLS,1
482 .byt $59,$0,$cb,$0,$0,$cc,$0,$1e,$0,$0,$0,$0,$0,$0,$0,$0,$59,$cd,$ce,$cf,$d0,$d1,$d2,$d3,$0,$0,$0,$0,$0,$d4,$c,$c,$3d,$3e,$0,$0,$0,$0,$0,$0,$0,$0,$62,$63,$63,$63,$64,$0,$65,$66,$67,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$77,$0,$0,$0,$77,$0,$0,$0,$0,$0,$0,$46,$0,$0,$78,$0,$0,$0,$7e,$7f,$80,$81,$82,$12,$14,$83,$68,$66,$67,$68,$68,$68,$6a,$0,$0,$0,$49,$61,$7b,$84,$85,$86,$50,$0,$0,$0,$49
483 charset_col2
484 .byt 000,000,000,254,042,016,146,128,130,124,124,008,002,008,003,056
485 .byt 138,254,138,146,072,146,146,134,146,146,054,050,020,020,020,138
486 .byt 082,144,146,130,130,146,144,130,016,254,002,016,002,064,096,130
487 .byt 144,130,144,146,128,002,028,002,040,032,138,129,056,255,064,001
488 .byt 126,034,034,034,034,042,126,037,032,000,001,016,000,032,016,034
489 .byt 036,036,016,042,126,002,006,006,020,005,042,102,000,102,016,146
490 free_r14
491 .dsb (256-32)-(*&255)
492 ; Personal timetable for little boy 11
493 per_timet_lb11
494 .byt 170,170,154,154,176,176,176,136,146,146,146,162,162,162,162,136,136,162,146,196,196,196,176,202,196,196,176,196,206,206,176,196
495
496 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
497 ;.dsb 256-(*&255)
498 ; Tile map for background: row 15
499 skool_r15 ;.dsb SKOOL_COLS,1
500 .byt $59,$0,$d5,$79,$d6,$d7,$d8,$d9,$0,$0,$0,$0,$0,$0,$0,$0,$59,$9f,$a0,$74,$da,$db,$dc,$dd,$de,$0,$0,$0,$0,$df,$e0,$c,$3d,$3e,$0,$0,$0,$0,$0,$0,$0,$0,$62,$63,$63,$63,$64,$0,$68,$69,$6a,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$77,$0,$0,$0,$77,$0,$0,$0,$0,$0,$0,$46,$0,$79,$7a,$0,$0,$87,$88,$89,$8a,$64,$48,$5c,$65,$83,$68,$66,$67,$68,$68,$68,$6a,$0,$0,$0,$49,$61,$7b,$8b,$8c,$8d,$50,$0,$0,$0,$49
501 charset_col3
502 .byt 000,000,192,040,127,228,146,000,000,000,056,062,000,008,000,192
503 .byt 146,002,146,178,254,146,146,152,146,146,000,000,020,020,020,144
504 .byt 094,144,146,130,130,146,144,138,016,130,002,040,002,048,024,130
505 .byt 144,134,152,146,254,002,002,028,016,030,146,000,003,000,191,001
506 .byt 146,034,034,034,034,042,144,037,032,000,094,040,000,030,032,034
507 .byt 036,036,032,042,016,002,056,056,008,005,050,129,000,024,008,170
508 free_r15
509 .dsb (256-32)-(*&255)
510 ; Personal timetable for Mr Creak
511 per_timet_creak
512 .byt 188,188,188,188,134,130,130,130,134,134,130,134,130,130,130,134,134,188,130,190,190,190,188,188,188,188,188,188,196,196,188,188
513
514 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
515 ;.dsb 256-(*&255)
516 ; Tile map for background: row 16
517 skool_r16 ;.dsb SKOOL_COLS,1
518 .byt $e1,$e2,$e3,$0,$0,$cc,$0,$1e,$0,$0,$0,$0,$0,$0,$0,$0,$59,$0,$b2,$74,$5b,$e4,$e5,$e6,$e7,$e8,$0,$0,$0,$9f,$1e,$c,$3d,$3e,$0,$0,$0,$0,$0,$0,$0,$0,$62,$63,$63,$6b,$6c,$37,$6d,$0,$6e,$37,$37,$37,$37,$37,$37,$37,$37,$37,$37,$37,$37,$37,$7b,$7b,$7b,$7b,$7b,$7b,$7b,$7b,$7b,$7c,$7d,$7e,$7f,$80,$81,$82,$7b,$83,$84,$0,$0,$77,$0,$0,$0,$0,$0,$0,$46,$0,$57,$85,$8e,$8f,$90,$91,$92,$93,$6d,$48,$6e,$0,$83,$68,$66,$67,$68,$68,$68,$6a,$94,$95,$96,$49,$61,$7b,$97,$98,$99,$9a,$9b,$0,$0,$49
519
520 charset_col4
521 .byt 000,000,000,254,042,000,109,000,000,000,124,008,000,008,000,000
522 .byt 124,000,098,204,008,140,140,224,108,124,000,000,034,020,008,096
523 .byt 066,126,108,130,124,130,128,078,254,000,252,198,002,064,254,124
524 .byt 096,124,102,140,128,252,028,002,040,032,162,000,000,000,064,001
525 .byt 130,062,028,034,254,024,064,062,030,000,000,006,000,032,030,028
526 .byt 024,063,016,036,000,062,000,006,020,062,034,000,000,000,016,130
527
528
529 free_r16
530 .dsb (256-32)-(*&255)
531 ; Personal timetable for Mr Rockitt
532 per_timet_rockitt
533 .byt 188,188,196,132,132,154,134,134,132,130,132,132,132,132,134,130,130,134,134,222,190,190,190,188,196,188,196,196,196,196,188,196
534
535 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
536 ;.dsb 256-(*&255)
537 ; Tile map for background: row 17
538 skool_r17 ;.dsb SKOOL_COLS,1
539 .byt $59,$0,$cb,$0,$0,$e9,$ea,$eb,$0,$0,$0,$0,$0,$0,$0,$0,$59,$0,$0,$ec,$5b,$8e,$ed,$ee,$ef,$f0,$f1,$0,$0,$0,$1e,$c,$3d,$3e,$0,$0,$0,$0,$0,$0,$0,$0,$62,$63,$6f,$70,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$86,$0,$0,$87,$88,$89,$8a,$0,$8b,$8c,$0,$77,$0,$0,$0,$0,$0,$0,$46,$0,$57,$8d,$9c,$9d,$9e,$9f,$5c,$22,$a0,$0,$0,$0,$a1,$a2,$a3,$a4,$a2,$a2,$a2,$a5,$a6,$a7,$8c,$49,$61,$7b,$0,$a8,$a9,$aa,$ab,$0,$0,$49
540
541 charset_col5
542 .byt 000,000,000,040,036,000,002,000,000,000,016,008,000,000,000,000
543 .byt 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
544 .byt 060,000,000,000,000,000,000,000,000,000,000,000,000,254,000,000
545 .byt 000,002,000,000,128,000,224,252,198,192,194,000,000,000,032,001
546 .byt 000,000,000,000,000,000,000,000,000,000,000,000,000,030,000,000
547 .byt 000,000,000,000,000,000,000,056,034,000,000,000,000,000,000,124
548
549 free_r17
550 .dsb (256-32)-(*&255)
551 ; Personal timetable for Mr Wacker
552 per_timet_wacker
553 .byt 186,184,132,190,130,190,190,132,130,132,134,130,134,128,132,128,190,132,190,190,214,218,190,186,190,190,190,190,190,196,188,190
554
555 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
556 ;.dsb 256-(*&255)
557 ; Tile map for background: row 18
558 skool_r18 ;.dsb SKOOL_COLS,1
559 .byt $f2,$f3,$f4,$f5,$f6,$f7,$0,$1e,$0,$0,$0,$0,$0,$0,$0,$0,$59,$0,$0,$0,$0,$9f,$a0,$74,$f8,$f9,$fa,$e8,$0,$0,$1e,$c,$3d,$3e,$0,$0,$0,$0,$0,$0,$0,$0,$62,$71,$0,$0,$0,$0,$72,$73,$74,$74,$74,$74,$74,$74,$74,$74,$74,$74,$74,$74,$74,$74,$8e,$0,$0,$0,$0,$0,$0,$0,$0,$0,$8f,$90,$38,$50,$91,$92,$93,$0,$0,$94,$95,$96,$0,$0,$0,$0,$0,$0,$46,$0,$97,$98,$ac,$ad,$ae,$48,$5c,$65,$0,$0,$0,$0,$7b,$1,$1,$d,$1,$1,$1,$af,$b0,$56,$b1,$b2,$60,$7b,$0,$0,$0,$b3,$12,$0,$0,$49
560
561 ;;;;;;;;; Character widths
562 char_widths
563 .byt 003,001,003,005,005,003,005,002,002,002,005,005,002,004,002,003
564 .byt 004,003,004,004,004,004,004,004,004,004,002,002,004,004,004,004
565 .byt 005,004,004,004,004,004,004,004,004,003,004,004,004,005,004,004
566 .byt 004,005,004,004,005,004,005,005,005,005,005,002,003,002,005,005
567 .byt 004,004,004,004,004,004,004,004,004,001,003,004,001,005,004,004
568 .byt 004,004,004,004,003,004,003,005,005,004,004,003,001,003,004,005
569
570 free_r18
571 .dsb (256-32)-(*&255)
572 ; Personal timetable for Mr Withit
573 per_timet_withit
574 .byt 184,198,130,190,202,128,132,128,128,128,128,128,128,134,128,132,128,196,128,190,190,190,190,188,188,196,188,188,196,196,188,188
575
576 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
577 ;.dsb 256-(*&255)
578 ; Tile map for background: row 19
579 skool_r19 ;.dsb SKOOL_COLS,1
580 .byt $59,$0,$cb,$0,$fb,$fc,$fd,$fe,$5,$5,$5,$5,$5,$5,$5,$5,$59,$0,$0,$0,$0,$0,$b2,$74,$5b,$0,$0,$0,$5,$5,$5,$0,$75,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$76,$77,$77,$77,$77,$78,$77,$77,$77,$77,$78,$77,$77,$77,$79,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$99,$9a,$9b,$9c,$9d,$9e,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$9f,$a0,$a1,$a2,$b4,$93,$6d,$48,$6e,$0,$0,$0,$0,$0,$7b,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$b5,$72,$b6,$b7,$b8,$0,$0,$49
581
582
583 ;;;;;;;;;; Command token table (see script.h)
584 command_high
585 .byt >s_end ; SC_END
586 .byt >s_goto ; SC_GOTO
587 .byt >s_restart_nolesson ; SC_RESTIFNOLESSON
588 .byt >s_flag_event ; SC_FLAGEVENT
589 .byt >s_msg_sitdown ; SC_MSGSITDOWN
590 .byt >s_do_class ; SC_DOCLASS
591 .byt >s_move_until ; SC_MOVEUNTIL
592 .byt >s_find_seat ; SC_FINDSEAT
593 .byt >s_set_csubcom ; SC_SETCONTSUB
594 .byt >s_ctrl_einstein1 ; SC_CTRLEINSTEINCL1
595 .byt >s_ctrl_einstein2 ; SC_CTRLEINSTEINCL2
596 .byt >s_write_bl ; SC_WRITEBLCKBOARD
597 .byt >s_write_bl_c ; SC_WRITEBLCKBOARDC
598 .byt >s_walk_updown ; SC_WALKUPDOWN
599 .byt >s_restart ; SC_RESTARTLIST
600 .byt >s_restart_nodinner ; SC_RESTIFNODINNER
601 .byt >s_dinner_duty ; SC_DINNERDUTY
602 .byt >s_unflag_event ; SC_UNFLAGEVENT
603 .byt >s_goto_random ; SC_GOTORANDOM
604 .byt >s_goto_random_trip ; SC_GOTORANDOMTRIP
605 .byt >s_follow_boy1 ; SC_FOLLOWBOY1TRIP
606 .byt >s_find_eric ; SC_FINDERIC
607 .byt >s_tell_enistein ; SC_TELLEINSTEIN
608 .byt >s_tell_angelface ; SC_TELLANGELFACE
609 .byt >s_tell_boywander ; SC_TELLBOYWANDER
610 .byt >s_2000lines_eric ; SC_2000LINESERIC
611 .byt >s_end_game ; SC_ENDGAME
612
613 command_low
614 .byt <s_end ; SC_NOP
615 .byt <s_goto ; SC_GOTO
616 .byt <s_restart_nolesson ; SC_RESTIFNOLESSON
617 .byt <s_flag_event ; SC_FLAGEVENT
618 .byt <s_msg_sitdown ; SC_MSGSITDOWN
619 .byt <s_do_class ; SC_DOCLASS
620 .byt <s_move_until ; SC_MOVEUNTIL
621 .byt <s_find_seat ; SC_FINDSEAT
622 .byt <s_set_csubcom ; SC_SETCONTSUB
623 .byt <s_ctrl_einstein1 ; SC_CTRLEINSTEINCL1
624 .byt <s_ctrl_einstein2 ; SC_CTRLEINSTEINCL2
625 .byt <s_write_bl ; SC_WRITEBLCKBOARD
626 .byt <s_write_bl_c ; SC_WRITEBLCKBOARDC
627 .byt <s_walk_updown ; SC_WALKUPDOWN
628 .byt <s_restart ; SC_RESTARTLIST
629 .byt <s_restart_nodinner ; SC_RESTIFNODINNER
630 .byt <s_dinner_duty ; SC_DINNERDUTY
631 .byt <s_unflag_event ; SC_UNFLAGEVENT
632 .byt <s_goto_random ; SC_GOTORANDOM
633 .byt <s_goto_random_trip ; SC_GOTORANDOMTRIP
634 .byt <s_follow_boy1 ; SC_FOLLOWBOY1TRIP
635 .byt <s_find_eric ; SC_FINDERIC
636 .byt <s_tell_enistein ; SC_TELLEINSTEIN
637 .byt <s_tell_angelface ; SC_TELLANGELFACE
638 .byt <s_tell_boywander ; SC_TELLBOYWANDER
639 .byt <s_2000lines_eric ; SC_2000LINESERIC
640 .byt <s_end_game ; SC_ENDGAME
641
642 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
643 .dsb 256-(*&255)
644 ; Tile map for background: row 20
645 skool_r20 ;.dsb SKOOL_COLS,1
646 .byt $0,$0,$0,$fe,$5,$5,$5,$5,$5,$5,$5,$5,$5,$5,$5,$5,$5,$5,$5,$5,$5,$5,$5,$5,$5,$5,$5,$5,$5,$5,$5,$0,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$7a,$7b,$7b,$7b,$7b,$7b,$7b,$7b,$7b,$7b,$7b,$7b,$7b,$7b,$7c,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$a3,$1,$a4,$a4,$1,$a5,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$b9,$ba,$bb,$bc
647
648 ;;;;;;;;;;;;;;;;;;;;;;;
649 ;; Command list table
650 ;;;;;;;;;;;;;;;;;;;;;;;;
651 command_list_table
652 .word command_list128
653 .word command_list130
654 .word command_list132
655 .word command_list134
656 .word command_list136
657 .word command_list138
658 .word command_list140
659 .word command_list142
660 .word command_list144
661 .word command_list146
662 .word command_list148
663 .word command_list150
664 .word command_list152
665 .word command_list154
666 .word command_list156
667 .word command_list158
668 .word command_list160
669 .word command_list162
670 .word command_list164
671 .word command_list166
672 .word command_list168
673 .word command_list170
674 .word command_list172
675 .word command_list174
676 .word command_list176
677 .word command_list178
678 .word command_list180
679 .word command_list182
680 .word command_list184
681 .word command_list186
682 .word command_list188
683 .word command_list190
684 .word command_list192
685 .word command_list194
686 .word command_list196
687 .word command_list198
688 .word command_list200
689 .word command_list202
690 .word command_list204
691 .word command_list206
692 .word command_list208
693 .word command_list210
694 .word command_list212
695 .word command_list214
696 .word command_list216
697 .word command_list218
698 .word command_list220
699 .word command_list222
700
701 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
702 ; Lesson descriptors
703 ;;;;;;;;;;;;;;;;;;;;;;;;;;;
704 ; Each entry in this table defines the teacher for the period
705 ; (if any), and the room. The teacher is identified by bits 4-5
706 ; See params.h
707
708
709 lesson_descriptors
710 .byt (DES_DINNER|DES_WITHIT*16), (DES_DINNER|DES_WACKER*16), (DES_EXAM|DES_WACKER*16)
711 .byt (DES_EXAM|DES_ROCKITT*16), (DES_LIBRARY|DES_NONE*16), (DES_LIBRARY|DES_NONE*16)
712 .byt (DES_LIBRARY|DES_NONE*16), (DES_MAP|DES_WITHIT*16), (DES_READING|DES_WACKER*16)
713 .byt (DES_READING|DES_ROCKITT*16), (DES_READING|DES_CREAK*16), (DES_WHITE|DES_CREAK*16)
714 .byt (DES_WHITE|DES_WACKER*16), (DES_WHITE|DES_WITHIT*16), (DES_WHITE|DES_ROCKITT*16)
715 .byt (DES_MAP|DES_WACKER*16), (DES_MAP|DES_WITHIT*16), (DES_WHITE|DES_ROCKITT*16)
716 .byt (DES_READING|DES_CREAK*16), (DES_PLAY|DES_NONE*16),(DES_PLAY|DES_NONE*16)
717 .byt (DES_PLAY|DES_NONE*16),(DES_PLAY|DES_NONE*16),(DES_PLAY|DES_NONE*16)
718 .byt (DES_PLAY|DES_NONE*16),(DES_PLAY|DES_NONE*16),(DES_PLAY|DES_NONE*16)
719 .byt (DES_PLAY|DES_NONE*16),(DES_PLAY|DES_NONE*16),(DES_PLAY|DES_NONE*16)
720 .byt (DES_PLAY|DES_NONE*16),(DES_PLAY|DES_NONE*16)
721
722
723 ; Character information
724 ;.dsb 256-(*&255)
725
726 ; Animatory states for children
727 Eric_anim_states
728 ; Animatory state 0 (1-Eric00.png)sa
729 .byt 0, 0, 0, 0
730 .byt 0, 1, 2, 0
731 .byt 3, 4, 5, 0
732 .byt 0, 6, 7, 0
733 ; Animatory state 1 (1-Eric01.png)
734 .byt 0, 0, 0, 0
735 .byt 15, 16, 17, 0
736 .byt 18, 19, 20, 0
737 .byt 21, 22, 23, 0
738 ; Animatory state 2 (1-Eric02.png)
739 .byt 0, 0, 0, 0
740 .byt 0, 1, 2, 0
741 .byt 3, 4, 5, 0
742 .byt 0, 33, 7, 0
743 ; Animatory state 3 (1-Eric03.png)
744 .byt 0, 0, 0, 0
745 .byt 15, 16, 17, 0
746 .byt 18, 19, 20, 0
747 .byt 35, 36, 37, 0
748 ; Animatory state 4 (1-Eric04.png)
749 .byt 0, 0, 0, 0
750 .byt 0, 1, 2, 0
751 .byt 41, 42, 43, 0
752 .byt 44, 45, 0, 0
753 ; Animatory state 5 (1-Eric05.png)
754 .byt 0, 0, 0, 0
755 .byt 0, 0, 0, 0
756 .byt 0, 51, 52, 53
757 .byt 54, 55, 56, 57
758 ; Animatory state 6 (1-Eric06.png)
759 .byt 0, 0, 0, 0
760 .byt 0, 0, 0, 0
761 .byt 0, 0, 0, 0
762 .byt 65, 66, 67, 68
763 ; Animatory state 7 (1-Eric07.png)
764 .byt 0, 0, 0, 0
765 .byt 0, 1, 2, 0
766 .byt 73, 74, 75, 0
767 .byt 0, 76, 77, 0
768 ; Animatory state 8 (1-Eric08.png)
769 .byt 0, 0, 0, 0
770 .byt 83, 84, 2, 0
771 .byt 85, 86, 75, 0
772 .byt 0, 76, 77, 0
773 ; Animatory state 9 (1-Eric09.png)
774 .byt 0, 0, 0, 0
775 .byt 91, 92, 2, 0
776 .byt 93, 94, 5, 0
777 .byt 0, 95, 7, 0
778 ; Animatory state 10 (1-Eric10.png)
779 .byt 101, 102, 0, 0
780 .byt 103, 104, 2, 0
781 .byt 93, 94, 5, 0
782 .byt 0, 95, 7, 0
783 ; Animatory state 11 (1-Eric11.png)
784 .byt 0, 0, 0, 0
785 .byt 0, 1, 2, 0
786 .byt 109, 110, 111, 112
787 .byt 0, 95, 113, 0
788 ; Animatory state 12 (1-Eric12.png)
789 .byt 0, 0, 0, 0
790 .byt 119, 120, 121, 0
791 .byt 122, 123, 124, 125
792 .byt 0, 95, 113, 0
793
794 Einstein_anim_states
795 ; Animatory state 13 (2-Einstein00.png)
796 .byt 0, 0, 0, 0
797 .byt 0, 133, 134, 0
798 .byt 3, 4, 135, 0
799 .byt 0, 6, 7, 0
800 ; Animatory state 14 (2-Einstein1.png)
801 .byt 0, 0, 0, 0
802 .byt 139, 140, 141, 0
803 .byt 18, 142, 20, 0
804 .byt 21, 22, 23, 0
805 ; Animatory state 15 (2-Einstein2.png)
806 .byt 0, 0, 0, 0
807 .byt 0, 133, 134, 0
808 .byt 3, 4, 135, 0
809 .byt 0, 33, 7, 0
810 ; Animatory state 16 (2-Einstein3.png)
811 .byt 0, 0, 0, 0
812 .byt 139, 140, 141, 0
813 .byt 18, 142, 20, 0
814 .byt 35, 36, 37, 0
815 ; Animatory state 17 (2-Einstein4.png)
816 .byt 0, 0, 0, 0
817 .byt 0, 133, 134, 0
818 .byt 41, 42, 43, 0
819 .byt 44, 45, 0, 0
820 ; Animatory state 18 (2-Einstein5.png)
821 .byt 0, 0, 0, 0
822 .byt 0, 0, 0, 0
823 .byt 0, 51, 147, 148
824 .byt 54, 55, 56, 57
825 ; Animatory state 19 (2-Einstein6.png)
826 .byt 0, 0, 0, 0
827 .byt 0, 0, 0, 0
828 .byt 0, 0, 0, 0
829 .byt 65, 66, 151, 152
830
831 Angelface_anim_states
832 ; Animatory state 20 (3-Angelface00.png)
833 .byt 0, 0, 0, 0
834 .byt 0, 155, 156, 0
835 .byt 3, 4, 5, 0
836 .byt 0, 6, 7, 0
837 ; Animatory state 21 (3-Angelface01.png)
838 .byt 0, 0, 0, 0
839 .byt 159, 160, 17, 0
840 .byt 18, 19, 20, 0
841 .byt 161, 22, 23, 0
842 ; Animatory state 22 (3-Angelface02.png)
843 .byt 0, 0, 0, 0
844 .byt 0, 155, 156, 0
845 .byt 3, 4, 5, 0
846 .byt 0, 33, 7, 0
847 ; Animatory state 23 (3-Angelface03.png)
848 .byt 0, 0, 0, 0
849 .byt 159, 160, 17, 0
850 .byt 18, 19, 20, 0
851 .byt 35, 36, 37, 0
852 ; Animatory state 24 (3-Angelface04.png)
853 .byt 0, 0, 0, 0
854 .byt 0, 155, 156, 0
855 .byt 41, 42, 43, 0
856 .byt 44, 45, 0, 0
857 ; Animatory state 25 (3-Angelface05.png)
858 .byt 0, 0, 0, 0
859 .byt 0, 0, 0, 0
860 .byt 0, 51, 165, 166
861 .byt 54, 55, 56, 57
862 ; Animatory state 26 (3-Angelface06.png)
863 .byt 0, 0, 0, 0
864 .byt 0, 0, 0, 0
865 .byt 0, 0, 0, 0
866 .byt 65, 66, 169, 170
867 ; Animatory state 27 (3-Angelface07.png)
868 .byt 0, 0, 0, 0
869 .byt 0, 155, 156, 0
870 .byt 73, 74, 75, 0
871 .byt 0, 76, 77, 0
872 ; Animatory state 28 (3-Angelface08.png)
873 .byt 0, 0, 0, 0
874 .byt 83, 173, 156, 0
875 .byt 85, 86, 75, 0
876 .byt 0, 76, 77, 0
877 ; Animatory state 29 (3-Angelface09.png)
878 .byt 0, 0, 0, 0
879 .byt 91, 175, 156, 0
880 .byt 93, 94, 5, 0
881 .byt 0, 95, 7, 0
882 ; Animatory state 30 (3-Angelface10.png)
883 .byt 101, 102, 0, 0
884 .byt 103, 177, 156, 0
885 .byt 93, 94, 5, 0
886 .byt 0, 95, 7, 0
887
888
889 BoyWander_anim_states
890 ; Animatory state 31 (4-bwander00.png)
891 .byt 0, 0, 0, 0
892 .byt 0, 179, 180, 0
893 .byt 3, 4, 5, 0
894 .byt 0, 6, 7, 0
895 ; Animatory state 32 (4-bwander01.png)
896 .byt 0, 0, 0, 0
897 .byt 183, 184, 17, 0
898 .byt 18, 19, 20, 0
899 .byt 161, 22, 23, 0
900 ; Animatory state 33 (4-bwander02.png)
901 .byt 0, 0, 0, 0
902 .byt 0, 179, 180, 0
903 .byt 3, 4, 5, 0
904 .byt 0, 33, 7, 0
905 ; Animatory state 34 (4-bwander03.png)
906 .byt 0, 0, 0, 0
907 .byt 183, 184, 17, 0
908 .byt 18, 19, 20, 0
909 .byt 35, 36, 37, 0
910 ; Animatory state 35 (4-bwander04.png)
911 .byt 0, 0, 0, 0
912 .byt 0, 179, 180, 0
913 .byt 41, 42, 43, 0
914 .byt 44, 45, 0, 0
915 ; Animatory state 36 (4-bwander05.png)
916 .byt 0, 0, 0, 0
917 .byt 0, 0, 0, 0
918 .byt 0, 51, 187, 188
919 .byt 54, 55, 56, 57
920 ; Animatory state 37 (4-bwander06.png)
921 .byt 0, 0, 0, 0
922 .byt 0, 0, 0, 0
923 .byt 0, 0, 0, 0
924 .byt 65, 66, 191, 192
925
926 ; 07 and 08 are unused with Boy Wander
927 .byt 0,0,0,0
928 .byt 0,0,0,0
929 .byt 0,0,0,0
930 .byt 0,0,0,0
931
932 .byt 0,0,0,0
933 .byt 0,0,0,0
934 .byt 0,0,0,0
935 .byt 0,0,0,0
936
937
938 ; Animatory state 38 (4-bwander09.png)
939 .byt 0, 0, 0, 0
940 .byt 91, 195, 180, 0
941 .byt 93, 94, 5, 0
942 .byt 0, 95, 7, 0
943 ; Animatory state 39 (4-bwander10.png)
944 .byt 101, 102, 0, 0
945 .byt 103, 197, 180, 0
946 .byt 93, 94, 5, 0
947 .byt 0, 95, 7, 0
948 ; Animatory state 40 (4-bwander11.png)
949 .byt 0, 0, 0, 0
950 .byt 0, 179, 180, 0
951 .byt 109, 110, 111, 112
952 .byt 0, 95, 113, 0
953 ; Animatory state 41 (4-bwander12.png)
954 .byt 0, 0, 0, 0
955 .byt 119, 199, 200, 0
956 .byt 122, 123, 124, 125
957 .byt 0, 95, 113, 0
958
959
960 Boy_anim_states
961 ; Animatory state 42 (5-boy0.png)
962 .byt 0, 0, 0, 0
963 .byt 0, 203, 204, 0
964 .byt 0, 205, 206, 0
965 .byt 0, 95, 7, 0
966 ; Animatory state 43 (5-boy1.png)
967 .byt 0, 0, 0, 0
968 .byt 211, 212, 0, 0
969 .byt 213, 214, 215, 0
970 .byt 216, 22, 23, 0
971 ; Animatory state 44 (5-boy2.png)
972 .byt 0, 0, 0, 0
973 .byt 0, 203, 204, 0
974 .byt 0, 205, 206, 0
975 .byt 0, 223, 7, 0
976 ; Animatory state 45 (5-boy3.png)
977 .byt 0, 0, 0, 0
978 .byt 211, 212, 0, 0
979 .byt 213, 214, 215, 0
980 .byt 35, 36, 37, 0
981 ; Animatory state 46 (5-boy4.png)
982 .byt 0, 0, 0, 0
983 .byt 0, 203, 225, 0
984 .byt 0, 226, 227, 0
985 .byt 228, 229, 0, 0
986 ; Animatory state 47 (5-boy5.png)
987 .byt 0, 0, 0, 0
988 .byt 0, 0, 0, 0
989 .byt 24, 235, 236, 0
990 .byt 237, 238, 239, 0
991 ; Animatory state 48 (5-boy6.png)
992 .byt 0, 0, 0, 0
993 .byt 0, 0, 0, 0
994 .byt 0, 0, 0, 0
995 .byt 245, 246, 247, 248
996
997 Pellet_anim_states
998 ; Animatory state 49 (6-pellet.png)
999 .byt 0, 0, 0, 0
1000 .byt 0, 253, 0, 0
1001 .byt 0, 0, 0, 0
1002 .byt 0, 0, 0, 0
1003
1004
1005
1006
1007 Inverted_anim_states
1008
1009 ; Animatory states for children (invert)
1010 ; Animatory state 0 (1-Eric00.png)
1011 .byt 0, 0, 0, 0
1012 .byt 0, 8, 9, 0
1013 .byt 0, 10, 11, 12
1014 .byt 0, 13, 14, 0
1015 ; Animatory state 1 (1-Eric01.png)
1016 .byt 0, 0, 0, 0
1017 .byt 0, 24, 25, 26
1018 .byt 0, 27, 28, 29
1019 .byt 0, 30, 31, 32
1020 ; Animatory state 2 (1-Eric02.png)
1021 .byt 0, 0, 0, 0
1022 .byt 0, 8, 9, 0
1023 .byt 0, 10, 11, 12
1024 .byt 0, 13, 34, 0
1025 ; Animatory state 3 (1-Eric03.png)
1026 .byt 0, 0, 0, 0
1027 .byt 0, 24, 25, 26
1028 .byt 0, 27, 28, 29
1029 .byt 0, 38, 39, 40
1030 ; Animatory state 4 (1-Eric04.png)
1031 .byt 0, 0, 0, 0
1032 .byt 0, 8, 9, 0
1033 .byt 0, 46, 47, 48
1034 .byt 0, 0, 49, 50
1035 ; Animatory state 5 (1-Eric05.png)
1036 .byt 0, 0, 0, 0
1037 .byt 0, 0, 0, 0
1038 .byt 58, 59, 60, 0
1039 .byt 61, 62, 63, 64
1040 ; Animatory state 6 (1-Eric06.png)
1041 .byt 0, 0, 0, 0
1042 .byt 0, 0, 0, 0
1043 .byt 0, 0, 0, 0
1044 .byt 69, 70, 71, 72
1045 ; Animatory state 7 (1-Eric07.png)
1046 .byt 0, 0, 0, 0
1047 .byt 0, 8, 9, 0
1048 .byt 0, 78, 79, 80
1049 .byt 0, 81, 82, 0
1050 ; Animatory state 8 (1-Eric08.png)
1051 .byt 0, 0, 0, 0
1052 .byt 0, 8, 87, 88
1053 .byt 0, 78, 89, 90
1054 .byt 0, 81, 82, 0
1055 ; Animatory state 9 (1-Eric09.png)
1056 .byt 0, 0, 0, 0
1057 .byt 0, 8, 96, 97
1058 .byt 0, 10, 98, 99
1059 .byt 0, 13, 100, 0
1060 ; Animatory state 10 (1-Eric10.png)
1061 .byt 0, 0, 105, 106
1062 .byt 0, 8, 107, 108
1063 .byt 0, 10, 98, 99
1064 .byt 0, 13, 100, 0
1065 ; Animatory state 11 (1-Eric11.png)
1066 .byt 0, 0, 0, 0
1067 .byt 0, 8, 9, 0
1068 .byt 114, 115, 116, 117
1069 .byt 0, 118, 100, 0
1070 ; Animatory state 12 (1-Eric12.png)
1071 .byt 0, 0, 0, 0
1072 .byt 0, 126, 127, 128
1073 .byt 129, 130, 131, 132
1074 .byt 0, 118, 100, 0
1075 ; Animatory state 13 (2-Einstein00.png)
1076 .byt 0, 0, 0, 0
1077 .byt 0, 136, 137, 0
1078 .byt 0, 138, 11, 12
1079 .byt 0, 13, 14, 0
1080 ; Animatory state 14 (2-Einstein1.png)
1081 .byt 0, 0, 0, 0
1082 .byt 0, 143, 144, 145
1083 .byt 0, 27, 146, 29
1084 .byt 0, 30, 31, 32
1085 ; Animatory state 15 (2-Einstein2.png)
1086 .byt 0, 0, 0, 0
1087 .byt 0, 136, 137, 0
1088 .byt 0, 138, 11, 12
1089 .byt 0, 13, 34, 0
1090 ; Animatory state 16 (2-Einstein3.png)
1091 .byt 0, 0, 0, 0
1092 .byt 0, 143, 144, 145
1093 .byt 0, 27, 146, 29
1094 .byt 0, 38, 39, 40
1095 ; Animatory state 17 (2-Einstein4.png)
1096 .byt 0, 0, 0, 0
1097 .byt 0, 136, 137, 0
1098 .byt 0, 46, 47, 48
1099 .byt 0, 0, 49, 50
1100 ; Animatory state 18 (2-Einstein5.png)
1101 .byt 0, 0, 0, 0
1102 .byt 0, 0, 0, 0
1103 .byt 149, 150, 60, 0
1104 .byt 61, 62, 63, 64
1105 ; Animatory state 19 (2-Einstein6.png)
1106 .byt 0, 0, 0, 0
1107 .byt 0, 0, 0, 0
1108 .byt 0, 0, 0, 0
1109 .byt 153, 154, 71, 72
1110 ; Animatory state 20 (3-Angelface00.png)
1111 .byt 0, 0, 0, 0
1112 .byt 0, 157, 158, 0
1113 .byt 0, 10, 11, 12
1114 .byt 0, 13, 14, 0
1115 ; Animatory state 21 (3-Angelface01.png)
1116 .byt 0, 0, 0, 0
1117 .byt 0, 24, 162, 163
1118 .byt 0, 27, 28, 29
1119 .byt 0, 30, 31, 164
1120 ; Animatory state 22 (3-Angelface02.png)
1121 .byt 0, 0, 0, 0
1122 .byt 0, 157, 158, 0
1123 .byt 0, 10, 11, 12
1124 .byt 0, 13, 34, 0
1125 ; Animatory state 23 (3-Angelface03.png)
1126 .byt 0, 0, 0, 0
1127 .byt 0, 24, 162, 163
1128 .byt 0, 27, 28, 29
1129 .byt 0, 38, 39, 40
1130 ; Animatory state 24 (3-Angelface04.png)
1131 .byt 0, 0, 0, 0
1132 .byt 0, 157, 158, 0
1133 .byt 0, 46, 47, 48
1134 .byt 0, 0, 49, 50
1135 ; Animatory state 25 (3-Angelface05.png)
1136 .byt 0, 0, 0, 0
1137 .byt 0, 0, 0, 0
1138 .byt 167, 168, 60, 0
1139 .byt 61, 62, 63, 64
1140 ; Animatory state 26 (3-Angelface06.png)
1141 .byt 0, 0, 0, 0
1142 .byt 0, 0, 0, 0
1143 .byt 0, 0, 0, 0
1144 .byt 171, 172, 71, 72
1145 ; Animatory state 27 (3-Angelface07.png)
1146 .byt 0, 0, 0, 0
1147 .byt 0, 157, 158, 0
1148 .byt 0, 78, 79, 80
1149 .byt 0, 81, 82, 0
1150 ; Animatory state 28 (3-Angelface08.png)
1151 .byt 0, 0, 0, 0
1152 .byt 0, 157, 174, 88
1153 .byt 0, 78, 89, 90
1154 .byt 0, 81, 82, 0
1155 ; Animatory state 29 (3-Angelface09.png)
1156 .byt 0, 0, 0, 0
1157 .byt 0, 157, 176, 97
1158 .byt 0, 10, 98, 99
1159 .byt 0, 13, 100, 0
1160 ; Animatory state 30 (3-Angelface10.png)
1161 .byt 0, 0, 105, 106
1162 .byt 0, 157, 178, 108
1163 .byt 0, 10, 98, 99
1164 .byt 0, 13, 100, 0
1165 ; Animatory state 31 (4-bwander00.png)
1166 .byt 0, 0, 0, 0
1167 .byt 0, 181, 182, 0
1168 .byt 0, 10, 11, 12
1169 .byt 0, 13, 14, 0
1170 ; Animatory state 32 (4-bwander01.png)
1171 .byt 0, 0, 0, 0
1172 .byt 0, 24, 185, 186
1173 .byt 0, 27, 28, 29
1174 .byt 0, 30, 31, 164
1175 ; Animatory state 33 (4-bwander02.png)
1176 .byt 0, 0, 0, 0
1177 .byt 0, 181, 182, 0
1178 .byt 0, 10, 11, 12
1179 .byt 0, 13, 34, 0
1180 ; Animatory state 34 (4-bwander03.png)
1181 .byt 0, 0, 0, 0
1182 .byt 0, 24, 185, 186
1183 .byt 0, 27, 28, 29
1184 .byt 0, 38, 39, 40
1185 ; Animatory state 35 (4-bwander04.png)
1186 .byt 0, 0, 0, 0
1187 .byt 0, 181, 182, 0
1188 .byt 0, 46, 47, 48
1189 .byt 0, 0, 49, 50
1190 ; Animatory state 36 (4-bwander05.png)
1191 .byt 0, 0, 0, 0
1192 .byt 0, 0, 0, 0
1193 .byt 189, 190, 60, 0
1194 .byt 61, 62, 63, 64
1195 ; Animatory state 37 (4-bwander06.png)
1196 .byt 0, 0, 0, 0
1197 .byt 0, 0, 0, 0
1198 .byt 0, 0, 0, 0
1199 .byt 193, 194, 71, 72
1200 ; 07 and 08 are unused with Boy Wander
1201 .byt 0,0,0,0
1202 .byt 0,0,0,0
1203 .byt 0,0,0,0
1204 .byt 0,0,0,0
1205
1206 .byt 0,0,0,0
1207 .byt 0,0,0,0
1208 .byt 0,0,0,0
1209 .byt 0,0,0,0
1210
1211 ; Animatory state 38 (4-bwander09.png)
1212 .byt 0, 0, 0, 0
1213 .byt 0, 181, 196, 97
1214 .byt 0, 10, 98, 99
1215 .byt 0, 13, 100, 0
1216 ; Animatory state 39 (4-bwander10.png)
1217 .byt 0, 0, 105, 106
1218 .byt 0, 181, 198, 108
1219 .byt 0, 10, 98, 99
1220 .byt 0, 13, 100, 0
1221 ; Animatory state 40 (4-bwander11.png)
1222 .byt 0, 0, 0, 0
1223 .byt 0, 181, 182, 0
1224 .byt 114, 115, 116, 117
1225 .byt 0, 118, 100, 0
1226 ; Animatory state 41 (4-bwander12.png)
1227 .byt 0, 0, 0, 0
1228 .byt 0, 201, 202, 128
1229 .byt 129, 130, 131, 132
1230 .byt 0, 118, 100, 0
1231 ; Animatory state 42 (5-boy0.png)
1232 .byt 0, 0, 0, 0
1233 .byt 0, 207, 208, 0
1234 .byt 0, 209, 210, 0
1235 .byt 0, 13, 100, 0
1236 ; Animatory state 43 (5-boy1.png)
1237 .byt 0, 0, 0, 0
1238 .byt 0, 0, 217, 218
1239 .byt 0, 219, 220, 221
1240 .byt 0, 30, 31, 222
1241 ; Animatory state 44 (5-boy2.png)
1242 .byt 0, 0, 0, 0
1243 .byt 0, 207, 208, 0
1244 .byt 0, 209, 210, 0
1245 .byt 0, 13, 224, 0
1246 ; Animatory state 45 (5-boy3.png)
1247 .byt 0, 0, 0, 0
1248 .byt 0, 0, 217, 218
1249 .byt 0, 219, 220, 221
1250 .byt 0, 38, 39, 40
1251 ; Animatory state 46 (5-boy4.png)
1252 .byt 0, 0, 0, 0
1253 .byt 0, 230, 208, 0
1254 .byt 0, 231, 232, 0
1255 .byt 0, 0, 233, 234
1256 ; Animatory state 47 (5-boy5.png)
1257 .byt 0, 0, 0, 0
1258 .byt 0, 0, 0, 0
1259 .byt 0, 240, 241, 17
1260 .byt 0, 242, 243, 244
1261 ; Animatory state 48 (5-boy6.png)
1262 .byt 0, 0, 0, 0
1263 .byt 0, 0, 0, 0
1264 .byt 0, 0, 0, 0
1265 .byt 249, 250, 251, 252
1266
1267 ; Animatory state 49 (6-pellet.png)
1268 .byt 0, 0, 0, 0
1269 .byt 0, 0, 254, 0
1270 .byt 0, 0, 0, 0
1271 .byt 0, 0, 0, 0
1272
1273
1274
1275 ;Animatory states for teachers
1276
1277 Creak_anim_states
1278 ; Animatory state 0 (Creak0.png)
1279 .byt 0, 1, 2, 3
1280 .byt 0, 4, 5, 6
1281 .byt 0, 7, 8, 9
1282 .byt 0, 10, 11, 12
1283 ; Animatory state 1 (Creak1.png)
1284 .byt 25, 26, 27, 0
1285 .byt 28, 29, 30, 31
1286 .byt 32, 33, 34, 35
1287 .byt 36, 37, 38, 39
1288 ; Animatory state 2 (Creak2.png)
1289 .byt 0, 1, 2, 3
1290 .byt 0, 4, 5, 6
1291 .byt 0, 7, 8, 9
1292 .byt 0, 55, 56, 57
1293 ; Animatory state 3 (Creak3.png)
1294 .byt 25, 26, 27, 0
1295 .byt 28, 29, 30, 31
1296 .byt 32, 33, 34, 35
1297 .byt 36, 37, 38, 39
1298 ; Animatory state 4 (Creak4.png)
1299 .byt 61, 62, 2, 3
1300 .byt 32, 63, 5, 6
1301 .byt 0, 64, 8, 9
1302 .byt 0, 10, 11, 12
1303 ; Animatory state 5 (Creak5.png)
1304 .byt 0, 0, 0, 0
1305 .byt 69, 70, 71, 72
1306 .byt 73, 74, 75, 76
1307 .byt 77, 78, 79, 80
1308
1309 Rockitt_anim_states
1310 ; Animatory state 6 (Rockitt0.png)
1311 .byt 0, 93, 94, 0
1312 .byt 0, 95, 96, 97
1313 .byt 0, 98, 99, 100
1314 .byt 0, 101, 102, 35
1315 ; Animatory state 7 (Rockitt1.png)
1316 .byt 113, 114, 115, 0
1317 .byt 116, 117, 118, 0
1318 .byt 119, 120, 121, 0
1319 .byt 122, 123, 124, 125
1320 ; Animatory state 8 (Rockitt2.png)
1321 .byt 0, 93, 94, 0
1322 .byt 0, 95, 96, 97
1323 .byt 0, 98, 99, 100
1324 .byt 0, 139, 140, 141
1325 ; Animatory state 9 (Rockitt3.png)
1326 .byt 113, 114, 115, 0
1327 .byt 116, 117, 118, 0
1328 .byt 119, 120, 121, 0
1329 .byt 36, 145, 146, 0
1330 ; Animatory state 10 (Rockitt4.png)
1331 .byt 0, 93, 94, 0
1332 .byt 149, 150, 96, 97
1333 .byt 0, 151, 99, 100
1334 .byt 0, 139, 140, 141
1335 ; Animatory state 11 (Rockitt5.png)
1336 .byt 0, 0, 0, 0
1337 .byt 0, 155, 156, 157
1338 .byt 0, 158, 159, 160
1339 .byt 77, 78, 79, 80
1340
1341 Wacker_anim_states
1342 ; Animatory state 12 (Wacker0.png)
1343 .byt 0, 167, 168, 0
1344 .byt 0, 169, 170, 171
1345 .byt 172, 173, 174, 175
1346 .byt 0, 176, 177, 178
1347 ; Animatory state 13 (Wacker1.png)
1348 .byt 116, 191, 192, 0
1349 .byt 193, 194, 195, 0
1350 .byt 196, 197, 198, 199
1351 .byt 200, 201, 202, 0
1352 ; Animatory state 14 (Wacker2.png)
1353 .byt 0, 167, 168, 0
1354 .byt 0, 169, 170, 171
1355 .byt 172, 173, 174, 175
1356 .byt 0, 215, 216, 178
1357 ; Animatory state 15 (Wacker3.png)
1358 .byt 116, 191, 192, 0
1359 .byt 193, 194, 195, 0
1360 .byt 196, 197, 198, 199
1361 .byt 219, 220, 221, 0
1362 ; Animatory state 16 (Wacker4.png)
1363 .byt 225, 167, 168, 0
1364 .byt 226, 227, 170, 171
1365 .byt 172, 173, 174, 175
1366 .byt 0, 176, 177, 178
1367 ; Animatory state 17 (Wacker5.png)
1368 .byt 0, 0, 0, 0
1369 .byt 0, 231, 232, 233
1370 .byt 0, 234, 235, 236
1371 .byt 77, 78, 79, 80
1372
1373
1374 ; Animatory states for teachers (group1) inverted
1375
1376 t1_inverted_anim_states
1377 ; Animatory state 0 (Creak0.png)
1378 .byt 13, 14, 15, 0
1379 .byt 16, 17, 18, 0
1380 .byt 19, 20, 21, 0
1381 .byt 22, 23, 24, 0
1382 ; Animatory state 1 (Creak1.png)
1383 .byt 0, 40, 41, 42
1384 .byt 43, 44, 45, 46
1385 .byt 47, 48, 49, 50
1386 .byt 51, 52, 53, 54
1387 ; Animatory state 2 (Creak2.png)
1388 .byt 13, 14, 15, 0
1389 .byt 16, 17, 18, 0
1390 .byt 19, 20, 21, 0
1391 .byt 58, 59, 60, 0
1392 ; Animatory state 3 (Creak3.png)
1393 .byt 0, 40, 41, 42
1394 .byt 43, 44, 45, 46
1395 .byt 47, 48, 49, 50
1396 .byt 51, 52, 53, 54
1397 ; Animatory state 4 (Creak4.png)
1398 .byt 13, 14, 65, 66
1399 .byt 16, 17, 67, 50
1400 .byt 19, 20, 68, 0
1401 .byt 22, 23, 24, 0
1402 ; Animatory state 5 (Creak5.png)
1403 .byt 0, 0, 0, 0
1404 .byt 81, 82, 83, 84
1405 .byt 85, 86, 87, 88
1406 .byt 89, 90, 91, 92
1407 ; Animatory state 6 (Rockitt0.png)
1408 .byt 0, 103, 104, 0
1409 .byt 105, 106, 107, 0
1410 .byt 108, 109, 110, 0
1411 .byt 47, 111, 112, 0
1412 ; Animatory state 7 (Rockitt1.png)
1413 .byt 0, 126, 127, 128
1414 .byt 0, 129, 130, 131
1415 .byt 0, 132, 133, 134
1416 .byt 135, 136, 137, 138
1417 ; Animatory state 8 (Rockitt2.png)
1418 .byt 0, 103, 104, 0
1419 .byt 105, 106, 107, 0
1420 .byt 108, 109, 110, 0
1421 .byt 142, 143, 144, 0
1422 ; Animatory state 9 (Rockitt3.png)
1423 .byt 0, 126, 127, 128
1424 .byt 0, 129, 130, 131
1425 .byt 0, 132, 133, 134
1426 .byt 0, 147, 148, 54
1427 ; Animatory state 10 (Rockitt4.png)
1428 .byt 0, 103, 104, 0
1429 .byt 105, 106, 152, 153
1430 .byt 108, 109, 154, 0
1431 .byt 142, 143, 144, 0
1432 ; Animatory state 11 (Rockitt5.png)
1433 .byt 0, 0, 0, 0
1434 .byt 161, 162, 163, 0
1435 .byt 164, 165, 166, 0
1436 .byt 89, 90, 91, 92
1437 ; Animatory state 12 (Wacker0.png)
1438 .byt 0, 179, 180, 0
1439 .byt 181, 182, 183, 0
1440 .byt 184, 185, 186, 187
1441 .byt 188, 189, 190, 0
1442 ; Animatory state 13 (Wacker1.png)
1443 .byt 0, 203, 204, 131
1444 .byt 0, 205, 206, 207
1445 .byt 208, 209, 210, 211
1446 .byt 0, 212, 213, 214
1447 ; Animatory state 14 (Wacker2.png)
1448 .byt 0, 179, 180, 0
1449 .byt 181, 182, 183, 0
1450 .byt 184, 185, 186, 187
1451 .byt 188, 217, 218, 0
1452 ; Animatory state 15 (Wacker3.png)
1453 .byt 0, 203, 204, 131
1454 .byt 0, 205, 206, 207
1455 .byt 208, 209, 210, 211
1456 .byt 0, 222, 223, 224
1457 ; Animatory state 16 (Wacker4.png)
1458 .byt 0, 179, 180, 228
1459 .byt 181, 182, 229, 230
1460 .byt 184, 185, 186, 187
1461 .byt 188, 189, 190, 0
1462 ; Animatory state 17 (Wacker5.png)
1463 .byt 0, 0, 0, 0
1464 .byt 237, 238, 239, 0
1465 .byt 240, 241, 242, 0
1466 .byt 89, 90, 91, 92
1467
1468
1469 Withit_anim_states
1470 ; Animatory state 0 (Withit0.png)
1471 .byt 0, 1, 2, 3
1472 .byt 0, 4, 5, 6
1473 .byt 0, 7, 8, 9
1474 .byt 0, 10, 11, 12
1475 ; Animatory state 1 (Withit1.png)
1476 .byt 0, 25, 26, 0
1477 .byt 27, 28, 29, 30
1478 .byt 31, 32, 33, 34
1479 .byt 35, 36, 37, 38
1480 ; Animatory state 2 (Withit2.png)
1481 .byt 0, 1, 2, 3
1482 .byt 0, 4, 5, 6
1483 .byt 0, 7, 8, 9
1484 .byt 0, 53, 54, 12
1485 ; Animatory state 3 (Withit3.png)
1486 .byt 0, 25, 26, 0
1487 .byt 27, 28, 29, 30
1488 .byt 31, 32, 33, 34
1489 .byt 57, 58, 59, 0
1490 ; Animatory state 4 (Withit4.png)
1491 .byt 0, 1, 2, 3
1492 .byt 63, 64, 5, 6
1493 .byt 0, 65, 66, 9
1494 .byt 0, 10, 11, 12
1495 ; Animatory state 5 (Withit5.png)
1496 .byt 0, 0, 0, 0
1497 .byt 0, 71, 72, 73
1498 .byt 0, 74, 75, 76
1499 .byt 77, 78, 79, 80
1500
1501
1502 ; Animatory states for teachers (group 2) (invert)
1503 t2_inverted_anim_states
1504 ; Animatory state 0 (Withit0.png)
1505 .byt 13, 14, 15, 0
1506 .byt 16, 17, 18, 0
1507 .byt 19, 20, 21, 0
1508 .byt 22, 23, 24, 0
1509 ; Animatory state 1 (Withit1.png)
1510 .byt 0, 39, 40, 0
1511 .byt 41, 42, 43, 44
1512 .byt 45, 46, 47, 48
1513 .byt 49, 50, 51, 52
1514 ; Animatory state 2 (Withit2.png)
1515 .byt 13, 14, 15, 0
1516 .byt 16, 17, 18, 0
1517 .byt 19, 20, 21, 0
1518 .byt 22, 55, 56, 0
1519 ; Animatory state 3 (Withit3.png)
1520 .byt 0, 39, 40, 0
1521 .byt 41, 42, 43, 44
1522 .byt 45, 46, 47, 48
1523 .byt 0, 60, 61, 62
1524 ; Animatory state 4 (Withit4.png)
1525 .byt 13, 14, 15, 0
1526 .byt 16, 17, 67, 68
1527 .byt 19, 69, 70, 0
1528 .byt 22, 23, 24, 0
1529 ; Animatory state 5 (Withit5.png)
1530 .byt 0, 0, 0, 0
1531 .byt 81, 82, 83, 0
1532 .byt 84, 85, 86, 0
1533 .byt 87, 88, 89, 90
1534 end_anim_states
1535
1536 ;;;;;;;;;;;;;;;;;;;;;;;;;
1537 ; Tables
1538 ;;;;;;;;;;;;;;;;;;;;;;;;;
1539 .dsb 256-(*&255)
1540 _HiresAddrLow .dsb 240
1541 .dsb 256-(*&255)
1542 _HiresAddrHigh .dsb 200
1543 .dsb 256-(*&255)
1544 #ifdef FULLTABLEMUL8
1545 tab_mul8hi
1546 .byt 0
1547 .byt 0
1548 .byt 0
1549 .byt 0
1550 .byt 0
1551 .byt 0
1552 .byt 0
1553 .byt 0
1554 .byt 0
1555 .byt 0
1556 .byt 0
1557 .byt 0
1558 .byt 0
1559 .byt 0
1560 .byt 0
1561 .byt 0
1562 .byt 0
1563 .byt 0
1564 .byt 0
1565 .byt 0
1566 .byt 0
1567 .byt 0
1568 .byt 0
1569 .byt 0
1570 .byt 0
1571 .byt 0
1572 .byt 0
1573 .byt 0
1574 .byt 0
1575 .byt 0
1576 .byt 0
1577 .byt 0
1578 .byt 1
1579 .byt 1
1580 .byt 1
1581 .byt 1
1582 .byt 1
1583 .byt 1
1584 .byt 1
1585 .byt 1
1586 .byt 1
1587 .byt 1
1588 .byt 1
1589 .byt 1
1590 .byt 1
1591 .byt 1
1592 .byt 1
1593 .byt 1
1594 .byt 1
1595 .byt 1
1596 .byt 1
1597 .byt 1
1598 .byt 1
1599 .byt 1
1600 .byt 1
1601 .byt 1
1602 .byt 1
1603 .byt 1
1604 .byt 1
1605 .byt 1
1606 .byt 1
1607 .byt 1
1608 .byt 1
1609 .byt 1
1610 .byt 2
1611 .byt 2
1612 .byt 2
1613 .byt 2
1614 .byt 2
1615 .byt 2
1616 .byt 2
1617 .byt 2
1618 .byt 2
1619 .byt 2
1620 .byt 2
1621 .byt 2
1622 .byt 2
1623 .byt 2
1624 .byt 2
1625 .byt 2
1626 .byt 2
1627 .byt 2
1628 .byt 2
1629 .byt 2
1630 .byt 2
1631 .byt 2
1632 .byt 2
1633 .byt 2
1634 .byt 2
1635 .byt 2
1636 .byt 2
1637 .byt 2
1638 .byt 2
1639 .byt 2
1640 .byt 2
1641 .byt 2
1642 .byt 3
1643 .byt 3
1644 .byt 3
1645 .byt 3
1646 .byt 3
1647 .byt 3
1648 .byt 3
1649 .byt 3
1650 .byt 3
1651 .byt 3
1652 .byt 3
1653 .byt 3
1654 .byt 3
1655 .byt 3
1656 .byt 3
1657 .byt 3
1658 .byt 3
1659 .byt 3
1660 .byt 3
1661 .byt 3
1662 .byt 3
1663 .byt 3
1664 .byt 3
1665 .byt 3
1666 .byt 3
1667 .byt 3
1668 .byt 3
1669 .byt 3
1670 .byt 3
1671 .byt 3
1672 .byt 3
1673 .byt 3
1674 .byt 4
1675 .byt 4
1676 .byt 4
1677 .byt 4
1678 .byt 4
1679 .byt 4
1680 .byt 4
1681 .byt 4
1682 .byt 4
1683 .byt 4
1684 .byt 4
1685 .byt 4
1686 .byt 4
1687 .byt 4
1688 .byt 4
1689 .byt 4
1690 .byt 4
1691 .byt 4
1692 .byt 4
1693 .byt 4
1694 .byt 4
1695 .byt 4
1696 .byt 4
1697 .byt 4
1698 .byt 4
1699 .byt 4
1700 .byt 4
1701 .byt 4
1702 .byt 4
1703 .byt 4
1704 .byt 4
1705 .byt 4
1706 .byt 5
1707 .byt 5
1708 .byt 5
1709 .byt 5
1710 .byt 5
1711 .byt 5
1712 .byt 5
1713 .byt 5
1714 .byt 5
1715 .byt 5
1716 .byt 5
1717 .byt 5
1718 .byt 5
1719 .byt 5
1720 .byt 5
1721 .byt 5
1722 .byt 5
1723 .byt 5
1724 .byt 5
1725 .byt 5
1726 .byt 5
1727 .byt 5
1728 .byt 5
1729 .byt 5
1730 .byt 5
1731 .byt 5
1732 .byt 5
1733 .byt 5
1734 .byt 5
1735 .byt 5
1736 .byt 5
1737 .byt 5
1738 .byt 6
1739 .byt 6
1740 .byt 6
1741 .byt 6
1742 .byt 6
1743 .byt 6
1744 .byt 6
1745 .byt 6
1746 .byt 6
1747 .byt 6
1748 .byt 6
1749 .byt 6
1750 .byt 6
1751 .byt 6
1752 .byt 6
1753 .byt 6
1754 .byt 6
1755 .byt 6
1756 .byt 6
1757 .byt 6
1758 .byt 6
1759 .byt 6
1760 .byt 6
1761 .byt 6
1762 .byt 6
1763 .byt 6
1764 .byt 6
1765 .byt 6
1766 .byt 6
1767 .byt 6
1768 .byt 6
1769 .byt 6
1770 .byt 7
1771 .byt 7
1772 .byt 7
1773 .byt 7
1774 .byt 7
1775 .byt 7
1776 .byt 7
1777 .byt 7
1778 .byt 7
1779 .byt 7
1780 .byt 7
1781 .byt 7
1782 .byt 7
1783 .byt 7
1784 .byt 7
1785 .byt 7
1786 .byt 7
1787 .byt 7
1788 .byt 7
1789 .byt 7
1790 .byt 7
1791 .byt 7
1792 .byt 7
1793 .byt 7
1794 .byt 7
1795 .byt 7
1796 .byt 7
1797 .byt 7
1798 .byt 7
1799 .byt 7
1800 .byt 7
1801 .byt 7
1802 #endif
1803 tab_mul8
1804 .byt 0
1805 .byt 8
1806 .byt 16
1807 .byt 24
1808 .byt 32
1809 .byt 40
1810 .byt 48
1811 .byt 56
1812 .byt 64
1813 .byt 72
1814 .byt 80
1815 .byt 88
1816 .byt 96
1817 .byt 104
1818 .byt 112
1819 .byt 120
1820 .byt 128
1821 .byt 136
1822 .byt 144
1823 .byt 152
1824 .byt 160
1825 .byt 168
1826 .byt 176
1827 .byt 184
1828 .byt 192
1829 .byt 200
1830 .byt 208
1831 .byt 216
1832 .byt 224
1833 .byt 232
1834 .byt 240
1835 .byt 248
1836 #ifdef FULLTABLEMUL8
1837 .byt 0
1838 .byt 8
1839 .byt 16
1840 .byt 24
1841 .byt 32
1842 .byt 40
1843 .byt 48
1844 .byt 56
1845 .byt 64
1846 .byt 72
1847 .byt 80
1848 .byt 88
1849 .byt 96
1850 .byt 104
1851 .byt 112
1852 .byt 120
1853 .byt 128
1854 .byt 136
1855 .byt 144
1856 .byt 152
1857 .byt 160
1858 .byt 168
1859 .byt 176
1860 .byt 184
1861 .byt 192
1862 .byt 200
1863 .byt 208
1864 .byt 216
1865 .byt 224
1866 .byt 232
1867 .byt 240
1868 .byt 248
1869 .byt 0
1870 .byt 8
1871 .byt 16
1872 .byt 24
1873 .byt 32
1874 .byt 40
1875 .byt 48
1876 .byt 56
1877 .byt 64
1878 .byt 72
1879 .byt 80
1880 .byt 88
1881 .byt 96
1882 .byt 104
1883 .byt 112
1884 .byt 120
1885 .byt 128
1886 .byt 136
1887 .byt 144
1888 .byt 152
1889 .byt 160
1890 .byt 168
1891 .byt 176
1892 .byt 184
1893 .byt 192
1894 .byt 200
1895 .byt 208
1896 .byt 216
1897 .byt 224
1898 .byt 232
1899 .byt 240
1900 .byt 248
1901 .byt 0
1902 .byt 8
1903 .byt 16
1904 .byt 24
1905 .byt 32
1906 .byt 40
1907 .byt 48
1908 .byt 56
1909 .byt 64
1910 .byt 72
1911 .byt 80
1912 .byt 88
1913 .byt 96
1914 .byt 104
1915 .byt 112
1916 .byt 120
1917 .byt 128
1918 .byt 136
1919 .byt 144
1920 .byt 152
1921 .byt 160
1922 .byt 168
1923 .byt 176
1924 .byt 184
1925 .byt 192
1926 .byt 200
1927 .byt 208
1928 .byt 216
1929 .byt 224
1930 .byt 232
1931 .byt 240
1932 .byt 248
1933 .byt 0
1934 .byt 8
1935 .byt 16
1936 .byt 24
1937 .byt 32
1938 .byt 40
1939 .byt 48
1940 .byt 56
1941 .byt 64
1942 .byt 72
1943 .byt 80
1944 .byt 88
1945 .byt 96
1946 .byt 104
1947 .byt 112
1948 .byt 120
1949 .byt 128
1950 .byt 136
1951 .byt 144
1952 .byt 152
1953 .byt 160
1954 .byt 168
1955 .byt 176
1956 .byt 184
1957 .byt 192
1958 .byt 200
1959 .byt 208
1960 .byt 216
1961 .byt 224
1962 .byt 232
1963 .byt 240
1964 .byt 248
1965 .byt 0
1966 .byt 8
1967 .byt 16
1968 .byt 24
1969 .byt 32
1970 .byt 40
1971 .byt 48
1972 .byt 56
1973 .byt 64
1974 .byt 72
1975 .byt 80
1976 .byt 88
1977 .byt 96
1978 .byt 104
1979 .byt 112
1980 .byt 120
1981 .byt 128
1982 .byt 136
1983 .byt 144
1984 .byt 152
1985 .byt 160
1986 .byt 168
1987 .byt 176
1988 .byt 184
1989 .byt 192
1990 .byt 200
1991 .byt 208
1992 .byt 216
1993 .byt 224
1994 .byt 232
1995 .byt 240
1996 .byt 248
1997 .byt 0
1998 .byt 8
1999 .byt 16
2000 .byt 24
2001 .byt 32
2002 .byt 40
2003 .byt 48
2004 .byt 56
2005 .byt 64
2006 .byt 72
2007 .byt 80
2008 .byt 88
2009 .byt 96
2010 .byt 104
2011 .byt 112
2012 .byt 120
2013 .byt 128
2014 .byt 136
2015 .byt 144
2016 .byt 152
2017 .byt 160
2018 .byt 168
2019 .byt 176
2020 .byt 184
2021 .byt 192
2022 .byt 200
2023 .byt 208
2024 .byt 216
2025 .byt 224
2026 .byt 232
2027 .byt 240
2028 .byt 248
2029 .byt 0
2030 .byt 8
2031 .byt 16
2032 .byt 24
2033 .byt 32
2034 .byt 40
2035 .byt 48
2036 .byt 56
2037 .byt 64
2038 .byt 72
2039 .byt 80
2040 .byt 88
2041 .byt 96
2042 .byt 104
2043 .byt 112
2044 .byt 120
2045 .byt 128
2046 .byt 136
2047 .byt 144
2048 .byt 152
2049 .byt 160
2050 .byt 168
2051 .byt 176
2052 .byt 184
2053 .byt 192
2054 .byt 200
2055 .byt 208
2056 .byt 216
2057 .byt 224
2058 .byt 232
2059 .byt 240
2060 .byt 248
2061 #endif
2062
2063 tab_div5
2064 .byt 0
2065 .byt 0
2066 .byt 0
2067 .byt 0
2068 .byt 0
2069 .byt 1
2070 .byt 1
2071 .byt 1
2072 .byt 1
2073 .byt 1
2074 .byt 2
2075 .byt 2
2076 .byt 2
2077 .byt 2
2078 .byt 2
2079 .byt 3
2080 .byt 3
2081 .byt 3
2082 .byt 3
2083 .byt 3
2084 .byt 4
2085 .byt 4
2086 .byt 4
2087 .byt 4
2088 .byt 4
2089 .byt 5
2090 .byt 5
2091 .byt 5
2092 .byt 5
2093 .byt 5
2094 .byt 6
2095 .byt 6
2096 .byt 6
2097 .byt 6
2098 .byt 6
2099 .byt 7
2100 .byt 7
2101 .byt 7
2102 .byt 7
2103 .byt 7
2104 .byt 8
2105 .byt 8
2106 .byt 8
2107 .byt 8
2108 .byt 8
2109 .byt 9
2110 .byt 9
2111 .byt 9
2112 .byt 9
2113 .byt 9
2114 .byt 10
2115 .byt 10
2116 .byt 10
2117 .byt 10
2118 .byt 10
2119 .byt 11
2120 .byt 11
2121 .byt 11
2122 .byt 11
2123 .byt 11
2124 .byt 12
2125 .byt 12
2126 .byt 12
2127 .byt 12
2128 .byt 12
2129 .byt 13
2130 .byt 13
2131 .byt 13
2132 .byt 13
2133 .byt 13
2134 .byt 14
2135 .byt 14
2136 .byt 14
2137 .byt 14
2138 .byt 14
2139 .byt 15
2140 .byt 15
2141 .byt 15
2142 .byt 15
2143 .byt 15
2144 .byt 16
2145 .byt 16
2146 .byt 16
2147 .byt 16
2148 .byt 16
2149 .byt 17
2150 .byt 17
2151 .byt 17
2152 .byt 17
2153 .byt 17
2154 .byt 18
2155 .byt 18
2156 .byt 18
2157 .byt 18
2158 .byt 18
2159 .byt 19
2160 .byt 19
2161 .byt 19
2162 .byt 19
2163 .byt 19
2164 .byt 20
2165 .byt 20
2166 .byt 20
2167 .byt 20
2168 .byt 20
2169
2170 tab_mod5
2171 .byt 0
2172 .byt 8
2173 .byt 16
2174 .byt 24
2175 .byt 32
2176 .byt 0
2177 .byt 8
2178 .byt 16
2179 .byt 24
2180 .byt 32
2181 .byt 0
2182 .byt 8
2183 .byt 16
2184 .byt 24
2185 .byt 32
2186 .byt 0
2187 .byt 8
2188 .byt 16
2189 .byt 24
2190 .byt 32
2191 .byt 0
2192 .byt 8
2193 .byt 16
2194 .byt 24
2195 .byt 32
2196 .byt 0
2197 .byt 8
2198 .byt 16
2199 .byt 24
2200 .byt 32
2201 .byt 0
2202 .byt 8
2203 .byt 16
2204 .byt 24
2205 .byt 32
2206 .byt 0
2207 .byt 8
2208 .byt 16
2209 .byt 24
2210 .byt 32
2211 .byt 0
2212 .byt 8
2213 .byt 16
2214 .byt 24
2215 .byt 32
2216 .byt 0
2217 .byt 8
2218 .byt 16
2219 .byt 24
2220 .byt 32
2221 .byt 0
2222 .byt 8
2223 .byt 16
2224 .byt 24
2225 .byt 32
2226 .byt 0
2227 .byt 8
2228 .byt 16
2229 .byt 24
2230 .byt 32
2231 .byt 0
2232 .byt 8
2233 .byt 16
2234 .byt 24
2235 .byt 32
2236 .byt 0
2237 .byt 8
2238 .byt 16
2239 .byt 24
2240 .byt 32
2241 .byt 0
2242 .byt 8
2243 .byt 16
2244 .byt 24
2245 .byt 32
2246 .byt 0
2247 .byt 8
2248 .byt 16
2249 .byt 24
2250 .byt 32
2251 .byt 0
2252 .byt 8
2253 .byt 16
2254 .byt 24
2255 .byt 32
2256 .byt 0
2257 .byt 8
2258 .byt 16
2259 .byt 24
2260 .byt 32
2261 .byt 0
2262 .byt 8
2263 .byt 16
2264 .byt 24
2265 .byt 32
2266 .byt 0
2267 .byt 8
2268 .byt 16
2269 .byt 24
2270 .byt 32
2271 .byt 0
2272 .byt 8
2273 .byt 16
2274 .byt 24
2275 .byt 32
2276
2277
2278 tab_bit8
2279 .byt %10000000
2280 .byt %01000000
2281 .byt %00100000
2282 .byt %00010000
2283 .byt %00001000
2284 .byt %00000100
2285 .byt %00000010
2286 .byt %00000001
2287
2288
2289 ;;;;;; Main timetable (see script.h)
2290 main_timetable
2291 ;.byt PLAYTIME1, WACKER_EXAMROOM, WITHIT_MAPROOM
2292 .byt WITHIT_MAPROOM , WACKER_EXAMROOM , ROCKITT_WHITEROOM
2293 .byt PLAYTIME2, ROCKITT_WHITEROOM, CREAK_READINGROOM
2294 .byt PLAYTIME3, DINNER_WITHIT, PLAYTIME7S, PLAYTIME9
2295 .byt WITHIT_WHITEROOM, REV_LIBRARY1, PLAYTIME4, ROCKITT_WHITEROOM
2296 .byt PLAYTIME5, WACKER_WHITEROOM, PLAYTIME6, WACKER_READINGROOM
2297 .byt CREAK_WHITEROOM, PLAYTIME3, PLAYTIME10, ROCKITT_READINGROOM
2298 .byt WACKER_MAPROOM, PLAYTIME5, DINNER_WACKER, PLAYTIME8S
2299 .byt CREAK_READINGROOM, ROCKITT_EXAMROOM, REV_LIBRARY2, PLAYTIME1
2300 .byt WITHIT_WHITEROOM, ROCKITT_READINGROOM, PLAYTIME4, WITHIT_WHITEROOM
2301 .byt ROCKITT_EXAMROOM, PLAYTIME4, WITHIT_MAPROOM, REV_LIBRARY3
2302 .byt CREAK_WHITEROOM, PLAYTIME6, CREAK_READINGROOM, ROCKITT_WHITEROOM
2303 .byt PLAYTIME2, DINNER_WITHIT, PLAYTIME1, PLAYTIME10, ROCKITT_WHITEROOM
2304 .byt WACKER_EXAMROOM, PLAYTIME5, REV_LIBRARY1, WITHIT_MAPROOM
2305 .byt PLAYTIME3, WITHIT_MAPROOM, WACKER_READINGROOM, PLAYTIME5, PLAYTIME9
2306 .byt ROCKITT_WHITEROOM, CREAK_READINGROOM2, PLAYTIME2, DINNER_WACKER
2307 .byt PLAYTIME7S,PLAYTIME9, WACKER_EXAMROOM, REV_LIBRARY2
2308 .byt PLAYTIME4, WITHIT_WHITEROOM, WACKER_MAPROOM
2309
2310
2311 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2312 ;; COMMAND LISTS... WILL END UP SOMEWHERE ELSE?
2313 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2314 command_list128 ; Map Room - teacher
2315 .byt SC_GOTO, D_FIRE_ESCAPE ; Go to the fire escape
2316 .byt SC_GOTO, D_MAP_DOORWAY ; Go to the entrance of the room
2317 .byt SC_RESTIFNOLESSON ; Restart until it is time to start the lesson
2318 .byt SC_FLAGEVENT, E_TEACHER_MAP ; Signal that the teacher has arrived
2319 .byt SC_MSGSITDOWN ; Tell the kids to sit down
2320 .byt SC_GOTO, D_MAP_MAP ; Go to the teacher position
2321 .byt SC_GOTO, D_POS_MAP ; Go to the teacher position
2322 .byt SC_DOCLASS ; Wipe the board & conduct the class
2323
2324
2325 command_list130 ; Reading Room - teacher
2326 .byt SC_GOTO, D_LIBRARY_INT ; Go to the library
2327 .byt SC_GOTO, D_READING_DOORWAY ; Go to the entrance of the room
2328 .byt SC_RESTIFNOLESSON ; Restart until it is time to start the lesson
2329 .byt SC_FLAGEVENT, E_TEACHER_READING ; Signal that the teacher has arrived
2330 .byt SC_MSGSITDOWN ; Tell the kids to sit down
2331 .byt SC_GOTO, D_POS_READING1 ; Go to the teacher position
2332 .byt SC_GOTO, D_POS_READING2 ; Go to the teacher position
2333 .byt SC_DOCLASS ; Wipe the board & conduct the class
2334
2335 command_list132 ; Exam Room - teacher
2336 .byt SC_GOTO, D_FIRE_ESCAPE ; Go to the fire escape
2337 .byt SC_GOTO, D_EXAM_DOORWAY ; Go to the entrance of the room
2338 .byt SC_RESTIFNOLESSON ; Restart until it is time to start the lesson
2339 .byt SC_FLAGEVENT, E_TEACHER_EXAM ; Signal that the teacher has arrived
2340 .byt SC_MSGSITDOWN ; Tell the kids to sit down
2341 .byt SC_GOTO, D_POS_EXAM ; Go to the teacher position
2342 .byt SC_DOCLASS ; Wipe the board & conduct the class
2343
2344
2345 command_list134 ; White Room - teacher
2346 .byt SC_GOTO, D_STAFF_ROOM ; Go to the staff room
2347 .byt SC_GOTO, D_WHITE_DOORWAY ; Go to the entrance of the room
2348 .byt SC_RESTIFNOLESSON ; Restart until it is time to start the lesson
2349 .byt SC_FLAGEVENT, E_TEACHER_WHITE ; Signal that the teacher has arrived
2350 .byt SC_MSGSITDOWN ; Tell the kids to sit down
2351 .byt SC_GOTO, D_ABOARD_WHITE ; Go to the spot right after the board
2352 .byt SC_GOTO, D_ABOARD1_WHITE ; Go to the spot just before
2353 .byt SC_DOCLASS ; Wipe the board & conduct the class
2354
2355 command_list136 ; Map Room - Little boy
2356 .byt SC_GOTO, D_MAP_ROOM ; Go to the map room
2357 .byt SC_MOVEUNTIL, E_TEACHER_MAP ; Wait until teacher arrives
2358 .byt SC_FINDSEAT ; Find a seat and sit down
2359 ; This continues in 136
2360
2361 command_list138 ; Do nothing
2362 .byt SC_END ; Sit still
2363
2364 command_list140 ; Map Room - BOY WANDER
2365 .byt SC_SETCONTSUB, CS_FIRECATAPULT ; Put a command making Boy Wander fire the catapult now and then
2366 .byt SC_GOTO, D_MAP_ROOM ; Go to the map room
2367 .byt SC_SETCONTSUB, CS_FIRECATAPULT ; Put a command making Boy Wander fire the catapult now and then
2368 .byt SC_MOVEUNTIL, E_TEACHER_MAP ; Move about until the teacher arrives
2369 .byt SC_FINDSEAT ; Find a seat and sit down
2370 .byt SC_END ; Sit still
2371
2372 command_list142 ; Map Room - Angelface
2373 .byt SC_SETCONTSUB, CS_HITNOWTHEN ; Put a command making Angelface hit now & then
2374 .byt SC_GOTO, D_MAP_ROOM ; Go to the reading room
2375 .byt SC_SETCONTSUB, CS_HITNOWTHEN ; Put a command making Angelface hit now & then
2376 .byt SC_MOVEUNTIL, E_TEACHER_MAP ; Move about until the the teacher arrives
2377 .byt SC_FINDSEAT ; Find a seat and sit down
2378 .byt SC_END ; Sit still
2379
2380 command_list144 ; Map room - EINSTEIN
2381 .byt SC_GOTO, D_MAP_ROOM ; Go to the end of the blackboard in the map room
2382 .byt SC_MOVEUNTIL, E_TEACHER_MAP ; Wait until teacher arrives
2383 .byt SC_FINDSEAT ; Find a seat and sit down
2384 .byt SC_CTRLEINSTEINCL1 ; Grass & answer questions
2385
2386 command_list146 ; Reading Room - Little boy
2387 .byt SC_GOTO, D_READING_ROOM ; Go to the reading room
2388 .byt SC_MOVEUNTIL, E_TEACHER_READING ; Wait until teacher arrives
2389 .byt SC_FINDSEAT ; Find a seat and sit down
2390 .byt SC_END ; Sit still
2391
2392 command_list148 ; Reading Room - BOY WANDER
2393 .byt SC_SETCONTSUB, CS_FIRECATAPULT ; Put a command making Boy Wander fire the catapult now and then
2394 .byt SC_GOTO, D_READING_BOARD ; Go to the blackboard of the reading room
2395 .byt SC_WRITEBLCKBOARDC, E_TEACHER_READING ; Write there until the teacher arrives
2396 .byt SC_GOTO, D_READING_ROOM ; Go to the exam room
2397 .byt SC_SETCONTSUB, CS_FIRECATAPULT ; Put a command making Boy Wander fire the catapult now and then
2398 .byt SC_MOVEUNTIL, E_TEACHER_READING ; Move about until the teacher arrives
2399 .byt SC_FINDSEAT ; Find a seat and sit down
2400 .byt SC_END ; Sit still
2401
2402 command_list150 ; Reading Room - Angelface
2403 .byt SC_SETCONTSUB, CS_HITNOWTHEN ; Put a command making Angelface hit now & then
2404 .byt SC_GOTO, D_READING_ROOM ; Go to the reading room
2405 .byt SC_SETCONTSUB, CS_HITNOWTHEN ; Put a command making Angelface hit now & then
2406 .byt SC_MOVEUNTIL, E_TEACHER_READING ; Move about until the the teacher arrives
2407 .byt SC_FINDSEAT ; Find a seat and sit down
2408 .byt SC_END ; Sit still
2409
2410
2411 command_list152 ; Reading room - EINSTEIN
2412 .byt SC_GOTO, D_READING_ROOM ; Go to the reading room
2413 .byt SC_MOVEUNTIL, E_TEACHER_READING ; Wait until teacher arrives
2414 .byt SC_FINDSEAT ; Find a seat and sit down
2415 .byt SC_CTRLEINSTEINCL1 ; Grass & answer questions
2416
2417
2418 command_list154 ; Exam Room - Little boy
2419 .byt SC_GOTO, D_EXAM_ROOM ; Go to the exam room
2420 .byt SC_MOVEUNTIL, E_TEACHER_EXAM ; Wait until teacher arrives
2421 .byt SC_FINDSEAT ; Find a seat and sit down
2422 .byt SC_END ; Sit still
2423
2424 command_list156 ; Exam Room - BOY WANDER
2425 .byt SC_SETCONTSUB, CS_FIRECATAPULT ; Put a command making Boy Wander fire the catapult now and then
2426 .byt SC_GOTO, D_EXAM_BOARD ; Go to the blackboard of the exam room
2427 .byt SC_WRITEBLCKBOARDC, E_TEACHER_EXAM ; Write there until the teacher arrives
2428 .byt SC_GOTO, D_EXAM_ROOM ; Go to the exam room
2429 .byt SC_SETCONTSUB, CS_FIRECATAPULT ; Put a command making Boy Wander fire the catapult now and then
2430 .byt SC_MOVEUNTIL, E_TEACHER_EXAM ; Move about until the teacher arrives
2431 .byt SC_FINDSEAT ; Find a seat and sit down
2432 .byt SC_END ; Sit still
2433
2434 command_list158 ; Exam Room - Angelface
2435 .byt SC_SETCONTSUB, CS_HITNOWTHEN ; Put a command making Angelface hit now & then
2436 .byt SC_GOTO, D_EXAM_ROOM ; Go to the exam room
2437 .byt SC_SETCONTSUB, CS_HITNOWTHEN ; Put a command making Angelface hit now & then
2438 .byt SC_MOVEUNTIL, E_TEACHER_EXAM ; Move about until the the teacher arrives
2439 .byt SC_FINDSEAT ; Find a seat and sit down
2440 .byt SC_END ; Sit still
2441
2442
2443 command_list160 ; Exam room - EINSTEIN
2444 .byt SC_GOTO, D_EXAM_ROOM ; Go to the end of the blackboard in the exam room
2445 .byt SC_MOVEUNTIL, E_TEACHER_EXAM ; Wait until teacher arrives
2446 .byt SC_FINDSEAT ; Find a seat and sit down
2447 .byt SC_CTRLEINSTEINCL1 ; Grass & answer questions
2448
2449
2450 command_list162 ; White Room - Little boy
2451 .byt SC_GOTO, D_WHITE_ROOM ; Go to the white room
2452 .byt SC_MOVEUNTIL, E_TEACHER_WHITE ; Wait until teacher arrives
2453 .byt SC_FINDSEAT ; Find a seat and sit down
2454 .byt SC_END ; Sit still
2455
2456 command_list164 ; White Room - BOY WANDER
2457 .byt SC_SETCONTSUB, CS_FIRECATAPULT ; Put a command making Boy Wander fire the catapult now and then
2458 .byt SC_GOTO, D_WHITE_BOARD ; Go to the blackboard of the white room
2459 .byt SC_WRITEBLCKBOARDC, E_TEACHER_WHITE ; Write there until the teacher arrives
2460 .byt SC_GOTO, D_WHITE_ROOM ; Go to the white room
2461 .byt SC_SETCONTSUB, CS_FIRECATAPULT ; Put a command making Boy Wander fire the catapult now and then
2462 .byt SC_MOVEUNTIL, E_TEACHER_WHITE ; Move about until the teacher arrives
2463 .byt SC_FINDSEAT ; Find a seat and sit down
2464 .byt SC_END ; Sit still
2465
2466
2467 command_list166 ; White Room - Angelface
2468 .byt SC_SETCONTSUB, CS_HITNOWTHEN ; Put a command making Angelface hit now & then
2469 .byt SC_GOTO, D_WHITE_ROOM ; Go to the white room
2470 .byt SC_SETCONTSUB, CS_HITNOWTHEN ; Put a command making Angelface hit now & then
2471 .byt SC_MOVEUNTIL, E_TEACHER_WHITE ; Move about until the the teacher arrives
2472 .byt SC_FINDSEAT ; Find a seat and sit down
2473 .byt SC_END ; Sit still
2474
2475
2476 command_list168 ; White Room - EINSTEIN
2477 .byt SC_GOTO, D_WHITE_ROOM ; Go to the end of the blackboard in the white room
2478 .byt SC_MOVEUNTIL, E_TEACHER_WHITE ; Wait until teacher arrives
2479 .byt SC_FINDSEAT ; Find a seat and sit down
2480 .byt SC_CTRLEINSTEINCL1 ; Grass & answer questions
2481
2482
2483 command_list170 ; Dinner Library - Einstein & little boys
2484 .byt SC_GOTO, D_DINNER_HALL ; Go to the dinner hall
2485 .byt SC_MOVEUNTIL, E_EMPTY ; Move about until the bell rings
2486
2487 command_list172 ; Dinner - BOY WANDER
2488 .byt SC_SETCONTSUB, CS_FIRECATAPULT ; Put a command making Boy Wander fire the catapult now and then
2489 .byt SC_GOTO, D_DINNER_HALL ; Go to the dinner hall
2490 .byt SC_SETCONTSUB, CS_FIRECATAPULT ; Put a command making Boy Wander fire the catapult now and then
2491 .byt SC_MOVEUNTIL, E_EMPTY ; Move about until the bell rings
2492
2493 command_list174 ; Dinner - ANGELFACE
2494 .byt SC_SETCONTSUB, CS_HITNOWTHEN ; Put a command making Angelface hit now & then
2495 .byt SC_GOTO, D_DINNER_HALL ; Go to the dinner hall
2496 .byt SC_SETCONTSUB, CS_HITNOWTHEN ; Put a command making Angelface hit now & then
2497 .byt SC_MOVEUNTIL, E_EMPTY ; Move about until the bell rings
2498
2499 command_list176 ; Revision Library - Einstein & little boys
2500 .byt SC_GOTO, D_LIBRARY ; Go to the library
2501 .byt SC_MOVEUNTIL, E_EMPTY ; Move about until the bell rings
2502
2503 command_list178 ; Revision Library - BOY WANDER
2504 .byt SC_SETCONTSUB, CS_FIRECATAPULT ; Put a command making Boy Wander fire the catapult now and then
2505 .byt SC_GOTO, D_LIBRARY ; Go to the library
2506 .byt SC_SETCONTSUB, CS_FIRECATAPULT ; Put a command making Boy Wander fire the catapult now and then
2507 .byt SC_MOVEUNTIL, E_EMPTY ; Move about until the bell rings
2508
2509 command_list180 ; Revision Library - ANGELFACE
2510 .byt SC_SETCONTSUB, CS_HITNOWTHEN ; Put a command making Angelface hit now & then
2511 .byt SC_GOTO, D_LIBRARY ; Go to the library
2512 .byt SC_SETCONTSUB, CS_HITNOWTHEN ; Put a command making Angelface hit now & then
2513 .byt SC_MOVEUNTIL, E_EMPTY ; Move about until the bell rings
2514
2515 command_list182 ; Walkabout - ANGELFACE
2516 .byt SC_SETCONTSUB, CS_HITNOWTHEN ; Put a command making Angelface hit now & then
2517 .byt SC_GOTORANDOM ; Go to a random location
2518 .byt SC_SETCONTSUB, CS_HITNOWTHEN ; Put a command making Angelface hit now & then
2519 .byt SC_WALKUPDOWN, 10,E_EMPTY ; Move about ten times
2520 .byt SC_RESTARTLIST ; Restart the command list
2521
2522 command_list184 ; Dinner duty
2523 .byt SC_GOTO, D_DINNER_TABLE ; Go to the table in the dinner hall
2524 .byt SC_GOTO, D_DINNER_BENCH ; Go to the middle of the bench in the dinner hall
2525 .byt SC_RESTIFNODINNER ; Restart until dinner has started
2526 .byt SC_DINNERDUTY ; Perform dinner duty
2527
2528 command_list186 ; Head's study - Mr. Wacker
2529 .byt SC_GOTO, D_HEAD_DOORWAY ; Go to the doorway of the head's study
2530 .byt SC_MOVEUNTIL, E_EMPTY ; Move about until the bell rings
2531
2532 command_list188 ; Staff-room - teacher
2533 .byt SC_GOTO, D_STAFF_ROOM ; Go to the staff room
2534 .byt SC_MOVEUNTIL, E_EMPTY ; Move about until the bell rings
2535
2536 command_list190 ; Walkabout - teacher
2537 .byt SC_GOTO, D_HEAD_STUDY ; Go to the head's study (?)
2538 .byt SC_GOTORANDOM ; Then to a random location
2539 .byt SC_RESTARTLIST ; and repeat...
2540
2541 command_list192 ; Write on the boards - BOY WANDER
2542 .byt SC_GOTO, D_EXAM_BOARD ; Go to the exam room board...
2543 .byt SC_WRITEBLCKBOARD ; ... and write there
2544 .byt SC_GOTO, D_WHITE_BOARD ; Go to the exam room board...
2545 .byt SC_WRITEBLCKBOARD ; ... and write there
2546 .byt SC_GOTO, D_READING_BOARD ; Go to the exam room board...
2547 .byt SC_WRITEBLCKBOARD ; ... and write there
2548 ; This continues in 194. The speccy version makes this continue on 192... (?)
2549
2550 command_list194 ; Walkabout Boy Wander
2551 .byt SC_SETCONTSUB, CS_FIRECATAPULT ; Put a command making Boy Wander fire the catapult now and then
2552 .byt SC_GOTORANDOM ; Go to a random location
2553 .byt SC_SETCONTSUB, CS_FIRECATAPULT ; Put a command making Boy Wander fire the catapult now and then
2554 .byt SC_WALKUPDOWN, 10,E_EMPTY ; Move about ten times
2555 .byt SC_RESTARTLIST ; Restart the command list
2556
2557 command_list196 ; Walkabout
2558 .byt SC_GOTORANDOM ; Go to a random location
2559 .byt SC_WALKUPDOWN, 10,E_EMPTY ; Move about ten times
2560 .byt SC_RESTARTLIST ; Restart the command list
2561
2562 command_list198 ; Walk around the fire escape
2563 .byt SC_GOTO, D_FIRE_ESCAPE ; Go to the vincinity of the fire escape
2564 .byt SC_MOVEUNTIL, E_EMPTY ; Move about until the bell rings
2565
2566 command_list200 ; Walk around the gym
2567 .byt SC_GOTO, D_GYM ; Go to the vincinity of the gym
2568 .byt SC_MOVEUNTIL, E_EMPTY ; Move about until the bell rings
2569
2570 command_list202 ; Walk around the big window
2571 .byt SC_GOTO, D_BIG_WINDOW ; Go to the vincinity of the big window
2572 .byt SC_MOVEUNTIL, E_EMPTY ; Move about until the bell rings
2573
2574 command_list204 ; Stampede - leader
2575 .byt SC_WALKUPDOWN, 40,E_EMPTY ; Move up&down 40 times
2576 .byt SC_FLAGEVENT, E_LITTLEBOY1_READY ; Flag little boy 1 is ready
2577 .byt SC_GOTORANDOMTRIP ; Go somewhere tripping people up on the way
2578 .byt SC_UNFLAGEVENT, E_LITTLEBOY1_READY ; Unflag little boy 1 is ready.
2579 .byt SC_WALKUPDOWN, 40,E_EMPTY ; Move up&down 40 times
2580 .byt SC_FLAGEVENT, E_LITTLEBOY1_READY2 ; Flag little boy 1 is ready
2581 .byt SC_GOTORANDOMTRIP ; Go somewhere tripping people up on the way
2582 .byt SC_UNFLAGEVENT, E_LITTLEBOY1_READY2 ; Unflag little boy 1 is ready.
2583 .byt SC_RESTARTLIST ; Restart the command list
2584
2585
2586
2587 command_list206 ; Stampede - follower
2588 .byt SC_MOVEUNTIL, E_LITTLEBOY1_READY ; Move about until little boy 1 is ready
2589 .byt SC_FOLLOWBOY1TRIP ; Find and follow little boy 1
2590 .byt SC_MOVEUNTIL, E_LITTLEBOY1_READY2 ; Move about until little boy 1 is ready
2591 .byt SC_FOLLOWBOY1TRIP ; Find and follow little boy 1
2592 .byt SC_RESTARTLIST ; Restart the command list
2593
2594 command_list208 ; Tell ERIC about EINSTEIN or BOY WANDER (continues in 210)
2595 .byt SC_GOTO, D_GYM ; Go to the gym
2596 .byt SC_MOVEUNTIL, E_EINSTEIN_READY ; Move about until Einstein (or Boy Wander) ready
2597 .byt SC_MOVEUNTIL, E_WACKER_READY ; Move about until Mr Wacker is ready
2598 ;;; This one does not end here, and continues into 210
2599
2600 command_list210 ; Tell ERIC about ANGELFACE (also for Einstein and Boy Wander, beware)
2601 .byt SC_FINDERIC ; Find Eric
2602 .byt SC_TELLANGELFACE ; Tell him about Angelface's mumps
2603 .byt SC_FLAGEVENT, E_BEENTOLD_ANGELF ; Signal that he has been told
2604 .byt SC_GOTORANDOM ; Go to a random location
2605 .byt SC_MOVEUNTIL, E_EMPTY ; Move about until playtime is over
2606
2607 command_list212 ; Grass on Eric
2608 .byt SC_GOTO,D_FIRE_ESCAPE ; Go to the far end of the fire escape
2609 .byt SC_FLAGEVENT, E_EINSTEIN_READY ; Signal that Einstein is ready
2610 .byt SC_MOVEUNTIL, E_BEENTOLD_EINSTEIN ; Move about until Eric has been told about Einstein
2611 .byt SC_GOTO, D_HEAD_STUDY ; Go to inside the Head's study
2612 .byt SC_FLAGEVENT, E_EINSTEIN_GRASSED ; Signal that Einstein grassed on Eric
2613 .byt SC_GOTORANDOM ; Go to a random location
2614 .byt SC_MOVEUNTIL, E_EMPTY ; Move about until playtime is over
2615
2616 command_list214 ; Wait for Einstein to grass on Eric
2617 .byt SC_GOTO, D_HEAD_DOORWAY ; Go to the doorway of the Head's study
2618 .byt SC_FLAGEVENT, E_WACKER_READY ; Signal that Mr Wacker is ready
2619 .byt SC_MOVEUNTIL, E_EINSTEIN_GRASSED ; Move about until Einstein grassed on Eric
2620 .byt SC_SETCONTSUB, CS_WALKFAST ; Put a command making him walk fast
2621 .byt SC_FINDERIC ; Find Eric
2622 .byt SC_2000LINESERIC ; Give Eric 2000 lines
2623 .byt SC_MOVEUNTIL, E_EMPTY ; Move about until playtime is over
2624
2625
2626 command_list216 ; Collect the pea-shooter
2627 .byt SC_GOTO, D_LIBRARY_LEFT ; Go to the left end of the Revision Library
2628 .byt SC_FLAGEVENT, E_BOYW_READY ; Signal that Boy Wander is ready
2629 .byt SC_MOVEUNTIL, E_BEENTOLD_BOYW ; Move about until Eric has been told about Boy Wander
2630 .byt SC_SETCONTSUB, CS_FIRECATAPULT ; Put a command making Boy Wander fire the catapult now and then
2631 .byt SC_GOTO, D_FIRE_ESCAPE ; Go to the far end of the fire escape
2632 .byt SC_FLAGEVENT, E_BOYW_GOTPEA ; Signal that Boy wander has collected the pea-shooter
2633 .byt SC_GOTORANDOM ; Go to a random location
2634 .byt SC_MOVEUNTIL, E_EMPTY ; Move about until playtime is over
2635
2636 command_list218 ; Look for the pea-shooter
2637 .byt SC_GOTO, D_READING_ENTRANCE ; Go to just inside the reading room
2638 .byt SC_FLAGEVENT, E_WACKER_READY ; Signal that Mr. Wacker is ready
2639 .byt SC_MOVEUNTIL, E_BEENTOLD_BOYW ; Move about until Eric has been told about Boy Wander
2640 .byt SC_SETCONTSUB, CS_WALKFAST ; Put the next command making Mr Wacker walk fast
2641 .byt SC_GOTO, D_FIRE_ESCAPE ; Go to the far end of the fire escape
2642 .byt SC_MOVEUNTIL, E_BOYW_GOTPEA ; Move about until Boy Wander collected the pea-shooter
2643 .byt SC_SETCONTSUB, CS_WALKFAST ; Put the next command making Mr Wacker walk fast
2644 .byt SC_FINDERIC ; Find Eric
2645 .byt SC_2000LINESERIC ; Give him 2000 lines
2646 .byt SC_GOTO, D_HEAD_DOORWAY ; Go to the doorway of the Head's study
2647 .byt SC_MOVEUNTIL, E_EMPTY ; Move about until playtime is over
2648
2649 command_list220 ; Mumps walkabout
2650 .byt SC_SETCONTSUB, CS_CHECKTOUCH ; Put next command in Angelface's buffer which checks whether he is touching Eric
2651 .byt SC_GOTORANDOM ; Go to a random location
2652 .byt SC_RESTARTLIST ; Restart the command list
2653
2654 command_list222 ; Mumps duty
2655 .byt SC_GOTO, D_STAFF_ROOM ; Go to the staff room
2656 .byt SC_MOVEUNTIL, E_ERIC_MUMPS ; Move about until Eric has mumps
2657 .byt SC_FINDERIC