This repository has been archived by the owner on Apr 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
45comp.inc
578 lines (528 loc) · 5.77 KB
/
45comp.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
start32data
sc45_palette dw 0
dw 768
dw 771
dw 1028
dw 2052
dw 514
dw 773
dw 1539
dw 1028
dw 1284
dw 1798
dw 771
dw 1032
dw 2307
dw 771
dw 1287
dw 1539
dw 1541
dw 1541
dw 1285
dw 1798
dw 1033
dw 2562
dw 1028
dw 1289
dw 2563
dw 773
dw 1543
dw 1543
dw 1543
dw 1290
dw 2819
dw 773
dw 1800
dw 1542
dw 2055
dw 1545
dw 2823
dw 1285
dw 1293
dw 1795
dw 1800
dw 1546
dw 2052
dw 2055
dw 1548
dw 1796
dw 2312
dw 2057
dw 3079
dw 1542
dw 1550
dw 3842
dw 773
dw 1547
dw 2563
dw 2055
dw 1550
dw 2308
dw 2312
dw 2312
dw 2824
dw 1288
dw 2312
dw 3338
dw 775
dw 2059
dw 3335
dw 1287
dw 1550
dw 4102
dw 1030
dw 2059
dw 2569
dw 2057
dw 2058
dw 3595
dw 1032
dw 1804
dw 3082
dw 1545
dw 1807
dw 3331
dw 1800
dw 2316
dw 3848
dw 1287
dw 2064
dw 2308
dw 2314
dw 1553
dw 2310
dw 3082
dw 2316
dw 4362
dw 775
dw 2824
dw 4107
dw 1544
dw 2318
dw 2822
dw 2314
dw 2318
dw 4616
dw 1032
dw 1811
dw 3331
dw 2314
dw 2571
dw 2571
dw 2571
dw 2068
dw 3588
dw 2569
dw 2573
dw 5387
dw 775
dw 2828
dw 3850
dw 1802
dw 3337
dw 3596
dw 2059
dw 2573
dw 5646
dw 1032
dw 3083
dw 2827
dw 3339
dw 3085
dw 4107
dw 1547
dw 2072
dw 3588
dw 2571
dw 3340
dw 3340
dw 3340
dw 2832
dw 3081
dw 3597
dw 2831
dw 3596
dw 3085
dw 3344
dw 3595
dw 3597
dw 3597
dw 3341
dw 3854
dw 3344
dw 5390
dw 1803
dw 2586
dw 3844
dw 3342
dw 3599
dw 3599
dw 3599
dw 3856
dw 3598
dw 4112
dw 3350
dw 6664
dw 1291
dw 3603
dw 7180
dw 1035
dw 3856
dw 4112
dw 3857
dw 4113
dw 3857
dw 4369
dw 4624
dw 4626
dw 4625
dw 3358
dw 6663
dw 2831
dw 4627
dw 5651
dw 4115
dw 4884
dw 5140
dw 5397
dw 5143
dw 8977
dw 1807
dw 4894
dw 6668
dw 5144
dw 63
dw 15872
dw 0
dw 62
dw 15616
dw 0
dw 61
dw 15360
dw 0
dw 60
dw 15104
dw 0
dw 59
dw 14848
dw 0
dw 58
dw 14592
dw 0
dw 57
dw 14336
dw 0
dw 56
dw 14080
dw 0
dw 55
dw 13824
dw 0
dw 54
dw 13568
dw 0
dw 53
dw 13312
dw 0
dw 51
dw 13056
dw 0
dw 50
dw 12800
dw 0
dw 49
dw 12544
dw 0
dw 48
dw 12288
dw 0
dw 47
dw 12032
dw 0
dw 46
dw 11776
dw 0
dw 45
dw 11520
dw 0
dw 44
dw 11264
dw 0
dw 43
dw 11008
dw 0
dw 42
dw 10752
dw 0
dw 41
dw 10496
dw 0
dw 40
dw 10240
dw 0
dw 39
dw 9984
dw 0
dw 38
dw 9728
dw 0
dw 37
dw 9472
dw 0
dw 36
dw 9216
dw 0
dw 35
dw 8960
dw 0
dw 34
dw 8704
dw 0
dw 33
dw 8448
dw 0
dw 32
dw 8192
dw 0
dw 31
dw 7936
dw 0
dw 0
dw 14336
dw 13364
dw 11569
dw 9261
dw 8481
dw 6687
dw 6681
dw 4626
dw 2578
dw 1803
dw 770
dw 519
dw 13571
dw 9517
dw 9778
dw 11805
dw 5151
dw 5926
dw 8205
dw 1808
dw 2586
dw 11267
dw 2056
dw 8210
dw 7441
dw 6954
dw 9494
dw 4119
dw 3866
dw 4864
dw 13316
dw 13364
dw 11563
dw 8751
dw 9506
dw 10024
dw 8242
dw 10527
dw 6174
dw 5927
dw 7698
dw 3600
dw 2325
dw 2308
dw 11573
dw 12837
dw 7462
dw 7982
dw 9748
dw 3351
dw 4128
dw 6663
dw 778
dw 9533
dw 13100
dw 9244
dw 5162
dw 8476
dw 5390
dw 2072
dw 3855
dw 2308
dw 2865
dw 9995
dw 1285
dw 285
dw 4865
dw 0
dw 11573
dw 12837
dw 7462
dw 0
dw 16128
dw 0
dw 16191
dw 1087
dw 0
dw 4
dw 768
dw 0
dw 3
dw 13824
dw 13878
dw 12077
dw 8241
dw 10527
dw 5917
dw 5925
dw 7698
dw 2865
dw 9995
dw 1285
dw 285
dw 16129
dw 16191
sc45_walk_grid dd 0 dup (0)
sc45_fast_list dw 12+disk_13
dw 51+disk_13
dw 52+disk_13
dw 53+disk_13
dw 54+disk_13
dw 0
sc45_chip_list dw it_sc45_layer_0+disk_13
dw it_sc45_layer_1+disk_13
dw it_sc45_grid_1+disk_13
dw 0
sc45_logic_list dw id_foster
dw $ffff
dw id_std_menu_logic
sc45_mouse_list dw id_sc45_exit_44
dw id_sc45_exit_46
dw id_sc45_exit_47
dw id_sc45_floor
dw $ffff
dw id_text_mouse
reset_44_45 dw c_screen
dw 45
dw c_place
dw id_sc45_floor
dw c_xcood
dw off_left
dw c_ycood
dw 280
dw -1
reset_46_45 dw c_screen
dw 45
dw c_place
dw id_sc45_floor
dw c_xcood
dw off_right
dw c_ycood
dw 280
dw -1
reset_47_45 dw c_screen
dw 45
dw c_place
dw id_sc45_floor
dw c_xcood
dw 392
dw c_ycood
dw 248
dw -1
end32data
start32save_data
sc45_floor dw NULL
dw st_mouse
dw NULL
dw 45
dw NULL
dd sc45_floor_table
dw 128
dw 264
dw NULL
dw NULL
dw NULL
dw NULL
dw advisor_188
dw 0
dw 0
dw 457-128
dw 327-264
dw floor_action
end32save_data
start32data
sc45_floor_table dw id_sc45_floor
dw return_ok
dw id_sc45_exit_44
dw GT_sc45_exit_44
dw 0
dw sc45_exit_44_walk_on
dw id_sc45_exit_46
dw GT_sc45_exit_46
dw 1
dw sc45_exit_46_walk_on
dw id_sc45_exit_47
dw GT_sc45_exit_47
dw 3
dw sc45_exit_47_walk_on
dw -1
end32data
start32save_data
sc45_exit_44 dw NULL
dw st_mouse
dw NULL
dw 45
dw NULL
dd NULL
dw 128
dw 161
dw NULL
dw 1+t7
dw std_exit_left_on
dw std_off
dw advisor_188
dw 0
dw 0
dw 140-128
dw 327-161
dw sc45_exit_44_action
sc45_exit_46 dw NULL
dw st_mouse
dw NULL
dw 45
dw NULL
dd NULL
dw 420
dw 161
dw NULL
dw 1+t7
dw std_exit_right_on
dw std_off
dw advisor_188
dw 0
dw 0
dw 447-420
dw 327-161
dw sc45_exit_46_action
sc45_exit_47 dw NULL
dw st_mouse
dw NULL
dw 45
dw NULL
dd NULL
dw 328
dw 181
dw NULL
dw 1+t7
dw std_exit_right_on
dw std_off
dw advisor_188
dw 0
dw 0
dw 378-328
dw 261-181
dw sc45_exit_47_action
end32save_data
start32data
end32data