-
Notifications
You must be signed in to change notification settings - Fork 0
/
s2_menu.asm
executable file
·695 lines (693 loc) · 29.3 KB
/
s2_menu.asm
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
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
;===============================================================================
; Menu do Sonic 2 No Sonic 1 reprogramado por Esrael L. G. Neto
; [ Início ]
;
; O código deste menu foi desenvolvido para funcionar com
; o disassembly do Sonic 1 feito por -> drx (www.hacking-cult.org)
;
; Se estiver usando um disassembly diferente modifique os jumps no final do
; código para que aponte para as rotinas equivalentes.
;
; Para pode utilizar este menu basta fazer a seguinte modificação no código
; original:
; Localize o label -> loc_3242 adicione -> jmp Level_Select_Menu
; O código deve ficar como abaixo
; ......................
; loc_3242:
; tst.b ($FFFFFFE0).w
; beq.w PlayLevel
; btst #6,($FFFFF604).w
; beq.w PlayLevel
; jmp Level_Select_Menu ; <- Carrega o Menu do Sonic 2
; moveq #2,d0
; bsr.w PalLoad
; ...............
;
; Não esqueça de incluir este asm em seu código com a diretiva include:
; include 's2_menu.asm'
;===============================================================================
Slow_Motion_Flag equ $FFFFFFE1
Debug_Mode_Flag equ $FFFFFFE2
Level_Select_Menu_snd = $009D
Emerald_Snd = $0093
Ring_Snd = $00B5
Volume_Down = $00E0
Stop_Sound = $00E4
;-------------------------------------------------------------------------------
Level_Select_Menu:
move.b #Stop_Sound, D0
bsr Menu_Play_Music
bsr Menu_Pal_FadeFrom
move #$2700, SR
move.w ($FFFFF60C).w, D0
andi.b #$BF, D0
move.w D0, ($00C00004)
bsr Menu_ClearScreen
lea ($00C00004), A6
move.w #$8004, (A6)
move.w #$8230, (A6)
move.w #$8407, (A6)
move.w #$8230, (A6)
move.w #$8700, (A6)
move.w #$8C81, (A6)
move.w #$9001, (A6)
lea ($FFFFAC00).w, A1
moveq #$00, D0
move.w #$00FF, D1
Offset_0x026ACA:
move.l D0, (A1)+
dbra D1, Offset_0x026ACA
lea ($FFFFB000).w, A1
moveq #$00, D0
move.w #$07FF, D1
Offset_0x026ADA:
move.l D0, (A1)+
dbra D1, Offset_0x026ADA
clr.w ($FFFFDC00).w
move.l #$FFFFDC00, ($FFFFDCFC).w
move.l #$42000000, ($00C00004)
lea (Menu_Font), A0
bsr Menu_NemesisDec
move.l #$52000000, ($00C00004)
lea (Level_Icons), A0
jsr Menu_NemesisDec
;-------------------------------------------------------------------------------
; Carrega o Mapeamento do Fundo Sonic/Miles
;-------------------------------------------------------------------------------
lea ($FFFF0000), A1
lea (Menu_Mappings), A0
move.w #$6000, D0
bsr Menu_EnigmaDec
lea ($FFFF0000), A1
move.l #$60000003, D0
moveq #$27, D1
moveq #$1B, D2
bsr Menu_ShowVDPGraphics
;-------------------------------------------------------------------------------
; Carrega o Texto do Menu de Seleção de Fases
;-------------------------------------------------------------------------------
lea ($FFFF0000), A3
move.w #$045F, D1
Offset_0x026B4E:
move.w #$0000, (A3)+
dbra D1, Offset_0x026B4E
lea ($FFFF0000), A3
lea (Menu_Level_Select_Text), A1
lea (Menu_Text_Positions), A5
moveq #$00, D0
move.w #$0009, D1 ; Quantidade de textos a ser carregada e posição do Sound Test
Menu_Loop_Load_Text:
move.w (A5)+, D3
lea $00(A3, D3), A2
moveq #$00, D2
move.b (A1)+, D2
move.w D2, D3
Offset_0x026B7A:
move.b (A1)+, D0
move.w D0, (A2)+
dbra D2, Offset_0x026B7A
move.w #$000D, D2
sub.w D3, D2
bcs.s Offset_0x026B92
Offset_0x026B8A:
move.w #$0000, (A2)+
dbra D2, Offset_0x026B8A
Offset_0x026B92:
move.w #$0011, (A2) ; Load "1"
lea $0050(A2), A2
move.w #$0012, (A2) ; Load "2"
lea $0050(A2), A2
move.w #$0013, (A2) ; Load "3"
dbra D1, Menu_Loop_Load_Text
;-------------------------------------------------------------------------------
moveq #$0E, D1
lea $FFFFFBA0(A2), A2
Menu_Clear_Act_x: ; Limpa os números dos acts não usados e carrega o "*" do Sound Test
move.w #$0000, (A2) ; Load " "
lea $0050(A2), A2
dbra D1, Menu_Clear_Act_x
lea $FFFFFF10(A2), A2
move.w #$001A, (A2) ; Load "*"
;-------------------------------------------------------------------------------
; Carrega o Mapeamento das Asas onde são mostrados os ícones
;-------------------------------------------------------------------------------
lea (Wings_Mappings), A0
lea ($FFFF0670), A1
move #$06, D1
Menu_Loop_Next_Line:
move #$09, D0
Menu_Loop_Load_Wings:
move.w (A0)+, (A1)+
dbra D0, Menu_Loop_Load_Wings
add.w #$3C, A1
dbra D1, Menu_Loop_Next_Line
;-------------------------------------------------------------------------------
; Carrega o Mapeamento dos ícones
;-------------------------------------------------------------------------------
lea ($FFFF08C0), A1
lea (Icons_Mappings), A0
move.w #$0090, D0
bsr Menu_EnigmaDec
lea ($FFFF0000), A1
move.l #$40000003, D0
moveq #$27, D1
moveq #$1B, D2
bsr Menu_ShowVDPGraphics
;-------------------------------------------------------------------------------
moveq #$00, D3
bsr Offset_0x027040
clr.w ($FFFFFF70).w
clr.w ($FFFFFE40).w
clr.b ($FFFFF711).w
clr.w ($FFFFF7F0).w
;-------------------------------------------------------------------------------
clr.l ($FFFFF7B8).w ; clear RAM adresses $F7B8 to $F7BA
; move.w #$0000,($FFFFF7B8).w ; Inicializa os quadros das animações do menu
; move.w #$0000,($FFFFF7B9).w ; Inicializa o contador das animações do menu
jsr Dynamic_Menu ; Chama a rotina de animação
;-------------------------------------------------------------------------------
moveq #$14, D0
bsr Menu_PalLoad1
lea ($FFFFFB40).w, A1
lea ($FFFFFBC0).w, A2
moveq #$07, D1
Offset_0x026C26:
move.l (A1), (A2)+
clr.l (A1)+
dbra D1, Offset_0x026C26
move.b #Level_Select_Menu_snd, D0
bsr Menu_Play_Music
moveq #$00, D0
jsr Menu_LoadPLC2
move.w #$0707, ($FFFFF614).w
clr.w ($FFFFFFDC).w
clr.l ($FFFFEE00).w
clr.l ($FFFFEE04).w
clr.w ($FFFFFF0C).w
clr.w ($FFFFFF0E).w
move.b #$18, ($FFFFF62A).w
bsr Menu_DelayProgram
move.w ($FFFFF60C).w, D0
ori.b #$40, D0
move.w D0, ($00C00004)
bsr Menu_Pal_FadeTo
Menu_Main_Loop:
move.b #$18, ($FFFFF62A).w
bsr Menu_DelayProgram
move #$2700, SR
moveq #$00, D3
bsr Offset_0x026ED8
bsr Offset_0x026DEC
move.w #$6000, D3
bsr Offset_0x027048
move #$2300, SR
jsr Dynamic_Menu
bsr Menu_RunPLC
btst #$04, ($FFFFF604).w
beq.s Offset_0x026CC6
move.w #$0001, ($FFFFFFD8).w
Offset_0x026CC6:
move.b ($FFFFF605).w, D0
or.b ($FFFFF607).w, D0
andi.b #$80, D0
bne.s Offset_0x026CD8
bra Menu_Main_Loop
Offset_0x026CD8:
move.w ($FFFFFF82).w, D0
add.w D0, D0
move.w Menu_Level_Select_Array(PC, D0), D0
bmi Menu_Game_Reset
cmpi.w #$0600, D0
beq Menu_Ending_Sequence
cmpi.w #$5555, D0
beq Menu_Main_Loop
cmpi.w #$4000, D0
bne Menu_Load_Level
move.b #$10, ($FFFFF600).w
clr.w ($FFFFFE10).w
move.b #$03, ($FFFFFE12).w
move.b #$03, ($FFFFFEC6).w
moveq #$00, D0
move.w D0, ($FFFFFE20).w
move.l D0, ($FFFFFE22).w
move.l D0, ($FFFFFE26).w
move.w D0, ($FFFFFED0).w
move.l D0, ($FFFFFED2).w
move.l D0, ($FFFFFED6).w
move.l #$00001388, ($FFFFFFC0).w
move.l #$00001388, ($FFFFFFC4).w
move.w ($FFFFFF72).w, ($FFFFFF70).w
rts
Menu_Game_Reset:
move.b #$0000, ($FFFFF600).w
rts
Menu_Ending_Sequence:
move.b #$0018,($FFFFF600).w
move.w #$0600,($FFFFFE10).w
rts
Menu_Level_Select_Array:
dc.w $0000, $0001, $0002
dc.w $0100, $0101, $0102
dc.w $0200, $0201, $0202
dc.w $0300, $0301, $0302
dc.w $0400, $0401, $0402
dc.w $0500, $0501, $0103
dc.w $0502, $4000, $0600
dc.w $FFFF
Menu_Load_Level:
andi.w #$3FFF, D0
move.w D0, ($FFFFFE10).w
move.b #$0C, ($FFFFF600).w
move.b #$03, ($FFFFFE12).w
move.b #$03, ($FFFFFEC6).w
moveq #$00, D0
move.w D0, ($FFFFFE20).w
move.l D0, ($FFFFFE22).w
move.l D0, ($FFFFFE26).w
move.w D0, ($FFFFFED0).w
move.l D0, ($FFFFFED2).w
move.l D0, ($FFFFFED6).w
nop
nop
move.l #$00001388, ($FFFFFFC0).w
move.l #$00001388, ($FFFFFFC4).w
move.b #Volume_Down, D0
bsr Menu_Play_Music
moveq #$00, D0
move.w D0, ($FFFFFF8A).w
move.w D0, ($FFFFFFDC).w
rts
Offset_0x026DEC:
move.b ($FFFFF605).w, D1
andi.b #$03, D1
bne.s Offset_0x026DFC
subq.w #$01, ($FFFFFF80).w
bpl.s Offset_0x026E32
Offset_0x026DFC:
move.w #$000B, ($FFFFFF80).w
move.b ($FFFFF604).w, D1
andi.b #$03, D1
beq.s Offset_0x026E32
move.w ($FFFFFF82).w, D0
btst #$00, D1
beq.s Offset_0x026E1C
subq.w #$01, D0
bcc.s Offset_0x026E1C
moveq #$15, D0 ; Último item após apertar para cima
Offset_0x026E1C:
btst #$01, D1
beq.s Offset_0x026E2C
addq.w #$01, D0
cmpi.w #$0016, D0 ; Verifica qual o último item da lista
bcs.s Offset_0x026E2C
moveq #$00, D0
Offset_0x026E2C:
move.w D0, ($FFFFFF82).w
rts
Offset_0x026E32:
cmpi.w #$0015, ($FFFFFF82).w ; se o item for igual muda as funções de esquerda e direita
bne.s Offset_0x026E9C
move.w ($FFFFFF84).w, D0
move.b ($FFFFF605).w, D1
btst #$02, D1
beq.s Offset_0x026E4E
subq.b #$01, D0
bcc.s Offset_0x026E4E
moveq #$7F, D0
Offset_0x026E4E:
btst #$03, D1
beq.s Offset_0x026E5E
addq.b #$01, D0
cmpi.w #$0080, D0
bcs.s Offset_0x026E5E
moveq #$00, D0
Offset_0x026E5E:
btst #$06, D1
beq.s Offset_0x026E6C
addi.b #$10, D0
andi.b #$7F, D0
Offset_0x026E6C:
move.w D0, ($FFFFFF84).w
andi.w #$0030, D1
beq.s Offset_0x026E9A
move.w ($FFFFFF84).w, D0
addi.w #$0080, D0
bsr Menu_Play_Music
lea (Code_Debug_Mode), A0
lea (Code_All_Emeralds), A2
lea ($FFFFFF0A).w, A1
moveq #$01, D2
bsr Menu_Code_Test
Offset_0x026E9A:
rts
Offset_0x026E9C:
move.b ($FFFFF605).w, D1
andi.b #$0C, D1
beq.s Offset_0x026EB2
move.w ($FFFFFF82).w, D0
move.b Menu_Left_Right_Select(PC, D0), D0
move.w D0, ($FFFFFF82).w
Offset_0x026EB2:
rts
Menu_Left_Right_Select:
dc.b $0F, $10, $11, $12, $12, $12, $13, $13, $13, $14, $14, $14, $15, $15, $15
dc.b $00, $01, $02, $03, $06, $09, $0C
Offset_0x026ED8:
lea ($FFFF0000), A4
lea (Menu_Text_Highlight), A5
lea ($00C00000), A6
moveq #$00, D0
move.w ($FFFFFF82).w, D0
lsl.w #$02, D0
lea $00(A5, D0), A3
moveq #$00, D0
move.b (A3), D0
mulu.w #$0050, D0
moveq #$00, D1
move.b $0001(A3), D1
add.w D1, D0
lea $00(A4, D0), A1
moveq #$00, D1
move.b (A3), D1
lsl.w #$07, D1
add.b $0001(A3), D1
addi.w #$C000, D1
lsl.l #$02, D1
lsr.w #$02, D1
ori.w #$4000, D1
swap.w D1
move.l D1, $0004(A6)
moveq #$0E, D2 ; Quantidade de letras a selecionar (Highlight)
Offset_0x026F28:
move.w (A1)+, D0
add.w D3, D0
move.w D0, (A6)
dbra D2, Offset_0x026F28
addq.w #$02, A3
moveq #$00, D0
move.b (A3), D0
beq.s Offset_0x026F6C
mulu.w #$0050, D0
moveq #$00, D1
move.b $0001(A3), D1
add.w D1, D0
lea $00(A4, D0), A1
moveq #$00, D1
move.b (A3), D1
lsl.w #$07, D1
add.b $0001(A3), D1
addi.w #$C000, D1
lsl.l #$02, D1
lsr.w #$02, D1
ori.w #$4000, D1
swap.w D1
move.l D1, $0004(A6)
move.w (A1)+, D0
add.w D3, D0
move.w D0, (A6)
Offset_0x026F6C:
cmpi.w #$0015, ($FFFFFF82).w ; Se for igual seleciona o número do Sound Test
bne.s Offset_0x026F78
bsr Offset_0x026F7A
Offset_0x026F78:
rts
Offset_0x026F7A:
move.l #$49C60003, ($00C00004) ; Posição dos números do Sound Test
move.w ($FFFFFF84).w, D0
move.b D0, D2
lsr.b #$04, D0
bsr.s Offset_0x026F90
move.b D2, D0
Offset_0x026F90:
andi.w #$000F, D0
cmpi.b #$0A, D0
bcs.s Offset_0x026F9E
addi.b #$04, D0
Offset_0x026F9E:
addi.b #$10, D0
add.w D3, D0
move.w D0, (A6)
rts
;-------------------------------------------------------------------------------
Menu_Code_Test:
move.w ($FFFFFF0C).w, D0
adda.w D0, A0
move.w ($FFFFFF84).w, D0
cmp.b (A0), D0
bne.s Menu_Reset_Debug_Mode_Code_Counter
addq.w #$01, ($FFFFFF0C).w
tst.b $0001(A0)
bpl.s Menu_All_Emeralds_Code_Test
move.w #$0101, (A1)
bra Menu_Set_Debug_Flag
Menu_Reset_Debug_Mode_Code_Counter:
move.w #$0000, ($FFFFFF0C).w
Menu_All_Emeralds_Code_Test:
move.w ($FFFFFF0E).w, D0
adda.w D0, A2
move.w ($FFFFFF84).w, D0
cmp.b (A2), D0
bne.s Menu_Reset_All_Emerald_Code_Counter
addq.w #$01, ($FFFFFF0E).w
tst.b $0001(A2)
bpl.s Menu_Code_Not_0xFF
tst.w D2
bne.s Menu_Set_All_Emeralds
Menu_Set_Debug_Flag:
move.b #$01, (Slow_Motion_Flag).w
move.b #$01, (Debug_Mode_Flag).w
move.b #Ring_Snd, D0
bsr Menu_Play_Music
bra.s Menu_Reset_All_Emerald_Code_Counter
Menu_Set_All_Emeralds:
move.w #$0006, ($FFFFFE56).w
move.b #Emerald_Snd, D0
bsr Menu_Play_Music
Menu_Reset_All_Emerald_Code_Counter:
move.w #$0000, ($FFFFFF0E).w
Menu_Code_Not_0xFF:
rts
Code_Debug_Mode:
dc.b $01, $09, $09, $02, $01, $01, $02, $04, $FF
Code_All_Emeralds:
dc.b $04, $01, $02, $06, $FF
;-------------------------------------------------------------------------------
Offset_0x027040:
bsr Offset_0x026F7A
bra Offset_0x027050
Offset_0x027048:
bsr Offset_0x026ED8
bra Offset_0x027050
Offset_0x027050:
move.w ($FFFFFF82).w, D0
lea (Menu_Icon_List), A3
lea $00(A3, D0), A3
lea ($FFFF08C0), A1
moveq #$00, D0
move.b (A3), D0
lsl.w #$03, D0
move.w D0, D1
add.w D0, D0
add.w D1, D0
lea $00(A1, D0), A1
move.l #$4B360003, D0 ; Posição Horizontal dos Ícones
moveq #$03, D1
moveq #$02, D2
bsr Menu_ShowVDPGraphics
lea (Icon_Palettes), A1
moveq #$00, D0
move.b (A3), D0
lsl.w #$05, D0
lea $00(A1, D0), A1
lea ($FFFFFB40).w, A2
moveq #$07, D1
Offset_0x027098:
move.l (A1)+, (A2)+
dbra D1, Offset_0x027098
rts
;-------------------------------------------------------------------------------
Dynamic_Menu:
subq.b #$01, ($FFFFF7B9).w ; Decrementa em 1 o Tempo
bpl.s Exit_Dinamic_Menu ; Se for maior ou igual a 0 sai da função
move.b #$07, ($FFFFF7B9).w ; Inicializa o tempo de duração de cada frame
move.b ($FFFFF7B8).w, D0 ; Carrega o Id do Frame Atual em D0
addq.b #$01, ($FFFFF7B8).w ; Carrega o próximo frame em $FFFFFFB8
andi.w #$001F, D0
move.b Sonic_Miles_Frame_Select(PC, D0), D0 ; Carrega o Id do frame em D0
; muls.w #$0140, D0 ; Multiplica o Id pelo tamanho em bytes de cada frame
lsl.w #$06, D0
lea ($00C00000), A6
move.l #$40200000, $0004(A6)
lea (Sonic_Miles_Spr), A1
lea $00(A1, D0), A1
move.w #$0009, D0 ; Tiles-1 a serem carregados por vez
Menu_Loop_Load_Tiles:
move.l (A1)+, (A6)
move.l (A1)+, (A6)
move.l (A1)+, (A6)
move.l (A1)+, (A6)
move.l (A1)+, (A6)
move.l (A1)+, (A6)
move.l (A1)+, (A6)
move.l (A1)+, (A6)
dbra D0, Menu_Loop_Load_Tiles
Exit_Dinamic_Menu:
rts
Sonic_Miles_Frame_Select:
dc.b $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
dc.b $05, $0A
dc.b $0F, $0F, $0F, $0F, $0F, $0F, $0F, $0F, $0F, $0F, $0F, $0F, $0F, $0F
dc.b $0A, $05
; 0 = 0000000000 ; 1 = 0101000000 ; 2 = 1010000000 ; 3 = 1111000000
;------------------------------------------------------------------------------
__ = $00
_A = $1E
_B = $1F
_C = $20
_D = $21
_E = $22
_F = $23
_G = $24
_H = $25
_I = $26
_J = $27
_K = $28
_L = $29
_M = $2A
_N = $2B
_O = $2C
_P = $2D
_Q = $2E
_R = $2F
_S = $30
_T = $31
_U = $32
_V = $33
_W = $34
_X = $35
_Y = $36
_Z = $37
_st = $1A
;-------------------------------------------------------------------------------
Icon_Palettes:
dc.w $0000, $0000, $0048, $006A, $008E, $00CE, $0EEE, $00E0
dc.w $00A4, $0082, $0062, $0000, $0E86, $0026, $0E42, $0C00
dc.w $0000, $0000, $0420, $0820, $0C00, $0E60, $0A00, $0000
dc.w $0E00, $0000, $0000, $0000, $0444, $0666, $0AAA, $0EEE
dc.w $0000, $0204, $0026, $0248, $046A, $048C, $06CE, $0002
dc.w $0000, $0220, $0040, $0060, $0080, $02A0, $06E0, $0A0C
dc.w $0000, $0000, $0A00, $0660, $0C80, $0EC0, $006A, $0008
dc.w $028A, $00AE, $004C, $006E, $0060, $0066, $00C0, $00CA
dc.w $0000, $0000, $0CE2, $0000, $0480, $0240, $0EEE, $04AC
dc.w $006A, $0026, $0842, $0620, $0400, $0000, $0000, $0000
dc.w $0000, $0000, $0EEE, $0ECA, $0E86, $0E64, $0E42, $06AE
dc.w $048A, $0268, $0246, $0024, $0888, $0444, $000E, $0008
dc.w $0000, $0000, $0A26, $0C48, $0E8C, $00CE, $00C4, $0080
dc.w $0C00, $0000, $0EEE, $0EEA, $0EC8, $006E, $004A, $0028
dc.w $0000, $0000, $0048, $006A, $008E, $00CE, $0EEE, $00E0
dc.w $00A4, $0082, $0062, $0808, $0A4A, $0026, $0626, $0404
dc.w $0000, $0000, $0EEE, $0ECA, $0E86, $0E64, $0E42, $06AE
dc.w $048A, $0268, $0246, $0024, $0888, $0444, $000E, $0008
dc.w $0000, $0000, $0048, $006A, $008E, $00CE, $0EEE, $00E0
dc.w $00A4, $0082, $0062, $0400, $0E86, $006E, $0E42, $0C00
dc.w $0000, $0000, $0CE2, $08C0, $0480, $0240, $0EEE, $02AC
dc.w $006A, $0026, $0AA6, $0000, $060A, $0408, $0204, $0000
dc.w $0000, $0000, $0C06, $0C0A, $0C6E, $0068, $008A, $0000
dc.w $02CE, $00EC, $00AE, $006E, $0EEE, $0000, $000E, $00C4
dc.w $0000, $0000, $0EEE, $0AAA, $0000, $0666, $0444, $0E40
dc.w $0C00, $0800, $00CE, $028E, $000E, $0084, $0062, $0020
dc.w $0000, $0000, $0004, $0044, $0084, $0088, $00A8, $00AC
dc.w $006C, $002C, $0028, $0006, $0666, $0888, $0CCC, $0EEE
dc.w $0000, $0000, $06CE, $04AC, $028A, $0068, $0046, $00E8
dc.w $00C4, $0080, $0040, $0EEE, $0C00, $0EC0, $0860, $0000
dc.w $0000, $0000, $0E64, $0E86, $0EA8, $0ECA, $0EEE, $0000
dc.w $00AE, $006E, $0E22, $00E0, $0000, $0000, $0000, $0000
dc.w $0000, $0E20, $004E, $006E, $0048, $008C, $00CE, $08EE
dc.w $0800, $0400, $0000, $0EE8, $0E80, $0E60, $0000, $0000
dc.w $0000, $0000, $0A22, $0C42, $0000, $0E66, $0EEE, $0AAA
dc.w $0888, $0444, $08AE, $046A, $000E, $0000, $00EE, $0000
dc.w $0000, $0000, $0A22, $0C42, $0000, $0E66, $0EEE, $0AAA
dc.w $0888, $0444, $08AE, $046A, $000E, $0000, $00EE, $0000
;-------------------------------------------------------------------------------
Menu_Icon_List:
dc.b $00, $00, $00, $0E, $0E, $0E, $06, $06, $06, $0B, $0B, $0B, $0D, $0D, $0D, $09
dc.b $09, $09, $04, $10, $0F, $11
;-------------------------------------------------------------------------------
Menu_Text_Highlight:
dc.w $0306, $0324, $0306, $0424, $0306, $0524, $0706, $0724
dc.w $0706, $0824, $0706, $0924, $0B06, $0B24, $0B06, $0C24
dc.w $0B06, $0D24, $0F06, $0F24, $0F06, $1024, $0F06, $1124
dc.w $1306, $1324, $1306, $1424, $1306, $1524, $032C, $034A
dc.w $032C, $044A, $032C, $054A, $072C, $0000, $0B2C, $0000
dc.w $0F2C, $0000, $132C, $134A
;-------------------------------------------------------------------------------
Menu_Text_Positions:
dc.w $00F6, $0236, $0376, $05F6, $04B6, $011C, $025C, $039C
dc.w $04DC, $061C
;-------------------------------------------------------------------------------
Menu_Level_Select_Text:
dc.b $0E, _B, _L, _O, _S, _S, _M, __, _G, _A, _R, _D, _E, _N, _S, __
dc.b $0E, _D, _A, _M, _P, __, _R, _E, _L, _I, _C, __, __, __, __, __
dc.b $0E, _A, _S, _H, _E, _N, __, _P, _A, _G, _O, _D, _A, __, __, __
dc.b $0E, _S, _P, _R, _I, _N, _G, __, _C, _I, _T, _Y, __, __, __, __
dc.b $0E, _H, _O, _S, _H, _I, __, _M, _E, _T, _R, _O, __, __, __, __
dc.b $0E, _B, _A, _D, _N, _I, _K, __, _F, _A, _C, _T, _O, _R, _Y, __
dc.b $0E, _L, _A, _S, _T, __, _F, _I, _G, _H, _T, __, __, __, __, __
dc.b $0E, _S, _P, _E, _C, _I, _A, _L, __, _S, _T, _A, _G, _E, __, __
dc.b $0E, _E, _N, _D, _I, _N, _G, __, _S, _E, _Q, _U, _E, _N, _C, _E
dc.b $0E, _J, _U, _K, _E, _B, _O, _X, __, __, __, __, __, _st,__, __
;-------------------------------------------------------------------------------
Wings_Mappings:
dc.w $6000, $6000, $6000, $604D, $604E, $684E, $684D, $6000, $6000, $6000
;Wings_Line_1:
dc.w $604F, $6050, $6051, $6052, $6053, $6853, $6852, $6851, $6850, $684F
;Wings_Line_2:
dc.w $6054, $6055, $6056, $6057, $6057, $6057, $6057, $6856, $6855, $6854
;Wings_Line_3:
dc.w $6058, $6059, $605A, $6057, $6057, $6057, $6057, $685A, $6859, $6858
;Wings_Line_4:
dc.w $605B, $605C, $605D, $6057, $6057, $6057, $6057, $685D, $685C, $685B
;Wings_Line_5:
dc.w $6000, $605E, $605F, $6060, $6061, $6062, $6063, $6064, $685E, $6000
;Wings_Line_6:
dc.w $6000, $6000, $6065, $6066, $6067, $6867, $6866, $6865, $6000, $6000
;-------------------------------------------------------------------------------
Menu_Palette:
incbin 'data\menu\menu.pal'
Menu_ClearScreen:
jmp ClearScreen
Menu_ShowVDPGraphics:
jmp ShowVDPGraphics
Menu_NemesisDec:
jmp NemDec
Menu_LoadPLC2:
jmp LoadPLC2
Menu_RunPLC:
jmp RunPLC_RAM
Menu_EnigmaDec
jmp EniDec
Menu_Pal_FadeTo:
jmp Pal_FadeTo
Menu_Pal_FadeFrom:
jmp Pal_FadeFrom
Menu_Play_Music:
jmp PlaySound
Menu_PalLoad1:
jmp PalLoad1
Menu_DelayProgram:
jmp DelayProgram
;-------------------------------------------------------------------------------
Menu_Font:
incbin 'data\menu\menufont.nem'
Level_Icons:
incbin 'data\menu\levelico.nem'
Menu_Mappings:
incbin 'data\menu\menubg.eni'
Icons_Mappings:
incbin 'data\menu\iconsmap.eni'
Sonic_Miles_Spr:
incbin 'data\menu\soncmils.dat'
;===============================================================================
; Menu do Sonic 2 No Sonic 1 reprogramado por Esrael L. G. Neto
; [ Fim ]
;===============================================================================