-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain_jp.asm
113 lines (88 loc) · 1.59 KB
/
main_jp.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
.definelabel VAR_DEAD_CLOCK, 0
.definelabel VAR_JP, 1
.definelabel FREE_SPACE,0x87D3E04
.definelabel IWRAM_BLOB,0x81EE700
.gba
.open ROM_IN,ROM_OUT,0x8000000
// Bug fixes
.include "asm/_bugfix.asm"
// JP only bug fix
.org 0x8035BCC // wrong size
.dw 0xF40
// Clock fix
.include "asm/clock.asm"
// NPC changes
.include "asm/npc.asm"
// Save import
.include "asm/save.asm"
// Fixed text archives
.org 0x8662C5C
file_662C5C:
.area 0x1BA8,0x00
.import TEMP+"/662C5C.msg"
.endarea
.org 0x8689DF8
file_689DF8:
.area 0x1CB4,0x00
.import TEMP+"/689DF8.msg"
.endarea
.org 0x868FB1C
file_68FB1C:
.area 0x1E78,0x00
.import TEMP+"/68FB1C.msg"
.endarea
.org 0x86F7D10
file_6F7D10:
.area 0x308,0x00
.import TEMP+"/6F7D10.msg"
.endarea
.org 0x87A152C
file_7A152C:
.area 0x1D7C,0x00
.import TEMP+"/7A152C.msg"
.endarea
// Fixed sprites
.org 0x822137C
.area 0xEE40
.import "inc/gutsman.dmp"
.endarea
.org 0x83FF56C
.area 0x8430
.import "inc/gutsman-ow.dmp"
.endarea
.org 0x802B478
.dw file_bass
.org 0x802B47C
.dw file_sword
.org 0x802B704
.dw file_bassCape
.org 0x802BBEC
.dw file_sword
// Undernet 3 wallmap fix
.org 0x85E00DC
.area 0x6FC4
.import "inc/undernet3-wallmap.lz"
.endarea
.org FREE_SPACE
// Bug fixes
.include "asm/_bugfix.ext.asm"
// Clock fix
.include "asm/clock.ext.asm"
// NPC changes
.include "asm/npc.ext.asm"
// Save import
.include "asm/save.ext.asm"
.align 4
file_clockmsg:
.import TEMP+"/clock.msg"
.align 4
file_bass:
.import "inc/bass.dmp"
.align 4
file_bassCape:
.import "inc/bass-cape.dmp"
.align 4
file_sword:
.import "inc/sword.dmp"
.align 4,0xFF
.close