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