mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 23:55:24 +13:00
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:
parent
ff927ba730
commit
4b853ad676
317 changed files with 2290 additions and 2240 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
GetTrainerName_:
|
||||
GetTrainerName_::
|
||||
ld hl, wGrassRate
|
||||
ld a, [wLinkState]
|
||||
and a
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
SaveTrainerName:
|
||||
SaveTrainerName::
|
||||
ld hl, TrainerNamePointers
|
||||
ld a, [wTrainerClass]
|
||||
dec a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue