-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.asm
61 lines (47 loc) · 1.43 KB
/
main.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
arch 65816
lorom
optimize address mirrors
check title "SOULBLAZER - 1 USA "
!initialized = 1
; Labels, defines, macros
incsrc "labels.asm"
incsrc "macros.asm"
incsrc "freespace.asm"
incsrc "items.asm"
org !Bank00FreeSpaceStart
incsrc "copextensions.asm"
assert pc() <= !Bank00FreespaceEnd
org !Bank01FreeSpaceStart
; Could create additional treasure chest data if needed.
; 447 bytes.
assert pc() <= !Bank01FreespaceEnd
; TODO: we are out of space in Bank2 and Bank2 space is at a premium for text table lookups.
org !Bank02FreeSpaceStart
incsrc "npcrewardtable.asm" ; Keep at start of bank's freespace to prevent address from moving.
incsrc "strings.asm" ; This needs to stay in Bank 2
assert pc() <= !Bank02FreespaceEnd
org !Bank03FreeSpaceStart
incsrc "npcscripts.bank03.asm"
incsrc "randosettings.asm"
incsrc "reward.asm"
incsrc "receive.asm"
incsrc "textengineextensions.asm"
incsrc "decouplelair.asm"
incsrc "npcreward.asm"
incsrc "chestrelease.asm"
incsrc "misc.asm"
assert pc() <= !Bank03FreespaceEnd
org !Bank04FreeSpaceStart
incsrc "npcscripts.bank04.asm"
assert pc() <= !Bank04FreespaceEnd
org !Bank1EFreeSpaceStart
; Nothing here for now.
assert pc() <= !Bank1EFreespaceEnd
org !Bank1FFreeSpaceStart
incsrc "npcscripts.bank1f.asm"
assert pc() <= !Bank1FFreespaceEnd
; Standalone hacks
incsrc "textspeed.asm"
if defined("buildall")
incsrc "semiprogressive.asm"
endif