-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.asm
137 lines (104 loc) · 3.11 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
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
; Include the basics
INCLUDE "src/hardware.asm"
INCLUDE "src/constants.asm"
INCLUDE "src/macro.asm"
INCLUDE "src/memory.asm"
;IF DEBUG == 1
; printt "HEH"
;ENDC
; Common code, HomeCall targets (a bit of everything)
SECTION "bank00", ROM0
INCLUDE "src/bank00.asm"
; Mode/Submode Jump & Gameplay mode + other misc modes (Course Clear, Treasure Room, Credits Text...)
SECTION "bank01", ROMX, BANK[$01]
INCLUDE "src/bank01.asm"
; Actor handler, SubCall targets for actor code, Shared Actors, Actor code
SECTION "bank02", ROMX, BANK[$02]
INCLUDE "src/bank02.asm"
; Level GFX
SECTION "bank03", ROMX, BANK[$03]
INCLUDE "src/bank03.asm"
; Sound driver
SECTION "bank04", ROMX, BANK[$04]
INCLUDE "src/bank04.asm"
; Screen event (tile update), Main Sprite Mappings ("OBJLst") set
SECTION "bank05", ROMX, BANK[$05]
INCLUDE "src/bank05.asm"
; Compressed GFX / Tilemaps
SECTION "bank06", ROMX, BANK[$06]
INCLUDE "src/bank06.asm"
; Actor layouts, Actor groups, Actor code
SECTION "bank07", ROMX, BANK[$07]
INCLUDE "src/bank07.asm"
; Map screen code
SECTION "bank08", ROMX, BANK[$08]
INCLUDE "src/bank08.asm"
; Compressed GFX / Tilemaps for Map Screen
SECTION "bank09", ROMX, BANK[$09]
INCLUDE "src/bank09.asm"
; Level layouts
SECTION "bank0A", ROMX, BANK[$A]
INCLUDE "src/bank0A.asm"
; 16x16 Block Data ("block16")
SECTION "bank0B", ROMX, BANK[$B]
INCLUDE "src/bank0B.asm"
; Level / Room Headers
SECTION "bank0C", ROMX, BANK[$C]
INCLUDE "src/bank0C.asm"
; Gameplay, Player Controls, ExActor handler + code, Screen event (tile update) and Parallax modes
SECTION "bank0D", ROMX, BANK[$D]
INCLUDE "src/bank0D.asm"
; Level GFX
SECTION "bank0E", ROMX, BANK[$E]
INCLUDE "src/bank0E.asm"
; Actor code
SECTION "bank0F", ROMX, BANK[$F]
INCLUDE "src/bank0F.asm"
; Level Layouts
SECTION "bank10", ROMX, BANK[$10]
INCLUDE "src/bank10.asm"
; Shared level GFX, Animated Level GFX
SECTION "bank11", ROMX, BANK[$11]
INCLUDE "src/bank11.asm"
; Title screen, Actor code
SECTION "bank12", ROMX, BANK[$12]
INCLUDE "src/bank12.asm"
; Level Layouts
SECTION "bank13", ROMX, BANK[$13]
INCLUDE "src/bank13.asm"
; Compressed GFX / Tilemaps for Map Screen, Cutscenes, OBJ Drawing
SECTION "bank14", ROMX, BANK[$14]
INCLUDE "src/bank14.asm"
; Actor code
SECTION "bank15", ROMX, BANK[$15]
INCLUDE "src/bank15.asm"
; Level Layouts
SECTION "bank16", ROMX, BANK[$16]
INCLUDE "src/bank16.asm"
; Actor code
SECTION "bank17", ROMX, BANK[$17]
INCLUDE "src/bank17.asm"
; Actor code
SECTION "bank18", ROMX, BANK[$18]
INCLUDE "src/bank18.asm"
; Level Layouts
SECTION "bank19", ROMX, BANK[$19]
INCLUDE "src/bank19.asm"
; Level Layouts
SECTION "bank1A", ROMX, BANK[$1A]
INCLUDE "src/bank1A.asm"
; Actor code
SECTION "bank1B", ROMX, BANK[$1B]
INCLUDE "src/bank1B.asm"
; Level Layouts
SECTION "bank1C", ROMX, BANK[$1C]
INCLUDE "src/bank1C.asm"
; Level GFX
SECTION "bank1D", ROMX, BANK[$1D]
INCLUDE "src/bank1D.asm"
; Bonus Games
SECTION "bank1E", ROMX, BANK[$1E]
INCLUDE "src/bank1E.asm"
; Ending and Credits Cutscenes
SECTION "bank1F", ROMX, BANK[$1F]
INCLUDE "src/bank1F.asm"