Separate maps.asm, pics.asm, sprites.asm, and tilesets.asm from main.asm (#251)

Each new file builds its own .o, along with separate main.o and home.o, which necessitates many more "exported::" labels.
This commit is contained in:
Rangi 2020-06-27 15:32:24 -04:00 committed by GitHub
parent ff927ba730
commit 4b853ad676
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
317 changed files with 2290 additions and 2240 deletions

View file

@ -1451,7 +1451,7 @@ TrainerSentOutText:
; tests if the player has any pokemon that are not fainted
; sets d = 0 if all fainted, d != 0 if some mons are still alive
AnyPartyAlive:
AnyPartyAlive::
ld a, [wPartyCount]
ld e, a
xor a
@ -1996,7 +1996,7 @@ CenterMonName:
pop de
ret
DisplayBattleMenu:
DisplayBattleMenu::
call LoadScreenTilesFromBuffer1 ; restore saved screen
ld a, [wBattleType]
and a
@ -6718,7 +6718,7 @@ PlayMoveAnimation:
call Delay3
predef_jump MoveAnimation
InitBattle:
InitBattle::
ld a, [wCurOpponent]
and a
jr z, DetermineWildOpponent
@ -6934,7 +6934,7 @@ CopyUncompressedPicToTilemap:
ld a, [wPredefRegisters + 1]
ld l, a
ld a, [hStartTileID]
CopyUncompressedPicToHL:
CopyUncompressedPicToHL::
lb bc, 7, 7
ld de, SCREEN_WIDTH
push af

View file

@ -1,4 +1,4 @@
GetTrainerName_:
GetTrainerName_::
ld hl, wGrassRate
ld a, [wLinkState]
and a

View file

@ -1,4 +1,4 @@
SaveTrainerName:
SaveTrainerName::
ld hl, TrainerNamePointers
ld a, [wTrainerClass]
dec a