proper section names and bank constants

This commit is contained in:
yenatch 2013-11-25 23:33:54 -05:00
parent 3eb9851b84
commit 04eb541f83
8 changed files with 192 additions and 188 deletions

45
contents.asm Normal file
View File

@ -0,0 +1,45 @@
; Doubles as bank constants.
; stats/egg_moves.o
EGG_MOVES EQU $8
; engine/events.o
; engine/scripting.o
; engine/events_2.o
EVENTS EQU $25
; maps.o
MAP_HEADERS EQU $25
MAP_SCRIPTS_1 EQU $15
MAP_SCRIPTS_2 EQU $16
MAP_SCRIPTS_3 EQU $17
MAP_SCRIPTS_4 EQU $18
MAP_SCRIPTS_5 EQU $1A
MAP_SCRIPTS_6 EQU $1B
MAP_SCRIPTS_7 EQU $1C
MAP_SCRIPTS_8 EQU $1D
MAP_SCRIPTS_9 EQU $1E
MAP_SCRIPTS_10 EQU $1F
MAP_SCRIPTS_11 EQU $26
MAP_SCRIPTS_12 EQU $27
MAP_SCRIPTS_13 EQU $60
MAP_SCRIPTS_14 EQU $61
MAP_SCRIPTS_15 EQU $62
MAP_SCRIPTS_16 EQU $63
MAP_SCRIPTS_17 EQU $64
MAP_SCRIPTS_18 EQU $65
MAP_SCRIPTS_19 EQU $66
MAP_SCRIPTS_20 EQU $67
MAP_SCRIPTS_21 EQU $68
MAP_SCRIPTS_22 EQU $69
MAP_SCRIPTS_23 EQU $6A
MAP_SCRIPTS_24 EQU $6B
MAP_SCRIPTS_25 EQU $6C

View File

@ -1,6 +1,7 @@
INCLUDE "includes.asm" INCLUDE "includes.asm"
SECTION "events", ROMX, BANK[$25]
SECTION "Events", ROMX, BANK[EVENTS]
Function966b0: ; 966b0 Function966b0: ; 966b0
xor a xor a

View File

@ -1,8 +1,9 @@
INCLUDE "includes.asm" INCLUDE "includes.asm"
; More overworld event handling. ; More overworld event handling.
SECTION "events2", ROMX, BANK[$25] SECTION "Events 2", ROMX, BANK[EVENTS]
Function97c28: ; 97c28 Function97c28: ; 97c28
ld hl, StatusFlags2 ld hl, StatusFlags2

View File

@ -1,5 +1,7 @@
INCLUDE "pokecrystal.asm" INCLUDE "pokecrystal.asm"
INCLUDE "includes.asm" INCLUDE "includes.asm"
SECTION "scripting", ROMX, BANK[$25]
SECTION "Event Scripting", ROMX, BANK[EVENTS]
INCLUDE "engine/scripting.asm" INCLUDE "engine/scripting.asm"

View File

@ -1,2 +1,3 @@
INCLUDE "globals.asm" INCLUDE "globals.asm"
INCLUDE "contents.asm"
INCLUDE "constants.asm" INCLUDE "constants.asm"

316
main.asm

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,8 @@
INCLUDE "pokecrystal.asm" INCLUDE "pokecrystal.asm"
INCLUDE "includes.asm" INCLUDE "includes.asm"
SECTION "eggmoves", ROMX, BANK[$8]
SECTION "Egg Moves", ROMX, BANK[EGG_MOVES]
INCLUDE "stats/egg_move_pointers.asm" INCLUDE "stats/egg_move_pointers.asm"
INCLUDE "stats/egg_moves.asm" INCLUDE "stats/egg_moves.asm"

View File

@ -1,6 +1,8 @@
INCLUDE "pokecrystal.asm" INCLUDE "pokecrystal.asm"
INCLUDE "includes.asm" INCLUDE "includes.asm"
SECTION "evosattacks", ROMx, BANK[$10]
SECTION "Evolutions and Attacks", ROMX, BANK[EVOS_ATTACKS]
INCLUDE "stats/evos_attacks_pointers.asm" INCLUDE "stats/evos_attacks_pointers.asm"
INCLUDE "stats/evos_attacks.asm" INCLUDE "stats/evos_attacks.asm"