mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Replace some hardcoded data sizes
This commit is contained in:
parent
f8a9c37a00
commit
8a6d46f3d9
34 changed files with 120 additions and 82 deletions
|
|
@ -326,11 +326,14 @@ DisplayNamingScreen: ; 6596 (1:6596)
|
|||
LoadEDTile: ; 675b (1:675b)
|
||||
ld de, ED_Tile
|
||||
ld hl, vFont + $700
|
||||
ld bc, $1
|
||||
ld bc, (ED_TileEnd - ED_Tile) / $8
|
||||
; to fix the graphical bug on poor emulators
|
||||
;lb bc, BANK(ED_Tile), (ED_TileEnd - ED_Tile) / $8
|
||||
jp CopyVideoDataDouble
|
||||
|
||||
ED_Tile: ; 6767 (1:6767)
|
||||
INCBIN "gfx/ED_tile.1bpp"
|
||||
ED_TileEnd:
|
||||
|
||||
PrintAlphabet: ; 676f (1:676f)
|
||||
xor a
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ RedrawPartyMenu_: ; 12ce3 (4:6ce3)
|
|||
ld l,a
|
||||
ld de,wcd6d
|
||||
ld a,BANK(EvosMovesPointerTable)
|
||||
ld bc,13
|
||||
ld bc,Mon133_EvosEnd - Mon133_EvosMoves
|
||||
call FarCopyData
|
||||
ld hl,wcd6d
|
||||
ld de,.notAbleToEvolveText
|
||||
|
|
|
|||
|
|
@ -611,7 +611,7 @@ DrawTrainerInfo: ; 1349a (4:749a)
|
|||
jp PrintNumber
|
||||
|
||||
TrainerInfo_FarCopyData: ; 1357f (4:757f)
|
||||
ld a,$0b
|
||||
ld a,BANK(TrainerInfoTextBoxTileGraphics)
|
||||
jp FarCopyData2
|
||||
|
||||
TrainerInfo_NameMoneyTimeText: ; 13584 (4:7584)
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ StatusScreen: ; 12953 (4:6953)
|
|||
call CopyVideoDataDouble ; ─┘
|
||||
ld de, PTile
|
||||
ld hl, vChars2 + $720
|
||||
lb bc, BANK(PTile), $01
|
||||
lb bc, BANK(PTile), (PTileEnd - PTile) / $8
|
||||
call CopyVideoDataDouble ; P (for PP), inline
|
||||
ld a, [hTilesetType]
|
||||
push af
|
||||
|
|
@ -242,6 +242,7 @@ DrawLineBox: ; 0x12ac7
|
|||
|
||||
PTile: ; 12adc (4:6adc) ; This is a single 1bpp "P" tile
|
||||
INCBIN "gfx/p_tile.1bpp"
|
||||
PTileEnd:
|
||||
|
||||
PrintStatsBox: ; 12ae4 (4:6ae4)
|
||||
ld a, d
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue