-
Notifications
You must be signed in to change notification settings - Fork 0
/
AllhallowMusic.asm
110 lines (84 loc) · 2.82 KB
/
AllhallowMusic.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
pushpc
org $28424
JML MyNewMusic
NOP #02
MyReturn:
pullpc
MyNewMusic:
{
LDA $A0 : CMP #$04 : BNE +
JML $028467 ; room was 04 Play village song (Link's House)
+
CMP #$03 : BNE +
JML $028467 ; room was 03 Play village song (Chris Houlihan)
+
CMP #$EC : BNE +
JML $028467 ; room was EC Play village song (Thief Hideout House)
+
CMP #$0F : BNE +
JML $028467 ; room was 0F Play village song (Map Shop House)
+
CMP #$F5 : BNE +
JML $028467 ; room was F5 Play village song (Windmill Cave)
+
CMP #$F0 : BNE +
JML $028467 ; room was F0 Play village song (Locked Door House)
+
CMP #$0C : BNE +
JML $028467 ; room was 0C Play village song (Bomb Shop House)
+
LDX #$04 : CMP #$9C : BNE +
JML $028467 ; room was 9C Play rabbit song (Manor Part 1)
+
CMP #$5B : BNE +
JML $028467 ; room was 5B Play rabbit song (Manor Part 2)
+
LDX #$03 : CMP #$24 : BNE + ; Load Song 03 (Beginning)
JML $028467 ; room was 24 Play beginning song (Beamos Cave)
+
CMP #$15 : BNE +
JML $028467 ; room was 15 Play beginning song (Fairy Cave)
+
CMP #$DA : BNE +
JML $028467 ; room was DA Play beginning song (Pumpkin Patch)
+
CMP #$D2 : BNE +
JML $028467 ; room was D2 Play beginning song (Lonely House)
+
LDX #$02 : CMP #$E3 : BNE + ; Load Song 02 (World Map)
JML $028467 ; room was E3 Play world map song (Half Magic Cucco)
+
LDX #$05 : CMP #$14 : BNE + ; Load Song 05 (Forest)
JML $028467 ; room was 14 Play forest song (Flying Guy House)
+
CMP #$1A : BNE +
JML $028467 ; room was 1A Play forest song (Stalfos Guy House)
+
CMP #$1E : BNE +
JML $028467 ; room was 1E Play forest song (Anti-Fairy Cave)
+
CMP #$13 : BNE +
JML $028467 ; room was 13 Play forest song (Pit Cave House)
+
CMP #$D8 : BNE +
JML $028467 ; room was D8 Play forest song (Flesh Dungeon Exit 1)
+
CMP #$C6 : BNE +
JML $028467 ; room was C6 Play forest song (Flesh Dungeon Exit 2)
+
CMP #$18 : BNE +
JML $028467 ; room was 18 Play forest song (Chest Minigame)
+
LDX #$0C : CMP #$E8 : BNE + ; Load Song 0C (Soldier)
JML $028467 ; room was E8 Play soldier song (Pirate Ship 1)
+
CMP #$F7 : BNE +
JML $028467 ; room was F7 Play soldier song (Pirate Ship 2)
+
CMP #$ED : BNE +
JML $028467 ; room was ED Play soldier song (Pirate Ship 3)
+
; Room was not any of the rooms above
JML MyReturn ; return to normal code!
; LDX #$05 for any time that you want to change what song loads
}