mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Lowercase v for VRAM addresses
This commit is contained in:
parent
7beb497d3a
commit
333524f0be
@ -2,7 +2,7 @@ emote: MACRO
|
|||||||
; graphics pointer, length, starting tile
|
; graphics pointer, length, starting tile
|
||||||
dw \1
|
dw \1
|
||||||
db \2 tiles, BANK(\1)
|
db \2 tiles, BANK(\1)
|
||||||
dw VTiles1 tile \3
|
dw vTiles1 tile \3
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
Emotes: ; 144d
|
Emotes: ; 144d
|
||||||
|
@ -92,7 +92,7 @@ LoadTrainerBattlePokeballTiles:
|
|||||||
; Load the tiles used in the Pokeball Graphic that fills the screen
|
; Load the tiles used in the Pokeball Graphic that fills the screen
|
||||||
; at the start of every Trainer battle.
|
; at the start of every Trainer battle.
|
||||||
ld de, TrainerBattlePokeballTiles
|
ld de, TrainerBattlePokeballTiles
|
||||||
ld hl, VTiles1 tile $7e
|
ld hl, vTiles1 tile $7e
|
||||||
ld b, BANK(TrainerBattlePokeballTiles)
|
ld b, BANK(TrainerBattlePokeballTiles)
|
||||||
ld c, 2
|
ld c, 2
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
@ -103,7 +103,7 @@ LoadTrainerBattlePokeballTiles:
|
|||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
|
|
||||||
ld de, TrainerBattlePokeballTiles
|
ld de, TrainerBattlePokeballTiles
|
||||||
ld hl, VTiles4 tile $7e
|
ld hl, vTiles4 tile $7e
|
||||||
ld b, BANK(TrainerBattlePokeballTiles)
|
ld b, BANK(TrainerBattlePokeballTiles)
|
||||||
ld c, 2
|
ld c, 2
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
|
@ -5309,13 +5309,13 @@ BattleMenuPKMN_Loop:
|
|||||||
Battle_StatsScreen: ; 3e308
|
Battle_StatsScreen: ; 3e308
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
|
|
||||||
ld hl, VTiles2 tile $31
|
ld hl, vTiles2 tile $31
|
||||||
ld de, VTiles0
|
ld de, vTiles0
|
||||||
ld bc, $11 tiles
|
ld bc, $11 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
|
|
||||||
ld hl, VTiles2
|
ld hl, vTiles2
|
||||||
ld de, VTiles0 tile $11
|
ld de, vTiles0 tile $11
|
||||||
ld bc, $31 tiles
|
ld bc, $31 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
|
|
||||||
@ -5330,13 +5330,13 @@ Battle_StatsScreen: ; 3e308
|
|||||||
|
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
|
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
ld de, VTiles2 tile $31
|
ld de, vTiles2 tile $31
|
||||||
ld bc, $11 tiles
|
ld bc, $11 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
|
|
||||||
ld hl, VTiles0 tile $11
|
ld hl, vTiles0 tile $11
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
ld bc, $31 tiles
|
ld bc, $31 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
|
|
||||||
@ -6779,7 +6779,7 @@ BattleWinSlideInEnemyTrainerFrontpic: ; 3ebd8
|
|||||||
call FinishBattleAnim
|
call FinishBattleAnim
|
||||||
ld a, [OtherTrainerClass]
|
ld a, [OtherTrainerClass]
|
||||||
ld [TrainerClass], a
|
ld [TrainerClass], a
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
callfar GetTrainerPic
|
callfar GetTrainerPic
|
||||||
hlcoord 19, 0
|
hlcoord 19, 0
|
||||||
ld c, 0
|
ld c, 0
|
||||||
@ -7155,15 +7155,15 @@ _LoadHPBar: ; 3eda6
|
|||||||
|
|
||||||
LoadHPExpBarGFX: ; unreferenced
|
LoadHPExpBarGFX: ; unreferenced
|
||||||
ld de, EnemyHPBarBorderGFX
|
ld de, EnemyHPBarBorderGFX
|
||||||
ld hl, VTiles2 tile $6c
|
ld hl, vTiles2 tile $6c
|
||||||
lb bc, BANK(EnemyHPBarBorderGFX), 4
|
lb bc, BANK(EnemyHPBarBorderGFX), 4
|
||||||
call Get1bpp
|
call Get1bpp
|
||||||
ld de, HPExpBarBorderGFX
|
ld de, HPExpBarBorderGFX
|
||||||
ld hl, VTiles2 tile $73
|
ld hl, vTiles2 tile $73
|
||||||
lb bc, BANK(HPExpBarBorderGFX), 6
|
lb bc, BANK(HPExpBarBorderGFX), 6
|
||||||
call Get1bpp
|
call Get1bpp
|
||||||
ld de, ExpBarGFX
|
ld de, ExpBarGFX
|
||||||
ld hl, VTiles2 tile $55
|
ld hl, vTiles2 tile $55
|
||||||
lb bc, BANK(ExpBarGFX), 8
|
lb bc, BANK(ExpBarGFX), 8
|
||||||
jp Get2bpp
|
jp Get2bpp
|
||||||
; 3edd1
|
; 3edd1
|
||||||
@ -8286,7 +8286,7 @@ DropPlayerSub: ; 3f447
|
|||||||
ld [CurPartySpecies], a
|
ld [CurPartySpecies], a
|
||||||
ld hl, BattleMonDVs
|
ld hl, BattleMonDVs
|
||||||
predef GetUnownLetter
|
predef GetUnownLetter
|
||||||
ld de, VTiles2 tile $31
|
ld de, vTiles2 tile $31
|
||||||
predef GetMonBackpic
|
predef GetMonBackpic
|
||||||
pop af
|
pop af
|
||||||
ld [CurPartySpecies], a
|
ld [CurPartySpecies], a
|
||||||
@ -8325,7 +8325,7 @@ DropEnemySub: ; 3f486
|
|||||||
call GetBaseData
|
call GetBaseData
|
||||||
ld hl, EnemyMonDVs
|
ld hl, EnemyMonDVs
|
||||||
predef GetUnownLetter
|
predef GetUnownLetter
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
predef GetAnimatedFrontpicPredef
|
predef GetAnimatedFrontpicPredef
|
||||||
pop af
|
pop af
|
||||||
ld [CurPartySpecies], a
|
ld [CurPartySpecies], a
|
||||||
@ -8382,7 +8382,7 @@ BattleIntro: ; 3f4dd
|
|||||||
call DisableSpriteUpdates
|
call DisableSpriteUpdates
|
||||||
farcall ClearBattleRAM
|
farcall ClearBattleRAM
|
||||||
call InitEnemy
|
call InitEnemy
|
||||||
call BackUpVBGMap2
|
call BackUpBGMap2
|
||||||
ld b, SCGB_BATTLE_GRAYSCALE
|
ld b, SCGB_BATTLE_GRAYSCALE
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
ld hl, rLCDC
|
ld hl, rLCDC
|
||||||
@ -8428,13 +8428,13 @@ InitEnemy: ; 3f55e
|
|||||||
jp InitEnemyWildmon ; wild
|
jp InitEnemyWildmon ; wild
|
||||||
; 3f568
|
; 3f568
|
||||||
|
|
||||||
BackUpVBGMap2: ; 3f568
|
BackUpBGMap2: ; 3f568
|
||||||
ld a, [rSVBK]
|
ld a, [rSVBK]
|
||||||
push af
|
push af
|
||||||
ld a, $6 ; BANK(wDecompressScratch)
|
ld a, $6 ; BANK(wDecompressScratch)
|
||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
ld hl, wDecompressScratch
|
ld hl, wDecompressScratch
|
||||||
ld bc, $40 tiles ; VBGMap3 - VBGMap2
|
ld bc, $40 tiles ; vBGMap3 - vBGMap2
|
||||||
ld a, $2
|
ld a, $2
|
||||||
call ByteFill
|
call ByteFill
|
||||||
ld a, [rVBK]
|
ld a, [rVBK]
|
||||||
@ -8442,8 +8442,8 @@ BackUpVBGMap2: ; 3f568
|
|||||||
ld a, $1
|
ld a, $1
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld de, wDecompressScratch
|
ld de, wDecompressScratch
|
||||||
hlbgcoord 0, 0 ; VBGMap2
|
hlbgcoord 0, 0 ; vBGMap2
|
||||||
lb bc, BANK(BackUpVBGMap2), $40
|
lb bc, BANK(BackUpBGMap2), $40
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
pop af
|
pop af
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
@ -8467,7 +8467,7 @@ InitEnemyTrainer: ; 3f594
|
|||||||
ld [OTPartyMon1Item], a
|
ld [OTPartyMon1Item], a
|
||||||
.ok
|
.ok
|
||||||
|
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
callfar GetTrainerPic
|
callfar GetTrainerPic
|
||||||
xor a
|
xor a
|
||||||
ld [hGraphicStartTile], a
|
ld [hGraphicStartTile], a
|
||||||
@ -8531,7 +8531,7 @@ InitEnemyWildmon: ; 3f607
|
|||||||
ld a, [UnownLetter]
|
ld a, [UnownLetter]
|
||||||
ld [wFirstUnownSeen], a
|
ld [wFirstUnownSeen], a
|
||||||
.skip_unown
|
.skip_unown
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
predef GetAnimatedFrontpicPredef
|
predef GetAnimatedFrontpicPredef
|
||||||
xor a
|
xor a
|
||||||
ld [TrainerClass], a
|
ld [TrainerClass], a
|
||||||
@ -9336,7 +9336,7 @@ InitBattleDisplay: ; 3fb6c
|
|||||||
; 3fbff
|
; 3fbff
|
||||||
|
|
||||||
GetTrainerBackpic: ; 3fbff
|
GetTrainerBackpic: ; 3fbff
|
||||||
; Load the player character's backpic (6x6) into VRAM starting from VTiles2 tile $31.
|
; Load the player character's backpic (6x6) into VRAM starting from vTiles2 tile $31.
|
||||||
|
|
||||||
; Special exception for Dude.
|
; Special exception for Dude.
|
||||||
ld b, BANK(DudeBackpic)
|
ld b, BANK(DudeBackpic)
|
||||||
@ -9363,7 +9363,7 @@ GetTrainerBackpic: ; 3fbff
|
|||||||
ld hl, ChrisBackpic
|
ld hl, ChrisBackpic
|
||||||
|
|
||||||
.Decompress:
|
.Decompress:
|
||||||
ld de, VTiles2 tile $31
|
ld de, vTiles2 tile $31
|
||||||
ld c, $31
|
ld c, $31
|
||||||
predef DecompressPredef
|
predef DecompressPredef
|
||||||
ret
|
ret
|
||||||
@ -9374,8 +9374,8 @@ CopyBackpic: ; 3fc30
|
|||||||
push af
|
push af
|
||||||
ld a, $6
|
ld a, $6
|
||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
ld de, VTiles2 tile $31
|
ld de, vTiles2 tile $31
|
||||||
ld a, [hROMBank]
|
ld a, [hROMBank]
|
||||||
ld b, a
|
ld b, a
|
||||||
ld c, $31
|
ld c, $31
|
||||||
|
@ -191,7 +191,7 @@ ClearBattleRAM: ; 2ef18
|
|||||||
call ClearWindowData
|
call ClearWindowData
|
||||||
|
|
||||||
ld hl, hBGMapAddress
|
ld hl, hBGMapAddress
|
||||||
xor a ; LOW(VBGMap0)
|
xor a ; LOW(vBGMap0)
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
ld [hl], HIGH(VBGMap0)
|
ld [hl], HIGH(vBGMap0)
|
||||||
ret
|
ret
|
||||||
|
@ -232,7 +232,7 @@ LoadTrainerHudOAM: ; 2c143
|
|||||||
|
|
||||||
LoadBallIconGFX: ; 2c165
|
LoadBallIconGFX: ; 2c165
|
||||||
ld de, .gfx
|
ld de, .gfx
|
||||||
ld hl, VTiles0 tile $31
|
ld hl, vTiles0 tile $31
|
||||||
lb bc, BANK(LoadBallIconGFX), 4
|
lb bc, BANK(LoadBallIconGFX), 4
|
||||||
call Get2bpp_2
|
call Get2bpp_2
|
||||||
ret
|
ret
|
||||||
|
@ -236,16 +236,16 @@ Functioncc220: ; cc220
|
|||||||
; Appears to be unused.
|
; Appears to be unused.
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
ld a, LOW(VBGMap0 tile $28)
|
ld a, LOW(vBGMap0 tile $28)
|
||||||
ld [hBGMapAddress], a
|
ld [hBGMapAddress], a
|
||||||
ld a, HIGH(VBGMap0 tile $28)
|
ld a, HIGH(vBGMap0 tile $28)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
call WaitBGMap2
|
call WaitBGMap2
|
||||||
ld a, $60
|
ld a, $60
|
||||||
ld [hWY], a
|
ld [hWY], a
|
||||||
xor a ; LOW(VBGMap0)
|
xor a ; LOW(vBGMap0)
|
||||||
ld [hBGMapAddress], a
|
ld [hBGMapAddress], a
|
||||||
ld a, HIGH(VBGMap0)
|
ld a, HIGH(vBGMap0)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
call BattleAnimDelayFrame
|
call BattleAnimDelayFrame
|
||||||
ret
|
ret
|
||||||
@ -693,7 +693,7 @@ BattleAnimCmd_5GFX: ; cc485 (33:4485)
|
|||||||
ld [wBattleAnimTemp0], a
|
ld [wBattleAnimTemp0], a
|
||||||
.loop
|
.loop
|
||||||
ld a, [wBattleAnimTemp0]
|
ld a, [wBattleAnimTemp0]
|
||||||
cp (VTiles1 - VTiles0) / $10 - $31
|
cp (vTiles1 - vTiles0) / $10 - $31
|
||||||
ret nc
|
ret nc
|
||||||
call GetBattleAnimByte
|
call GetBattleAnimByte
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
@ -706,7 +706,7 @@ BattleAnimCmd_5GFX: ; cc485 (33:4485)
|
|||||||
rept 4
|
rept 4
|
||||||
add hl, hl
|
add hl, hl
|
||||||
endr
|
endr
|
||||||
ld de, VTiles0 tile $31
|
ld de, vTiles0 tile $31
|
||||||
add hl, de
|
add hl, de
|
||||||
ld a, [BattleAnimByte]
|
ld a, [BattleAnimByte]
|
||||||
call LoadBattleAnimObj
|
call LoadBattleAnimObj
|
||||||
@ -816,13 +816,13 @@ BattleAnimCmd_EnemyFeetObj: ; cc52c (33:452c)
|
|||||||
ld a, $49
|
ld a, $49
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
|
|
||||||
ld hl, VTiles0 tile $73
|
ld hl, vTiles0 tile $73
|
||||||
ld de, VTiles2 tile $06
|
ld de, vTiles2 tile $06
|
||||||
ld a, $70
|
ld a, $70
|
||||||
ld [wBattleAnimTemp0], a
|
ld [wBattleAnimTemp0], a
|
||||||
ld a, $7
|
ld a, $7
|
||||||
call .LoadFootprint
|
call .LoadFootprint
|
||||||
ld de, VTiles2 tile $31
|
ld de, vTiles2 tile $31
|
||||||
ld a, $60
|
ld a, $60
|
||||||
ld [wBattleAnimTemp0], a
|
ld [wBattleAnimTemp0], a
|
||||||
ld a, $6
|
ld a, $6
|
||||||
@ -871,13 +871,13 @@ BattleAnimCmd_PlayerHeadObj: ; cc57e (33:457e)
|
|||||||
ld a, $43
|
ld a, $43
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
|
|
||||||
ld hl, VTiles0 tile $66
|
ld hl, vTiles0 tile $66
|
||||||
ld de, VTiles2 tile $05
|
ld de, vTiles2 tile $05
|
||||||
ld a, $70
|
ld a, $70
|
||||||
ld [wBattleAnimTemp0], a
|
ld [wBattleAnimTemp0], a
|
||||||
ld a, $7
|
ld a, $7
|
||||||
call .LoadHead
|
call .LoadHead
|
||||||
ld de, VTiles2 tile $31
|
ld de, vTiles2 tile $31
|
||||||
ld a, $60
|
ld a, $60
|
||||||
ld [wBattleAnimTemp0], a
|
ld [wBattleAnimTemp0], a
|
||||||
ld a, $6
|
ld a, $6
|
||||||
@ -930,7 +930,7 @@ BattleAnimCmd_Transform: ; cc5dc (33:45dc)
|
|||||||
ld [CurPartySpecies], a ; CurPartySpecies
|
ld [CurPartySpecies], a ; CurPartySpecies
|
||||||
ld hl, BattleMonDVs ; BattleMonDVs
|
ld hl, BattleMonDVs ; BattleMonDVs
|
||||||
predef GetUnownLetter
|
predef GetUnownLetter
|
||||||
ld de, VTiles0 tile $00
|
ld de, vTiles0 tile $00
|
||||||
predef GetMonFrontpic
|
predef GetMonFrontpic
|
||||||
jr .done
|
jr .done
|
||||||
|
|
||||||
@ -939,7 +939,7 @@ BattleAnimCmd_Transform: ; cc5dc (33:45dc)
|
|||||||
ld [CurPartySpecies], a ; CurPartySpecies
|
ld [CurPartySpecies], a ; CurPartySpecies
|
||||||
ld hl, EnemyMonDVs ; EnemyMonDVs
|
ld hl, EnemyMonDVs ; EnemyMonDVs
|
||||||
predef GetUnownLetter
|
predef GetUnownLetter
|
||||||
ld de, VTiles0 tile $00
|
ld de, vTiles0 tile $00
|
||||||
predef GetMonBackpic
|
predef GetMonBackpic
|
||||||
|
|
||||||
.done
|
.done
|
||||||
@ -951,19 +951,19 @@ BattleAnimCmd_Transform: ; cc5dc (33:45dc)
|
|||||||
|
|
||||||
BattleAnimCmd_UpdateActorPic: ; cc622 (33:4622)
|
BattleAnimCmd_UpdateActorPic: ; cc622 (33:4622)
|
||||||
|
|
||||||
ld de, VTiles0 tile $00
|
ld de, vTiles0 tile $00
|
||||||
ld a, [hBattleTurn]
|
ld a, [hBattleTurn]
|
||||||
and a
|
and a
|
||||||
jr z, .player
|
jr z, .player
|
||||||
|
|
||||||
ld hl, VTiles2 tile $00
|
ld hl, vTiles2 tile $00
|
||||||
ld b, 0
|
ld b, 0
|
||||||
ld c, $31
|
ld c, $31
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.player
|
.player
|
||||||
ld hl, VTiles2 tile $31
|
ld hl, vTiles2 tile $31
|
||||||
ld b, 0
|
ld b, 0
|
||||||
ld c, $24
|
ld c, $24
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
@ -1007,7 +1007,7 @@ GetSubstitutePic: ; cc64c
|
|||||||
ld de, sScratch + (3 * 7 + 6) tiles
|
ld de, sScratch + (3 * 7 + 6) tiles
|
||||||
call .CopyTile
|
call .CopyTile
|
||||||
|
|
||||||
ld hl, VTiles2 tile $00
|
ld hl, vTiles2 tile $00
|
||||||
ld de, sScratch
|
ld de, sScratch
|
||||||
lb bc, BANK(GetSubstitutePic), 7 * 7
|
lb bc, BANK(GetSubstitutePic), 7 * 7
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
@ -1027,7 +1027,7 @@ GetSubstitutePic: ; cc64c
|
|||||||
ld de, sScratch + (3 * 6 + 5) tiles
|
ld de, sScratch + (3 * 6 + 5) tiles
|
||||||
call .CopyTile
|
call .CopyTile
|
||||||
|
|
||||||
ld hl, VTiles2 tile $31
|
ld hl, vTiles2 tile $31
|
||||||
ld de, sScratch
|
ld de, sScratch
|
||||||
lb bc, BANK(GetSubstitutePic), 6 * 6
|
lb bc, BANK(GetSubstitutePic), 6 * 6
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
@ -1075,7 +1075,7 @@ GetMinimizePic: ; cc6e7 (33:46e7)
|
|||||||
|
|
||||||
ld de, sScratch + $1a tiles
|
ld de, sScratch + $1a tiles
|
||||||
call CopyMinimizePic
|
call CopyMinimizePic
|
||||||
ld hl, VTiles2 tile $00
|
ld hl, vTiles2 tile $00
|
||||||
ld de, sScratch
|
ld de, sScratch
|
||||||
lb bc, BANK(GetMinimizePic), $31
|
lb bc, BANK(GetMinimizePic), $31
|
||||||
ret
|
ret
|
||||||
@ -1083,7 +1083,7 @@ GetMinimizePic: ; cc6e7 (33:46e7)
|
|||||||
.player
|
.player
|
||||||
ld de, sScratch + $160
|
ld de, sScratch + $160
|
||||||
call CopyMinimizePic
|
call CopyMinimizePic
|
||||||
ld hl, VTiles2 tile $31
|
ld hl, vTiles2 tile $31
|
||||||
ld de, sScratch
|
ld de, sScratch
|
||||||
lb bc, BANK(GetMinimizePic), $24
|
lb bc, BANK(GetMinimizePic), $24
|
||||||
ret
|
ret
|
||||||
@ -1108,7 +1108,7 @@ BattleAnimCmd_Minimize: ; cc735 (33:4735)
|
|||||||
xor a
|
xor a
|
||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
call GetMinimizePic
|
call GetMinimizePic
|
||||||
ld hl, VTiles0 tile $00
|
ld hl, vTiles0 tile $00
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
call CloseSRAM
|
call CloseSRAM
|
||||||
pop af
|
pop af
|
||||||
@ -1157,14 +1157,14 @@ BattleAnimCmd_BeatUp: ; cc776 (33:4776)
|
|||||||
|
|
||||||
ld hl, BattleMonDVs
|
ld hl, BattleMonDVs
|
||||||
predef GetUnownLetter
|
predef GetUnownLetter
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
predef GetMonFrontpic
|
predef GetMonFrontpic
|
||||||
jr .done
|
jr .done
|
||||||
|
|
||||||
.player
|
.player
|
||||||
ld hl, EnemyMonDVs
|
ld hl, EnemyMonDVs
|
||||||
predef GetUnownLetter
|
predef GetUnownLetter
|
||||||
ld de, VTiles2 tile $31
|
ld de, vTiles2 tile $31
|
||||||
predef GetMonBackpic
|
predef GetMonBackpic
|
||||||
|
|
||||||
.done
|
.done
|
||||||
|
@ -1107,7 +1107,7 @@ PCMonInfo: ; e2ac6 (38:6ac6)
|
|||||||
ld hl, TempMonDVs
|
ld hl, TempMonDVs
|
||||||
predef GetUnownLetter
|
predef GetUnownLetter
|
||||||
call GetBaseData
|
call GetBaseData
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
predef GetMonFrontpic
|
predef GetMonFrontpic
|
||||||
xor a
|
xor a
|
||||||
ld [wBillsPC_MonHasMail], a
|
ld [wBillsPC_MonHasMail], a
|
||||||
@ -2261,18 +2261,18 @@ BillsPC_Jumptable: ; e33df (38:73df)
|
|||||||
|
|
||||||
BillsPC_InitGFX: ; e33e8 (38:73e8)
|
BillsPC_InitGFX: ; e33e8 (38:73e8)
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
ld hl, VTiles2 tile $00
|
ld hl, vTiles2 tile $00
|
||||||
ld bc, $31 tiles
|
ld bc, $31 tiles
|
||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
call LoadStandardFont
|
call LoadStandardFont
|
||||||
call LoadFontsBattleExtra
|
call LoadFontsBattleExtra
|
||||||
ld hl, PCMailGFX
|
ld hl, PCMailGFX
|
||||||
ld de, VTiles2 tile $5c
|
ld de, vTiles2 tile $5c
|
||||||
ld bc, 4 tiles
|
ld bc, 4 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld hl, PCSelectLZ
|
ld hl, PCSelectLZ
|
||||||
ld de, VTiles0 tile $00
|
ld de, vTiles0 tile $00
|
||||||
call Decompress
|
call Decompress
|
||||||
ld a, 6
|
ld a, 6
|
||||||
call SkipMusic
|
call SkipMusic
|
||||||
|
@ -704,22 +704,22 @@ EggHatch_AnimationSequence: ; 1728f (5:728f)
|
|||||||
farcall BlankScreen
|
farcall BlankScreen
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
ld hl, EggHatchGFX
|
ld hl, EggHatchGFX
|
||||||
ld de, VTiles0 tile $00
|
ld de, vTiles0 tile $00
|
||||||
ld bc, $20
|
ld bc, $20
|
||||||
ld a, BANK(EggHatchGFX)
|
ld a, BANK(EggHatchGFX)
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
farcall ClearSpriteAnims
|
farcall ClearSpriteAnims
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
ld a, [wJumptableIndex]
|
ld a, [wJumptableIndex]
|
||||||
call GetHatchlingFrontpic
|
call GetHatchlingFrontpic
|
||||||
ld de, VTiles2 tile $31
|
ld de, vTiles2 tile $31
|
||||||
ld a, EGG
|
ld a, EGG
|
||||||
call GetEggFrontpic
|
call GetEggFrontpic
|
||||||
ld de, MUSIC_EVOLUTION
|
ld de, MUSIC_EVOLUTION
|
||||||
call PlayMusic
|
call PlayMusic
|
||||||
call EnableLCD
|
call EnableLCD
|
||||||
hlcoord 7, 4
|
hlcoord 7, 4
|
||||||
ld b, HIGH(VBGMap0)
|
ld b, HIGH(vBGMap0)
|
||||||
ld c, $31 ; Egg tiles start here
|
ld c, $31 ; Egg tiles start here
|
||||||
ld a, EGG
|
ld a, EGG
|
||||||
call Hatch_UpdateFrontpicBGMapCenter
|
call Hatch_UpdateFrontpicBGMapCenter
|
||||||
@ -768,7 +768,7 @@ EggHatch_AnimationSequence: ; 1728f (5:728f)
|
|||||||
call ClearSprites
|
call ClearSprites
|
||||||
call Hatch_InitShellFragments
|
call Hatch_InitShellFragments
|
||||||
hlcoord 6, 3
|
hlcoord 6, 3
|
||||||
ld b, HIGH(VBGMap0)
|
ld b, HIGH(vBGMap0)
|
||||||
ld c, $00 ; Hatchling tiles start here
|
ld c, $00 ; Hatchling tiles start here
|
||||||
ld a, [wJumptableIndex]
|
ld a, [wJumptableIndex]
|
||||||
call Hatch_UpdateFrontpicBGMapCenter
|
call Hatch_UpdateFrontpicBGMapCenter
|
||||||
|
@ -16,20 +16,20 @@ _CardFlip: ; e00ee (38:40ee)
|
|||||||
call LoadFontsExtra
|
call LoadFontsExtra
|
||||||
|
|
||||||
ld hl, CardFlipLZ01
|
ld hl, CardFlipLZ01
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
call Decompress
|
call Decompress
|
||||||
ld hl, CardFlipLZ02
|
ld hl, CardFlipLZ02
|
||||||
ld de, VTiles2 tile $3e
|
ld de, vTiles2 tile $3e
|
||||||
call Decompress
|
call Decompress
|
||||||
ld hl, CardFlipLZ03
|
ld hl, CardFlipLZ03
|
||||||
ld de, VTiles0 tile $00
|
ld de, vTiles0 tile $00
|
||||||
call Decompress
|
call Decompress
|
||||||
ld hl, CardFlipOffButtonGFX
|
ld hl, CardFlipOffButtonGFX
|
||||||
ld de, VTiles1 tile $6f
|
ld de, vTiles1 tile $6f
|
||||||
ld bc, 1 tiles
|
ld bc, 1 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld hl, CardFlipOnButtonGFX
|
ld hl, CardFlipOnButtonGFX
|
||||||
ld de, VTiles1 tile $75
|
ld de, vTiles1 tile $75
|
||||||
ld bc, 1 tiles
|
ld bc, 1 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
|
|
||||||
@ -619,11 +619,11 @@ CardFlip_CopyOAM: ; e0509
|
|||||||
; e0521
|
; e0521
|
||||||
|
|
||||||
CardFlip_ShiftDigitsLeftTwoPixels: ; e0521 (38:4521)
|
CardFlip_ShiftDigitsLeftTwoPixels: ; e0521 (38:4521)
|
||||||
ld de, VTiles1 tile ("0" & $7f)
|
ld de, vTiles1 tile ("0" & $7f)
|
||||||
ld hl, VTiles1 tile ("0" & $7f) + 2
|
ld hl, vTiles1 tile ("0" & $7f) + 2
|
||||||
ld bc, 10 tiles - 2
|
ld bc, 10 tiles - 2
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld hl, VTiles1 tile $7f + 1 tiles - 2
|
ld hl, vTiles1 tile $7f + 1 tiles - 2
|
||||||
xor a
|
xor a
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
|
@ -902,7 +902,7 @@ InitCGBPals::
|
|||||||
; CGB only
|
; CGB only
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
ld bc, $200 tiles
|
ld bc, $200 tiles
|
||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
@ -1069,7 +1069,7 @@ SGBBorder_PushBGPals:
|
|||||||
ld a, %11100100
|
ld a, %11100100
|
||||||
ld [rBGP], a
|
ld [rBGP], a
|
||||||
ld hl, PredefPals
|
ld hl, PredefPals
|
||||||
ld de, VTiles1
|
ld de, vTiles1
|
||||||
ld bc, $100 tiles
|
ld bc, $100 tiles
|
||||||
call CopyData
|
call CopyData
|
||||||
call DrawDefaultTiles
|
call DrawDefaultTiles
|
||||||
@ -1085,7 +1085,7 @@ SGBBorder_MorePalPushing:
|
|||||||
call DisableLCD
|
call DisableLCD
|
||||||
ld a, $e4
|
ld a, $e4
|
||||||
ld [rBGP], a
|
ld [rBGP], a
|
||||||
ld de, VTiles1
|
ld de, vTiles1
|
||||||
ld bc, 20 tiles
|
ld bc, 20 tiles
|
||||||
call CopyData
|
call CopyData
|
||||||
ld b, 18
|
ld b, 18
|
||||||
@ -1119,7 +1119,7 @@ SGBBorder_YetMorePalPushing:
|
|||||||
call DisableLCD
|
call DisableLCD
|
||||||
ld a, %11100100
|
ld a, %11100100
|
||||||
ld [rBGP], a
|
ld [rBGP], a
|
||||||
ld de, VTiles1
|
ld de, vTiles1
|
||||||
ld b, $80
|
ld b, $80
|
||||||
.loop
|
.loop
|
||||||
push bc
|
push bc
|
||||||
|
@ -33,17 +33,17 @@ Credits:: ; 109847
|
|||||||
jr nz, .load_loop
|
jr nz, .load_loop
|
||||||
|
|
||||||
ld de, CreditsBorderGFX
|
ld de, CreditsBorderGFX
|
||||||
ld hl, VTiles2 tile $20
|
ld hl, vTiles2 tile $20
|
||||||
lb bc, BANK(CreditsBorderGFX), $09
|
lb bc, BANK(CreditsBorderGFX), $09
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
|
|
||||||
ld de, CopyrightGFX
|
ld de, CopyrightGFX
|
||||||
ld hl, VTiles2 tile $60
|
ld hl, vTiles2 tile $60
|
||||||
lb bc, BANK(CopyrightGFX), $1d
|
lb bc, BANK(CopyrightGFX), $1d
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
|
|
||||||
ld de, TheEndGFX
|
ld de, TheEndGFX
|
||||||
ld hl, VTiles2 tile $40
|
ld hl, vTiles2 tile $40
|
||||||
lb bc, BANK(TheEndGFX), $10
|
lb bc, BANK(TheEndGFX), $10
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ Credits:: ; 109847
|
|||||||
call Credits_LoadBorderGFX
|
call Credits_LoadBorderGFX
|
||||||
ld e, l
|
ld e, l
|
||||||
ld d, h
|
ld d, h
|
||||||
ld hl, VTiles2
|
ld hl, vTiles2
|
||||||
lb bc, BANK(CreditsMonsGFX), 16
|
lb bc, BANK(CreditsMonsGFX), 16
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
|
|
||||||
@ -193,9 +193,9 @@ Credits_UpdateGFXRequestPath: ; 109964 (42:5964)
|
|||||||
ld [Requested2bppSource], a
|
ld [Requested2bppSource], a
|
||||||
ld a, h
|
ld a, h
|
||||||
ld [Requested2bppSource + 1], a
|
ld [Requested2bppSource + 1], a
|
||||||
ld a, LOW(VTiles2)
|
ld a, LOW(vTiles2)
|
||||||
ld [Requested2bppDest], a
|
ld [Requested2bppDest], a
|
||||||
ld a, HIGH(VTiles2)
|
ld a, HIGH(vTiles2)
|
||||||
ld [Requested2bppDest + 1], a
|
ld [Requested2bppDest + 1], a
|
||||||
jr Credits_RequestGFX
|
jr Credits_RequestGFX
|
||||||
|
|
||||||
|
@ -3,9 +3,9 @@ Copyright_GFPresents: ; e4579
|
|||||||
call PlayMusic
|
call PlayMusic
|
||||||
call ClearBGPalettes
|
call ClearBGPalettes
|
||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
ld a, HIGH(VBGMap0)
|
ld a, HIGH(vBGMap0)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
xor a ; LOW(VBGMap0)
|
xor a ; LOW(vBGMap0)
|
||||||
ld [hBGMapAddress], a
|
ld [hBGMapAddress], a
|
||||||
ld [hJoyDown], a
|
ld [hJoyDown], a
|
||||||
ld [hSCX], a
|
ld [hSCX], a
|
||||||
@ -51,7 +51,7 @@ Copyright_GFPresents: ; e4579
|
|||||||
|
|
||||||
.GetGFLogoGFX: ; e45e8
|
.GetGFLogoGFX: ; e45e8
|
||||||
ld de, GameFreakLogo
|
ld de, GameFreakLogo
|
||||||
ld hl, VTiles2
|
ld hl, vTiles2
|
||||||
lb bc, BANK(GameFreakLogo), $1c
|
lb bc, BANK(GameFreakLogo), $1c
|
||||||
call Get1bpp
|
call Get1bpp
|
||||||
|
|
||||||
@ -65,12 +65,12 @@ Copyright_GFPresents: ; e4579
|
|||||||
ld a, BANK(IntroLogoGFX)
|
ld a, BANK(IntroLogoGFX)
|
||||||
call FarDecompress
|
call FarDecompress
|
||||||
|
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
ld de, wDecompressScratch
|
ld de, wDecompressScratch
|
||||||
lb bc, 1, 8 tiles
|
lb bc, 1, 8 tiles
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
|
|
||||||
ld hl, VTiles1
|
ld hl, vTiles1
|
||||||
ld de, wDecompressScratch + $80 tiles
|
ld de, wDecompressScratch + $80 tiles
|
||||||
lb bc, 1, 8 tiles
|
lb bc, 1, 8 tiles
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
@ -470,10 +470,10 @@ IntroScene1: ; e495b (39:495b)
|
|||||||
ld a, $0
|
ld a, $0
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, IntroUnownsGFX
|
ld hl, IntroUnownsGFX
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
call Intro_DecompressRequest2bpp_128Tiles
|
call Intro_DecompressRequest2bpp_128Tiles
|
||||||
ld hl, IntroPulseGFX
|
ld hl, IntroPulseGFX
|
||||||
ld de, VTiles0 tile $00
|
ld de, vTiles0 tile $00
|
||||||
call Intro_DecompressRequest2bpp_128Tiles
|
call Intro_DecompressRequest2bpp_128Tiles
|
||||||
ld hl, IntroTilemap002
|
ld hl, IntroTilemap002
|
||||||
debgcoord 0, 0
|
debgcoord 0, 0
|
||||||
@ -546,7 +546,7 @@ IntroScene3: ; e49fd (39:49fd)
|
|||||||
ld a, $0
|
ld a, $0
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, IntroBackgroundGFX
|
ld hl, IntroBackgroundGFX
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
call Intro_DecompressRequest2bpp_128Tiles
|
call Intro_DecompressRequest2bpp_128Tiles
|
||||||
ld hl, IntroTilemap004
|
ld hl, IntroTilemap004
|
||||||
debgcoord 0, 0
|
debgcoord 0, 0
|
||||||
@ -609,10 +609,10 @@ IntroScene5: ; e4a7a (39:4a7a)
|
|||||||
ld a, $0
|
ld a, $0
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, IntroUnownsGFX
|
ld hl, IntroUnownsGFX
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
call Intro_DecompressRequest2bpp_128Tiles
|
call Intro_DecompressRequest2bpp_128Tiles
|
||||||
ld hl, IntroPulseGFX
|
ld hl, IntroPulseGFX
|
||||||
ld de, VTiles0 tile $00
|
ld de, vTiles0 tile $00
|
||||||
call Intro_DecompressRequest2bpp_128Tiles
|
call Intro_DecompressRequest2bpp_128Tiles
|
||||||
ld hl, IntroTilemap006
|
ld hl, IntroTilemap006
|
||||||
debgcoord 0, 0
|
debgcoord 0, 0
|
||||||
@ -706,17 +706,17 @@ IntroScene7: ; e4b3f (39:4b3f)
|
|||||||
call Intro_DecompressRequest2bpp_64Tiles
|
call Intro_DecompressRequest2bpp_64Tiles
|
||||||
|
|
||||||
ld hl, IntroPichuWooperGFX
|
ld hl, IntroPichuWooperGFX
|
||||||
ld de, VTiles0 tile $00
|
ld de, vTiles0 tile $00
|
||||||
call Intro_DecompressRequest2bpp_128Tiles
|
call Intro_DecompressRequest2bpp_128Tiles
|
||||||
|
|
||||||
ld a, $0
|
ld a, $0
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, IntroSuicuneRunGFX
|
ld hl, IntroSuicuneRunGFX
|
||||||
ld de, VTiles0 tile $00
|
ld de, vTiles0 tile $00
|
||||||
call Intro_DecompressRequest2bpp_255Tiles
|
call Intro_DecompressRequest2bpp_255Tiles
|
||||||
|
|
||||||
ld hl, IntroBackgroundGFX
|
ld hl, IntroBackgroundGFX
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
call Intro_DecompressRequest2bpp_128Tiles
|
call Intro_DecompressRequest2bpp_128Tiles
|
||||||
|
|
||||||
ld hl, IntroTilemap004
|
ld hl, IntroTilemap004
|
||||||
@ -877,7 +877,7 @@ IntroScene11: ; e4c86 (39:4c86)
|
|||||||
ld a, $0
|
ld a, $0
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, IntroUnownsGFX
|
ld hl, IntroUnownsGFX
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
call Intro_DecompressRequest2bpp_128Tiles
|
call Intro_DecompressRequest2bpp_128Tiles
|
||||||
ld hl, IntroTilemap008
|
ld hl, IntroTilemap008
|
||||||
debgcoord 0, 0
|
debgcoord 0, 0
|
||||||
@ -1001,10 +1001,10 @@ IntroScene13: ; e4d6d (39:4d6d)
|
|||||||
ld a, $0
|
ld a, $0
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, IntroSuicuneRunGFX
|
ld hl, IntroSuicuneRunGFX
|
||||||
ld de, VTiles0 tile $00
|
ld de, vTiles0 tile $00
|
||||||
call Intro_DecompressRequest2bpp_255Tiles
|
call Intro_DecompressRequest2bpp_255Tiles
|
||||||
ld hl, IntroBackgroundGFX
|
ld hl, IntroBackgroundGFX
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
call Intro_DecompressRequest2bpp_128Tiles
|
call Intro_DecompressRequest2bpp_128Tiles
|
||||||
ld hl, IntroTilemap004
|
ld hl, IntroTilemap004
|
||||||
debgcoord 0, 0
|
debgcoord 0, 0
|
||||||
@ -1105,13 +1105,13 @@ IntroScene15: ; e4e40 (39:4e40)
|
|||||||
ld a, $0
|
ld a, $0
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, IntroSuicuneJumpGFX
|
ld hl, IntroSuicuneJumpGFX
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
call Intro_DecompressRequest2bpp_128Tiles
|
call Intro_DecompressRequest2bpp_128Tiles
|
||||||
ld hl, IntroUnownBackGFX
|
ld hl, IntroUnownBackGFX
|
||||||
ld de, VTiles0 tile $00
|
ld de, vTiles0 tile $00
|
||||||
call Intro_DecompressRequest2bpp_128Tiles
|
call Intro_DecompressRequest2bpp_128Tiles
|
||||||
ld de, IntroGrass4GFX
|
ld de, IntroGrass4GFX
|
||||||
ld hl, VTiles1 tile $00
|
ld hl, vTiles1 tile $00
|
||||||
lb bc, BANK(IntroGrass4GFX), 1
|
lb bc, BANK(IntroGrass4GFX), 1
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ld hl, IntroTilemap010
|
ld hl, IntroTilemap010
|
||||||
@ -1187,7 +1187,7 @@ IntroScene17: ; e4ef5 (39:4ef5)
|
|||||||
ld a, $0
|
ld a, $0
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, IntroSuicuneCloseGFX
|
ld hl, IntroSuicuneCloseGFX
|
||||||
ld de, VTiles1 tile $00
|
ld de, vTiles1 tile $00
|
||||||
call Intro_DecompressRequest2bpp_255Tiles
|
call Intro_DecompressRequest2bpp_255Tiles
|
||||||
ld hl, IntroTilemap012
|
ld hl, IntroTilemap012
|
||||||
debgcoord 0, 0
|
debgcoord 0, 0
|
||||||
@ -1253,13 +1253,13 @@ IntroScene19: ; e4f7e (39:4f7e)
|
|||||||
ld a, $0
|
ld a, $0
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, IntroSuicuneBackGFX
|
ld hl, IntroSuicuneBackGFX
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
call Intro_DecompressRequest2bpp_128Tiles
|
call Intro_DecompressRequest2bpp_128Tiles
|
||||||
ld hl, IntroUnownsGFX
|
ld hl, IntroUnownsGFX
|
||||||
ld de, VTiles1 tile $00
|
ld de, vTiles1 tile $00
|
||||||
call Intro_DecompressRequest2bpp_128Tiles
|
call Intro_DecompressRequest2bpp_128Tiles
|
||||||
ld de, IntroGrass4GFX
|
ld de, IntroGrass4GFX
|
||||||
ld hl, VTiles1 tile $7f
|
ld hl, vTiles1 tile $7f
|
||||||
lb bc, BANK(IntroGrass4GFX), 1
|
lb bc, BANK(IntroGrass4GFX), 1
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ld hl, IntroTilemap014
|
ld hl, IntroTilemap014
|
||||||
@ -1431,7 +1431,7 @@ IntroScene26: ; e50bb (39:50bb)
|
|||||||
ld a, $0
|
ld a, $0
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, IntroCrystalUnownsGFX
|
ld hl, IntroCrystalUnownsGFX
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
call Intro_DecompressRequest2bpp_128Tiles
|
call Intro_DecompressRequest2bpp_128Tiles
|
||||||
ld hl, IntroTilemap017
|
ld hl, IntroTilemap017
|
||||||
debgcoord 0, 0
|
debgcoord 0, 0
|
||||||
@ -1922,9 +1922,9 @@ Intro_RustleGrass: ; e546d (39:546d)
|
|||||||
ld [Requested2bppSource], a
|
ld [Requested2bppSource], a
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld [Requested2bppSource + 1], a
|
ld [Requested2bppSource + 1], a
|
||||||
ld a, LOW(VTiles2 tile $09)
|
ld a, LOW(vTiles2 tile $09)
|
||||||
ld [Requested2bppDest], a
|
ld [Requested2bppDest], a
|
||||||
ld a, HIGH(VTiles2 tile $09)
|
ld a, HIGH(vTiles2 tile $09)
|
||||||
ld [Requested2bppDest + 1], a
|
ld [Requested2bppDest + 1], a
|
||||||
ld a, 4
|
ld a, 4
|
||||||
ld [Requested2bppSize], a
|
ld [Requested2bppSize], a
|
||||||
|
@ -104,14 +104,14 @@ Function81928: ; 81928
|
|||||||
Function81948: ; 81948
|
Function81948: ; 81948
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
ld bc, sScratch - VTiles0
|
ld bc, sScratch - vTiles0
|
||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
ld a, $0
|
ld a, $0
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
ld bc, sScratch - VTiles0
|
ld bc, sScratch - vTiles0
|
||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
hlcoord 0, 0, AttrMap
|
hlcoord 0, 0, AttrMap
|
||||||
@ -128,15 +128,15 @@ Function81948: ; 81948
|
|||||||
|
|
||||||
Function8197c: ; 8197c
|
Function8197c: ; 8197c
|
||||||
ld hl, DebugColorTestGFX + $10
|
ld hl, DebugColorTestGFX + $10
|
||||||
ld de, VTiles2 tile $6a
|
ld de, vTiles2 tile $6a
|
||||||
ld bc, $160
|
ld bc, $160
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld hl, DebugColorTestGFX
|
ld hl, DebugColorTestGFX
|
||||||
ld de, VTiles0
|
ld de, vTiles0
|
||||||
ld bc, $10
|
ld bc, $10
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
call LoadStandardFont
|
call LoadStandardFont
|
||||||
ld hl, VTiles1
|
ld hl, vTiles1
|
||||||
lb bc, 8, 0
|
lb bc, 8, 0
|
||||||
.asm_8199d
|
.asm_8199d
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
@ -314,7 +314,7 @@ Function81adb: ; 81adb
|
|||||||
ld [wBoxAlignment], a
|
ld [wBoxAlignment], a
|
||||||
hlcoord 12, 3
|
hlcoord 12, 3
|
||||||
call _PrepMonFrontpic
|
call _PrepMonFrontpic
|
||||||
ld de, VTiles2 tile $31
|
ld de, vTiles2 tile $31
|
||||||
predef GetMonBackpic
|
predef GetMonBackpic
|
||||||
ld a, $31
|
ld a, $31
|
||||||
ld [hGraphicStartTile], a
|
ld [hGraphicStartTile], a
|
||||||
@ -345,7 +345,7 @@ Function81adb: ; 81adb
|
|||||||
ld de, StringBuffer1
|
ld de, StringBuffer1
|
||||||
hlcoord 4, 1
|
hlcoord 4, 1
|
||||||
call PlaceString
|
call PlaceString
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
callfar GetTrainerPic
|
callfar GetTrainerPic
|
||||||
xor a
|
xor a
|
||||||
ld [TempEnemyMonSpecies], a
|
ld [TempEnemyMonSpecies], a
|
||||||
@ -1062,14 +1062,14 @@ TilesetColorTest:
|
|||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
ld de, DebugColorTestGFX + $10
|
ld de, DebugColorTestGFX + $10
|
||||||
ld hl, VTiles2 tile $6a
|
ld hl, vTiles2 tile $6a
|
||||||
lb bc, BANK(DebugColorTestGFX), $16
|
lb bc, BANK(DebugColorTestGFX), $16
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ld de, DebugColorTestGFX
|
ld de, DebugColorTestGFX
|
||||||
ld hl, VTiles1
|
ld hl, vTiles1
|
||||||
lb bc, BANK(DebugColorTestGFX), 1
|
lb bc, BANK(DebugColorTestGFX), 1
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ld a, HIGH(VBGMap1)
|
ld a, HIGH(vBGMap1)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
hlcoord 0, 0
|
hlcoord 0, 0
|
||||||
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
||||||
|
@ -10,7 +10,7 @@ PlaceDiplomaOnScreen: ; 1dd709
|
|||||||
call ClearSprites
|
call ClearSprites
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
ld hl, DiplomaGFX
|
ld hl, DiplomaGFX
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
call Decompress
|
call Decompress
|
||||||
ld hl, DiplomaPage1Tilemap
|
ld hl, DiplomaPage1Tilemap
|
||||||
decoord 0, 0
|
decoord 0, 0
|
||||||
|
@ -594,13 +594,13 @@ HDMATransfer_OnlyTopFourRows: ; 104303
|
|||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld c, $8
|
ld c, $8
|
||||||
ld hl, wScratchTileMap + $80
|
ld hl, wScratchTileMap + $80
|
||||||
debgcoord 0, 0, VBGMap1
|
debgcoord 0, 0, vBGMap1
|
||||||
call HDMATransfer_Wait127Scanlines
|
call HDMATransfer_Wait127Scanlines
|
||||||
ld a, $0
|
ld a, $0
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld c, $8
|
ld c, $8
|
||||||
ld hl, wScratchTileMap
|
ld hl, wScratchTileMap
|
||||||
debgcoord 0, 0, VBGMap1
|
debgcoord 0, 0, vBGMap1
|
||||||
call HDMATransfer_Wait127Scanlines
|
call HDMATransfer_Wait127Scanlines
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
@ -12,10 +12,10 @@ _DummyGame: ; e1e5b (38:5e5b)
|
|||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
callfar ClearSpriteAnims
|
callfar ClearSpriteAnims
|
||||||
ld hl, LZ_e2221
|
ld hl, LZ_e2221
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
call Decompress
|
call Decompress
|
||||||
ld hl, Unknown_e00ed
|
ld hl, Unknown_e00ed
|
||||||
ld de, VTiles0 tile $00
|
ld de, vTiles0 tile $00
|
||||||
ld bc, 4 tiles
|
ld bc, 4 tiles
|
||||||
ld a, BANK(Unknown_e00ed)
|
ld a, BANK(Unknown_e00ed)
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
|
@ -72,11 +72,11 @@ Special_CelebiShrineEvent: ; 4989a
|
|||||||
LoadCelebiGFX: ; 49912
|
LoadCelebiGFX: ; 49912
|
||||||
farcall ClearSpriteAnims
|
farcall ClearSpriteAnims
|
||||||
ld de, SpecialCelebiLeafGFX
|
ld de, SpecialCelebiLeafGFX
|
||||||
ld hl, VTiles1
|
ld hl, vTiles1
|
||||||
lb bc, BANK(SpecialCelebiLeafGFX), 4
|
lb bc, BANK(SpecialCelebiLeafGFX), 4
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ld de, SpecialCelebiGFX
|
ld de, SpecialCelebiGFX
|
||||||
ld hl, VTiles0 tile $84
|
ld hl, vTiles0 tile $84
|
||||||
lb bc, BANK(SpecialCelebiGFX), $10
|
lb bc, BANK(SpecialCelebiGFX), $10
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
xor a
|
xor a
|
||||||
|
@ -22,11 +22,11 @@ BlindingFlash: ; 8c7e1
|
|||||||
ShakeHeadbuttTree: ; 8c80a
|
ShakeHeadbuttTree: ; 8c80a
|
||||||
farcall ClearSpriteAnims
|
farcall ClearSpriteAnims
|
||||||
ld de, CutGrassGFX
|
ld de, CutGrassGFX
|
||||||
ld hl, VTiles1
|
ld hl, vTiles1
|
||||||
lb bc, BANK(CutGrassGFX), 4
|
lb bc, BANK(CutGrassGFX), 4
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ld de, HeadbuttTreeGFX
|
ld de, HeadbuttTreeGFX
|
||||||
ld hl, VTiles1 tile $04
|
ld hl, vTiles1 tile $04
|
||||||
lb bc, BANK(HeadbuttTreeGFX), 8
|
lb bc, BANK(HeadbuttTreeGFX), 8
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
call Cut_Headbutt_GetPixelFacing
|
call Cut_Headbutt_GetPixelFacing
|
||||||
@ -67,7 +67,7 @@ ShakeHeadbuttTree: ; 8c80a
|
|||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
ld de, Font
|
ld de, Font
|
||||||
ld hl, VTiles1
|
ld hl, vTiles1
|
||||||
lb bc, BANK(Font), 12
|
lb bc, BANK(Font), 12
|
||||||
call Get1bpp
|
call Get1bpp
|
||||||
call ReplaceKrisSprite
|
call ReplaceKrisSprite
|
||||||
@ -141,11 +141,11 @@ OWCutAnimation: ; 8c940
|
|||||||
.LoadCutGFX: ; 8c96d
|
.LoadCutGFX: ; 8c96d
|
||||||
callfar ClearSpriteAnims ; pointless to farcall
|
callfar ClearSpriteAnims ; pointless to farcall
|
||||||
ld de, CutGrassGFX
|
ld de, CutGrassGFX
|
||||||
ld hl, VTiles1
|
ld hl, vTiles1
|
||||||
lb bc, BANK(CutGrassGFX), 4
|
lb bc, BANK(CutGrassGFX), 4
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ld de, CutTreeGFX
|
ld de, CutTreeGFX
|
||||||
ld hl, VTiles1 tile $4
|
ld hl, vTiles1 tile $4
|
||||||
lb bc, BANK(CutTreeGFX), 4
|
lb bc, BANK(CutTreeGFX), 4
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ret
|
ret
|
||||||
@ -413,7 +413,7 @@ FlyToAnim: ; 8cb33
|
|||||||
FlyFunction_InitGFX: ; 8cb9b (23:4b9b)
|
FlyFunction_InitGFX: ; 8cb9b (23:4b9b)
|
||||||
callfar ClearSpriteAnims
|
callfar ClearSpriteAnims
|
||||||
ld de, CutGrassGFX
|
ld de, CutGrassGFX
|
||||||
ld hl, VTiles1 tile $00
|
ld hl, vTiles1 tile $00
|
||||||
lb bc, BANK(CutGrassGFX), 4
|
lb bc, BANK(CutGrassGFX), 4
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ld a, [CurPartyMon]
|
ld a, [CurPartyMon]
|
||||||
|
@ -249,7 +249,7 @@ AnimateHOFMonEntrance: ; 865b5
|
|||||||
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
||||||
ld a, " "
|
ld a, " "
|
||||||
call ByteFill
|
call ByteFill
|
||||||
ld de, VTiles2 tile $31
|
ld de, vTiles2 tile $31
|
||||||
predef GetMonBackpic
|
predef GetMonBackpic
|
||||||
ld a, $31
|
ld a, $31
|
||||||
ld [hGraphicStartTile], a
|
ld [hGraphicStartTile], a
|
||||||
@ -533,7 +533,7 @@ DisplayHOFMon: ; 86748
|
|||||||
|
|
||||||
HOF_AnimatePlayerPic: ; 86810
|
HOF_AnimatePlayerPic: ; 86810
|
||||||
call ClearBGPalettes
|
call ClearBGPalettes
|
||||||
ld hl, VTiles2 tile HALLOFFAME_COLON
|
ld hl, vTiles2 tile HALLOFFAME_COLON
|
||||||
ld de, FontExtra + 13 tiles ; "<COLON>"
|
ld de, FontExtra + 13 tiles ; "<COLON>"
|
||||||
lb bc, BANK(FontExtra), 1
|
lb bc, BANK(FontExtra), 1
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
|
@ -72,7 +72,7 @@ HealMachineAnim: ; 12324
|
|||||||
.LoadGFX: ; 12383
|
.LoadGFX: ; 12383
|
||||||
call .LoadPalettes
|
call .LoadPalettes
|
||||||
ld de, .HealMachineGFX
|
ld de, .HealMachineGFX
|
||||||
ld hl, VTiles0 tile $7c
|
ld hl, vTiles0 tile $7c
|
||||||
lb bc, BANK(.HealMachineGFX), $2
|
lb bc, BANK(.HealMachineGFX), $2
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ret
|
ret
|
||||||
|
@ -79,7 +79,7 @@ Special_CheckMagikarpLength: ; fbb32
|
|||||||
; 0xfbbae
|
; 0xfbbae
|
||||||
|
|
||||||
Magikarp_LoadFeetInchesChars: ; fbbae
|
Magikarp_LoadFeetInchesChars: ; fbbae
|
||||||
ld hl, VTiles2 tile "′" ; $6e
|
ld hl, vTiles2 tile "′" ; $6e
|
||||||
ld de, .feetinchchars
|
ld de, .feetinchchars
|
||||||
lb bc, BANK(.feetinchchars), 2
|
lb bc, BANK(.feetinchchars), 2
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
|
@ -134,14 +134,14 @@ MagntTrain_LoadGFX_PlayMusic: ; 8ccc9
|
|||||||
farcall GetPlayerIcon
|
farcall GetPlayerIcon
|
||||||
pop af
|
pop af
|
||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
ld c, 4
|
ld c, 4
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ld hl, 12 tiles
|
ld hl, 12 tiles
|
||||||
add hl, de
|
add hl, de
|
||||||
ld d, h
|
ld d, h
|
||||||
ld e, l
|
ld e, l
|
||||||
ld hl, VTiles0 tile $04
|
ld hl, vTiles0 tile $04
|
||||||
ld c, 4
|
ld c, 4
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
call MagnetTrain_InitLYOverrides
|
call MagnetTrain_InitLYOverrides
|
||||||
|
@ -11,7 +11,7 @@ Pokepic:: ; 244e3
|
|||||||
ld a, [CurPartySpecies]
|
ld a, [CurPartySpecies]
|
||||||
ld [CurSpecies], a
|
ld [CurSpecies], a
|
||||||
call GetBaseData
|
call GetBaseData
|
||||||
ld de, VTiles1
|
ld de, vTiles1
|
||||||
predef GetMonFrontpic
|
predef GetMonFrontpic
|
||||||
ld a, [wMenuBorderTopCoord]
|
ld a, [wMenuBorderTopCoord]
|
||||||
inc a
|
inc a
|
||||||
|
@ -15,12 +15,12 @@ UnownPrinter: ; 16be4
|
|||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
|
|
||||||
ld de, UnownDexATile
|
ld de, UnownDexATile
|
||||||
ld hl, VTiles1 tile $6f
|
ld hl, vTiles1 tile $6f
|
||||||
lb bc, BANK(UnownDexBTile), 1
|
lb bc, BANK(UnownDexBTile), 1
|
||||||
call Request1bpp
|
call Request1bpp
|
||||||
|
|
||||||
ld de, UnownDexBTile
|
ld de, UnownDexBTile
|
||||||
ld hl, VTiles1 tile $75
|
ld hl, vTiles1 tile $75
|
||||||
lb bc, BANK(UnownDexBTile), 1
|
lb bc, BANK(UnownDexBTile), 1
|
||||||
call Request1bpp
|
call Request1bpp
|
||||||
|
|
||||||
@ -139,7 +139,7 @@ UnownPrinter: ; 16be4
|
|||||||
ld [CurPartySpecies], a
|
ld [CurPartySpecies], a
|
||||||
xor a
|
xor a
|
||||||
ld [wBoxAlignment], a
|
ld [wBoxAlignment], a
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
predef GetMonFrontpic
|
predef GetMonFrontpic
|
||||||
call .Load2bppToSRAM
|
call .Load2bppToSRAM
|
||||||
hlcoord 1, 6
|
hlcoord 1, 6
|
||||||
@ -147,7 +147,7 @@ UnownPrinter: ; 16be4
|
|||||||
ld [hGraphicStartTile], a
|
ld [hGraphicStartTile], a
|
||||||
lb bc, 7, 7
|
lb bc, 7, 7
|
||||||
predef PlaceGraphic
|
predef PlaceGraphic
|
||||||
ld de, VTiles2 tile $31
|
ld de, vTiles2 tile $31
|
||||||
farcall RotateUnownFrontpic
|
farcall RotateUnownFrontpic
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -184,7 +184,7 @@ UnownPrinter: ; 16be4
|
|||||||
ld bc, $31 tiles
|
ld bc, $31 tiles
|
||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
ld hl, VTiles2 tile $31
|
ld hl, vTiles2 tile $31
|
||||||
ld de, sScratch
|
ld de, sScratch
|
||||||
ld c, $31
|
ld c, $31
|
||||||
ld a, [hROMBank]
|
ld a, [hROMBank]
|
||||||
|
@ -132,7 +132,7 @@ PlaceMapNameSign:: ; b8098 (2e:4098)
|
|||||||
|
|
||||||
LoadMapNameSignGFX: ; b80c6
|
LoadMapNameSignGFX: ; b80c6
|
||||||
ld de, MapEntryFrameGFX
|
ld de, MapEntryFrameGFX
|
||||||
ld hl, VTiles2 tile $60
|
ld hl, vTiles2 tile $60
|
||||||
lb bc, BANK(MapEntryFrameGFX), $e
|
lb bc, BANK(MapEntryFrameGFX), $e
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
ret
|
ret
|
||||||
@ -654,13 +654,13 @@ LoadFishingGFX: ; b84b3
|
|||||||
ld de, KrisFishingGFX
|
ld de, KrisFishingGFX
|
||||||
.got_gender
|
.got_gender
|
||||||
|
|
||||||
ld hl, VTiles0 tile $02
|
ld hl, vTiles0 tile $02
|
||||||
call .LoadGFX
|
call .LoadGFX
|
||||||
ld hl, VTiles0 tile $06
|
ld hl, vTiles0 tile $06
|
||||||
call .LoadGFX
|
call .LoadGFX
|
||||||
ld hl, VTiles0 tile $0a
|
ld hl, vTiles0 tile $0a
|
||||||
call .LoadGFX
|
call .LoadGFX
|
||||||
ld hl, VTiles1 tile $7c
|
ld hl, vTiles1 tile $7c
|
||||||
call .LoadGFX
|
call .LoadGFX
|
||||||
|
|
||||||
pop af
|
pop af
|
||||||
|
@ -39,7 +39,7 @@ EvolutionAnimation: ; 4e5e1
|
|||||||
farcall ClearSpriteAnims
|
farcall ClearSpriteAnims
|
||||||
|
|
||||||
ld de, .GFX
|
ld de, .GFX
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
lb bc, BANK(.GFX), 8
|
lb bc, BANK(.GFX), 8
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
|
|
||||||
@ -58,8 +58,8 @@ EvolutionAnimation: ; 4e5e1
|
|||||||
ld [CurSpecies], a
|
ld [CurSpecies], a
|
||||||
call .PlaceFrontpic
|
call .PlaceFrontpic
|
||||||
|
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
ld hl, VTiles2 tile $31
|
ld hl, vTiles2 tile $31
|
||||||
ld bc, 7 * 7
|
ld bc, 7 * 7
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
|
|
||||||
@ -167,7 +167,7 @@ EvolutionAnimation: ; 4e5e1
|
|||||||
call GetBaseData
|
call GetBaseData
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [wBoxAlignment], a
|
ld [wBoxAlignment], a
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
predef GetAnimatedFrontpicPredef
|
predef GetAnimatedFrontpicPredef
|
||||||
xor a
|
xor a
|
||||||
ld [wBoxAlignment], a
|
ld [wBoxAlignment], a
|
||||||
|
@ -20,12 +20,12 @@ GBCOnlyScreen: ; 4ea82
|
|||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
|
|
||||||
ld de, $d000
|
ld de, $d000
|
||||||
ld hl, VTiles2
|
ld hl, vTiles2
|
||||||
lb bc, BANK(GBCOnlyGFX), $54
|
lb bc, BANK(GBCOnlyGFX), $54
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
|
|
||||||
ld de, Font
|
ld de, Font
|
||||||
ld hl, VTiles1
|
ld hl, vTiles1
|
||||||
lb bc, BANK(Font), $80
|
lb bc, BANK(Font), $80
|
||||||
call Get1bpp
|
call Get1bpp
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ LoadGenderScreenPal: ; 48e47 (12:4e47)
|
|||||||
|
|
||||||
LoadGenderScreenLightBlueTile: ; 48e64 (12:4e64)
|
LoadGenderScreenLightBlueTile: ; 48e64 (12:4e64)
|
||||||
ld de, .LightBlueTile
|
ld de, .LightBlueTile
|
||||||
ld hl, VTiles2 tile $00
|
ld hl, vTiles2 tile $00
|
||||||
lb bc, BANK(.LightBlueTile), 1
|
lb bc, BANK(.LightBlueTile), 1
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
ret
|
ret
|
||||||
|
@ -6,7 +6,7 @@ InitDisplayForHallOfFame: ; 4e881
|
|||||||
call LoadStandardFont
|
call LoadStandardFont
|
||||||
call LoadFontsBattleExtra
|
call LoadFontsBattleExtra
|
||||||
hlbgcoord 0, 0
|
hlbgcoord 0, 0
|
||||||
ld bc, VBGMap1 - VBGMap0
|
ld bc, vBGMap1 - vBGMap0
|
||||||
ld a, " "
|
ld a, " "
|
||||||
call ByteFill
|
call ByteFill
|
||||||
hlcoord 0, 0, AttrMap
|
hlcoord 0, 0, AttrMap
|
||||||
@ -36,7 +36,7 @@ InitDisplayForRedCredits: ; 4e8c2
|
|||||||
call LoadStandardFont
|
call LoadStandardFont
|
||||||
call LoadFontsBattleExtra
|
call LoadFontsBattleExtra
|
||||||
hlbgcoord 0, 0
|
hlbgcoord 0, 0
|
||||||
ld bc, VBGMap1 - VBGMap0
|
ld bc, vBGMap1 - vBGMap0
|
||||||
ld a, " "
|
ld a, " "
|
||||||
call ByteFill
|
call ByteFill
|
||||||
hlcoord 0, 0, AttrMap
|
hlcoord 0, 0, AttrMap
|
||||||
|
@ -27,7 +27,7 @@ ReanchorBGMap_NoOAMUpdate:: ; 6454
|
|||||||
ld a, $90
|
ld a, $90
|
||||||
ld [hWY], a
|
ld [hWY], a
|
||||||
call OverworldTextModeSwitch
|
call OverworldTextModeSwitch
|
||||||
ld a, HIGH(VBGMap1)
|
ld a, HIGH(vBGMap1)
|
||||||
call .LoadBGMapAddrIntoHRAM
|
call .LoadBGMapAddrIntoHRAM
|
||||||
call _OpenAndCloseMenu_HDMATransferTileMapAndAttrMap
|
call _OpenAndCloseMenu_HDMATransferTileMapAndAttrMap
|
||||||
farcall LoadOW_BGPal7
|
farcall LoadOW_BGPal7
|
||||||
@ -38,11 +38,11 @@ ReanchorBGMap_NoOAMUpdate:: ; 6454
|
|||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
ld [hWY], a
|
ld [hWY], a
|
||||||
farcall HDMATransfer_FillBGMap0WithBlack ; no need to farcall
|
farcall HDMATransfer_FillBGMap0WithBlack ; no need to farcall
|
||||||
ld a, HIGH(VBGMap0)
|
ld a, HIGH(vBGMap0)
|
||||||
call .LoadBGMapAddrIntoHRAM
|
call .LoadBGMapAddrIntoHRAM
|
||||||
xor a ; LOW(VBGMap0)
|
xor a ; LOW(vBGMap0)
|
||||||
ld [wBGMapAnchor], a
|
ld [wBGMapAnchor], a
|
||||||
ld a, HIGH(VBGMap0)
|
ld a, HIGH(vBGMap0)
|
||||||
ld [wBGMapAnchor + 1], a
|
ld [wBGMapAnchor + 1], a
|
||||||
xor a
|
xor a
|
||||||
ld [hSCX], a
|
ld [hSCX], a
|
||||||
@ -90,9 +90,9 @@ HDMATransfer_FillBGMap0WithBlack: ; 64db
|
|||||||
ld [rHDMA1], a
|
ld [rHDMA1], a
|
||||||
ld a, LOW(wDecompressScratch)
|
ld a, LOW(wDecompressScratch)
|
||||||
ld [rHDMA2], a
|
ld [rHDMA2], a
|
||||||
ld a, HIGH(VBGMap0 % $8000)
|
ld a, HIGH(vBGMap0 % $8000)
|
||||||
ld [rHDMA3], a
|
ld [rHDMA3], a
|
||||||
ld a, LOW(VBGMap0 % $8000)
|
ld a, LOW(vBGMap0 % $8000)
|
||||||
ld [rHDMA4], a
|
ld [rHDMA4], a
|
||||||
ld a, $3f
|
ld a, $3f
|
||||||
ld [hDMATransfer], a
|
ld [hDMATransfer], a
|
||||||
|
@ -942,7 +942,7 @@ Intro_WipeInFrontpic: ; 6182
|
|||||||
; 619c
|
; 619c
|
||||||
|
|
||||||
Intro_PrepTrainerPic: ; 619c
|
Intro_PrepTrainerPic: ; 619c
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
farcall GetTrainerPic
|
farcall GetTrainerPic
|
||||||
xor a
|
xor a
|
||||||
ld [hGraphicStartTile], a
|
ld [hGraphicStartTile], a
|
||||||
@ -953,7 +953,7 @@ Intro_PrepTrainerPic: ; 619c
|
|||||||
; 61b4
|
; 61b4
|
||||||
|
|
||||||
ShrinkFrame: ; 61b4
|
ShrinkFrame: ; 61b4
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
ld c, $31
|
ld c, $31
|
||||||
predef DecompressPredef
|
predef DecompressPredef
|
||||||
xor a
|
xor a
|
||||||
@ -968,7 +968,7 @@ Intro_PlacePlayerSprite: ; 61cd
|
|||||||
|
|
||||||
farcall GetPlayerIcon
|
farcall GetPlayerIcon
|
||||||
ld c, $c
|
ld c, $c
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
|
|
||||||
ld hl, Sprites
|
ld hl, Sprites
|
||||||
@ -1376,7 +1376,7 @@ Copyright: ; 63e2
|
|||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
call LoadFontsExtra
|
call LoadFontsExtra
|
||||||
ld de, CopyrightGFX
|
ld de, CopyrightGFX
|
||||||
ld hl, VTiles2 tile $60
|
ld hl, vTiles2 tile $60
|
||||||
lb bc, BANK(CopyrightGFX), $1d
|
lb bc, BANK(CopyrightGFX), $1d
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
hlcoord 2, 7
|
hlcoord 2, 7
|
||||||
@ -1405,9 +1405,9 @@ GameInit:: ; 642e
|
|||||||
call ClearWindowData
|
call ClearWindowData
|
||||||
call ClearBGPalettes
|
call ClearBGPalettes
|
||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
ld a, HIGH(VBGMap0)
|
ld a, HIGH(vBGMap0)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
xor a ; LOW(VBGMap0)
|
xor a ; LOW(vBGMap0)
|
||||||
ld [hBGMapAddress], a
|
ld [hBGMapAddress], a
|
||||||
ld [hJoyDown], a
|
ld [hJoyDown], a
|
||||||
ld [hSCX], a
|
ld [hSCX], a
|
||||||
|
@ -4,7 +4,7 @@ INCBIN "gfx/trade/border_tiles.2bpp"
|
|||||||
|
|
||||||
__LoadTradeScreenBorder: ; 16d421
|
__LoadTradeScreenBorder: ; 16d421
|
||||||
ld de, LinkCommsBorderGFX
|
ld de, LinkCommsBorderGFX
|
||||||
ld hl, VTiles2
|
ld hl, vTiles2
|
||||||
lb bc, BANK(LinkCommsBorderGFX), 70
|
lb bc, BANK(LinkCommsBorderGFX), 70
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
ret
|
ret
|
||||||
@ -139,7 +139,7 @@ _LoadTradeScreenBorder: ; 16d696
|
|||||||
|
|
||||||
LinkComms_LoadPleaseWaitTextboxBorderGFX: ; 16d69a
|
LinkComms_LoadPleaseWaitTextboxBorderGFX: ; 16d69a
|
||||||
ld de, LinkCommsBorderGFX + $30 tiles
|
ld de, LinkCommsBorderGFX + $30 tiles
|
||||||
ld hl, VTiles2 tile $76
|
ld hl, vTiles2 tile $76
|
||||||
lb bc, BANK(LinkCommsBorderGFX), 8
|
lb bc, BANK(LinkCommsBorderGFX), 8
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
ret
|
ret
|
||||||
|
@ -28,7 +28,7 @@ ReadAnyMail: ; b9237
|
|||||||
ld de, SpanishItalianFont
|
ld de, SpanishItalianFont
|
||||||
|
|
||||||
.got_font
|
.got_font
|
||||||
ld hl, VTiles1
|
ld hl, vTiles1
|
||||||
lb bc, BANK(StandardEnglishFont), $80
|
lb bc, BANK(StandardEnglishFont), $80
|
||||||
call Get1bpp
|
call Get1bpp
|
||||||
pop de
|
pop de
|
||||||
@ -128,7 +128,7 @@ MailGFXPointers: ; b92f8
|
|||||||
|
|
||||||
LoadSurfMailGFX: ; b9317
|
LoadSurfMailGFX: ; b9317
|
||||||
push bc
|
push bc
|
||||||
ld hl, VTiles2 tile $31
|
ld hl, vTiles2 tile $31
|
||||||
ld de, SurfMailBorderGFX
|
ld de, SurfMailBorderGFX
|
||||||
ld c, 8 * 8
|
ld c, 8 * 8
|
||||||
call LoadMailGFX_Color2
|
call LoadMailGFX_Color2
|
||||||
@ -142,7 +142,7 @@ LoadSurfMailGFX: ; b9317
|
|||||||
|
|
||||||
LoadLiteBlueMailGFX: ; b9335
|
LoadLiteBlueMailGFX: ; b9335
|
||||||
push bc
|
push bc
|
||||||
ld hl, VTiles2 tile $31
|
ld hl, vTiles2 tile $31
|
||||||
ld de, LiteBlueMailBorderGFX
|
ld de, LiteBlueMailBorderGFX
|
||||||
ld c, 8 * 8
|
ld c, 8 * 8
|
||||||
call LoadMailGFX_Color2
|
call LoadMailGFX_Color2
|
||||||
@ -213,7 +213,7 @@ FinishLoadingSurfLiteBlueMailGFX: ; b9351
|
|||||||
|
|
||||||
LoadEonMailGFX: ; b93d2
|
LoadEonMailGFX: ; b93d2
|
||||||
push bc
|
push bc
|
||||||
ld hl, VTiles2 tile $31
|
ld hl, vTiles2 tile $31
|
||||||
ld de, EonMailBorder1GFX
|
ld de, EonMailBorder1GFX
|
||||||
ld c, 1 * 8
|
ld c, 1 * 8
|
||||||
call LoadMailGFX_Color2
|
call LoadMailGFX_Color2
|
||||||
@ -232,7 +232,7 @@ LoadEonMailGFX: ; b93d2
|
|||||||
ld de, MailEeveeGFX
|
ld de, MailEeveeGFX
|
||||||
ld c, 6 * 8
|
ld c, 6 * 8
|
||||||
call LoadMailGFX_Color3
|
call LoadMailGFX_Color3
|
||||||
ld hl, VTiles2 tile $3d
|
ld hl, vTiles2 tile $3d
|
||||||
ld de, MailLargeCircleGFX
|
ld de, MailLargeCircleGFX
|
||||||
ld c, 4 * 8
|
ld c, 4 * 8
|
||||||
call LoadMailGFX_Color1
|
call LoadMailGFX_Color1
|
||||||
@ -263,7 +263,7 @@ LoadEonMailGFX: ; b93d2
|
|||||||
|
|
||||||
LoadLovelyMailGFX: ; b944b
|
LoadLovelyMailGFX: ; b944b
|
||||||
push bc
|
push bc
|
||||||
ld hl, VTiles2 tile $31
|
ld hl, vTiles2 tile $31
|
||||||
ld de, LovelyMailBorderGFX
|
ld de, LovelyMailBorderGFX
|
||||||
ld c, 5 * 8
|
ld c, 5 * 8
|
||||||
call LoadMailGFX_Color2
|
call LoadMailGFX_Color2
|
||||||
@ -326,7 +326,7 @@ LovelyEonMail_PlaceIcons: ; b9491
|
|||||||
|
|
||||||
LoadMorphMailGFX: ; b94d6
|
LoadMorphMailGFX: ; b94d6
|
||||||
push bc
|
push bc
|
||||||
ld hl, VTiles2 tile $31
|
ld hl, vTiles2 tile $31
|
||||||
ld bc, 5 * 8
|
ld bc, 5 * 8
|
||||||
call MailGFX_GenerateMonochromeTilesColor2
|
call MailGFX_GenerateMonochromeTilesColor2
|
||||||
ld de, MorphMailBorderCornerGFX + 3 * 8
|
ld de, MorphMailBorderCornerGFX + 3 * 8
|
||||||
@ -402,7 +402,7 @@ LoadMorphMailGFX: ; b94d6
|
|||||||
|
|
||||||
LoadBlueSkyMailGFX: ; b9582
|
LoadBlueSkyMailGFX: ; b9582
|
||||||
push bc
|
push bc
|
||||||
ld hl, VTiles2 tile $31
|
ld hl, vTiles2 tile $31
|
||||||
ld de, EonMailBorder1GFX
|
ld de, EonMailBorder1GFX
|
||||||
ld c, 1 * 8
|
ld c, 1 * 8
|
||||||
call LoadMailGFX_Color2
|
call LoadMailGFX_Color2
|
||||||
@ -490,7 +490,7 @@ Mail_Place6TileRow: ; b9636
|
|||||||
|
|
||||||
LoadFlowerMailGFX: ; b963e
|
LoadFlowerMailGFX: ; b963e
|
||||||
push bc
|
push bc
|
||||||
ld hl, VTiles2 tile $31
|
ld hl, vTiles2 tile $31
|
||||||
ld de, FlowerMailBorderGFX
|
ld de, FlowerMailBorderGFX
|
||||||
ld c, 8 * 8
|
ld c, 8 * 8
|
||||||
call LoadMailGFX_Color1
|
call LoadMailGFX_Color1
|
||||||
@ -545,14 +545,14 @@ LoadFlowerMailGFX: ; b963e
|
|||||||
|
|
||||||
LoadPortraitMailGFX: ; b96ca
|
LoadPortraitMailGFX: ; b96ca
|
||||||
push bc
|
push bc
|
||||||
ld hl, VTiles2 tile $31
|
ld hl, vTiles2 tile $31
|
||||||
ld de, PortraitMailBorderGFX
|
ld de, PortraitMailBorderGFX
|
||||||
ld c, 5 * 8
|
ld c, 5 * 8
|
||||||
call LoadMailGFX_Color2
|
call LoadMailGFX_Color2
|
||||||
ld de, PortraitMailUnderlineGFX
|
ld de, PortraitMailUnderlineGFX
|
||||||
ld c, 1 * 8
|
ld c, 1 * 8
|
||||||
call LoadMailGFX_Color2
|
call LoadMailGFX_Color2
|
||||||
ld hl, VTiles2 tile $3d
|
ld hl, vTiles2 tile $3d
|
||||||
ld de, PortraitMailLargePokeballGFX
|
ld de, PortraitMailLargePokeballGFX
|
||||||
ld c, 4 * 8
|
ld c, 4 * 8
|
||||||
call LoadMailGFX_Color1
|
call LoadMailGFX_Color1
|
||||||
@ -576,7 +576,7 @@ LoadPortraitMailGFX: ; b96ca
|
|||||||
|
|
||||||
LoadMusicMailGFX: ; b9710
|
LoadMusicMailGFX: ; b9710
|
||||||
push bc
|
push bc
|
||||||
ld hl, VTiles2 tile $31
|
ld hl, vTiles2 tile $31
|
||||||
ld de, MusicMailBorderGFX
|
ld de, MusicMailBorderGFX
|
||||||
ld c, 4 * 8
|
ld c, 4 * 8
|
||||||
call LoadMailGFX_Color2
|
call LoadMailGFX_Color2
|
||||||
@ -619,7 +619,7 @@ LoadMusicMailGFX: ; b9710
|
|||||||
|
|
||||||
LoadMirageMailGFX: ; b9776
|
LoadMirageMailGFX: ; b9776
|
||||||
push bc
|
push bc
|
||||||
ld hl, VTiles2 tile $31
|
ld hl, vTiles2 tile $31
|
||||||
ld bc, 5 * 8
|
ld bc, 5 * 8
|
||||||
call MailGFX_GenerateMonochromeTilesColor2
|
call MailGFX_GenerateMonochromeTilesColor2
|
||||||
ld de, BlueSkyMailGrassGFX
|
ld de, BlueSkyMailGrassGFX
|
||||||
|
@ -331,7 +331,7 @@ rept 4
|
|||||||
add hl, hl
|
add hl, hl
|
||||||
endr
|
endr
|
||||||
|
|
||||||
ld de, VTiles0
|
ld de, vTiles0
|
||||||
add hl, de
|
add hl, de
|
||||||
push hl
|
push hl
|
||||||
|
|
||||||
|
@ -1277,7 +1277,7 @@ InitMysteryGiftLayout: ; 105153 (41:5153)
|
|||||||
call ClearBGPalettes
|
call ClearBGPalettes
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
ld hl, MysteryGiftGFX
|
ld hl, MysteryGiftGFX
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
ld a, BANK(MysteryGiftGFX)
|
ld a, BANK(MysteryGiftGFX)
|
||||||
ld bc, MysteryGiftGFXEnd - MysteryGiftGFX
|
ld bc, MysteryGiftGFXEnd - MysteryGiftGFX
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
@ -1576,12 +1576,12 @@ Function1057d7: ; 1057d7 (41:57d7)
|
|||||||
call ClearBGPalettes
|
call ClearBGPalettes
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
ld hl, MysteryGiftJP_GFX
|
ld hl, MysteryGiftJP_GFX
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
ld a, BANK(MysteryGiftJP_GFX)
|
ld a, BANK(MysteryGiftJP_GFX)
|
||||||
lb bc, 4, 0
|
lb bc, 4, 0
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
ld hl, MysteryGiftJP_GFX + $400
|
ld hl, MysteryGiftJP_GFX + $400
|
||||||
ld de, VTiles0 tile $00
|
ld de, vTiles0 tile $00
|
||||||
ld a, BANK(MysteryGiftJP_GFX)
|
ld a, BANK(MysteryGiftJP_GFX)
|
||||||
ld bc, $80
|
ld bc, $80
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
|
@ -175,7 +175,7 @@ NamingScreen: ; 116c1
|
|||||||
|
|
||||||
.Box: ; 117f5 (4:57f5)
|
.Box: ; 117f5 (4:57f5)
|
||||||
ld de, PokeBallSpriteGFX
|
ld de, PokeBallSpriteGFX
|
||||||
ld hl, VTiles0 tile $00
|
ld hl, vTiles0 tile $00
|
||||||
lb bc, BANK(PokeBallSpriteGFX), $4
|
lb bc, BANK(PokeBallSpriteGFX), $4
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
xor a
|
xor a
|
||||||
@ -217,7 +217,7 @@ NamingScreen: ; 116c1
|
|||||||
|
|
||||||
.LoadSprite: ; 11847 (4:5847)
|
.LoadSprite: ; 11847 (4:5847)
|
||||||
push de
|
push de
|
||||||
ld hl, VTiles0 tile $00
|
ld hl, vTiles0 tile $00
|
||||||
ld c, $4
|
ld c, $4
|
||||||
push bc
|
push bc
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
@ -226,7 +226,7 @@ NamingScreen: ; 116c1
|
|||||||
add hl, de
|
add hl, de
|
||||||
ld e, l
|
ld e, l
|
||||||
ld d, h
|
ld d, h
|
||||||
ld hl, VTiles0 tile $04
|
ld hl, vTiles0 tile $04
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
xor a
|
xor a
|
||||||
ld hl, wSpriteAnimDict
|
ld hl, wSpriteAnimDict
|
||||||
@ -905,22 +905,22 @@ LoadNamingScreenGFX: ; 11c51
|
|||||||
call LoadFontsExtra
|
call LoadFontsExtra
|
||||||
|
|
||||||
ld de, NamingScreenGFX_MiddleLine
|
ld de, NamingScreenGFX_MiddleLine
|
||||||
ld hl, VTiles1 tile $6b
|
ld hl, vTiles1 tile $6b
|
||||||
lb bc, BANK(NamingScreenGFX_MiddleLine), 1
|
lb bc, BANK(NamingScreenGFX_MiddleLine), 1
|
||||||
call Get1bpp
|
call Get1bpp
|
||||||
|
|
||||||
ld de, NamingScreenGFX_UnderLine
|
ld de, NamingScreenGFX_UnderLine
|
||||||
ld hl, VTiles1 tile $72
|
ld hl, vTiles1 tile $72
|
||||||
lb bc, BANK(NamingScreenGFX_UnderLine), 1
|
lb bc, BANK(NamingScreenGFX_UnderLine), 1
|
||||||
call Get1bpp
|
call Get1bpp
|
||||||
|
|
||||||
ld de, VTiles2 tile $60
|
ld de, vTiles2 tile $60
|
||||||
ld hl, NamingScreenGFX_Border
|
ld hl, NamingScreenGFX_Border
|
||||||
ld bc, 1 tiles
|
ld bc, 1 tiles
|
||||||
ld a, BANK(NamingScreenGFX_Border)
|
ld a, BANK(NamingScreenGFX_Border)
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
|
|
||||||
ld de, VTiles0 tile $7e
|
ld de, vTiles0 tile $7e
|
||||||
ld hl, NamingScreenGFX_Cursor
|
ld hl, NamingScreenGFX_Cursor
|
||||||
ld bc, 2 tiles
|
ld bc, 2 tiles
|
||||||
ld a, BANK(NamingScreenGFX_Cursor)
|
ld a, BANK(NamingScreenGFX_Cursor)
|
||||||
@ -998,7 +998,7 @@ _ComposeMailMessage: ; 11e75 (mail?)
|
|||||||
call ClearBGPalettes
|
call ClearBGPalettes
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
call LoadNamingScreenGFX
|
call LoadNamingScreenGFX
|
||||||
ld de, VTiles0 tile $00
|
ld de, vTiles0 tile $00
|
||||||
ld hl, .MailIcon
|
ld hl, .MailIcon
|
||||||
ld bc, 8 tiles
|
ld bc, 8 tiles
|
||||||
ld a, BANK(.MailIcon)
|
ld a, BANK(.MailIcon)
|
||||||
|
@ -663,10 +663,10 @@ rept 4
|
|||||||
add hl, hl
|
add hl, hl
|
||||||
endr
|
endr
|
||||||
ld a, l
|
ld a, l
|
||||||
add LOW(VTiles0)
|
add LOW(vTiles0)
|
||||||
ld l, a
|
ld l, a
|
||||||
ld a, h
|
ld a, h
|
||||||
adc HIGH(VTiles0)
|
adc HIGH(vTiles0)
|
||||||
ld h, a
|
ld h, a
|
||||||
ret
|
ret
|
||||||
; 14418
|
; 14418
|
||||||
|
@ -1304,7 +1304,7 @@ DrawPackGFX: ; 1089d
|
|||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld e, a
|
ld e, a
|
||||||
ld d, [hl]
|
ld d, [hl]
|
||||||
ld hl, VTiles2 tile $50
|
ld hl, vTiles2 tile $50
|
||||||
lb bc, BANK(PackGFX), 15
|
lb bc, BANK(PackGFX), 15
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ret
|
ret
|
||||||
@ -1411,7 +1411,7 @@ Pack_InitGFX: ; 10955
|
|||||||
call ClearSprites
|
call ClearSprites
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
ld hl, PackMenuGFX
|
ld hl, PackMenuGFX
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
ld bc, $60 tiles
|
ld bc, $60 tiles
|
||||||
ld a, BANK(PackMenuGFX)
|
ld a, BANK(PackMenuGFX)
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
|
@ -1120,7 +1120,7 @@ HOF_AnimateFrontpic: ; d066e Predef 49
|
|||||||
ld l, e
|
ld l, e
|
||||||
push bc
|
push bc
|
||||||
push hl
|
push hl
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
predef GetAnimatedFrontpicPredef
|
predef GetAnimatedFrontpicPredef
|
||||||
pop hl
|
pop hl
|
||||||
pop bc
|
pop bc
|
||||||
|
@ -110,12 +110,12 @@ GetCardPic: ; 8833e
|
|||||||
jr z, .GotClass
|
jr z, .GotClass
|
||||||
ld hl, KrisCardPic
|
ld hl, KrisCardPic
|
||||||
.GotClass:
|
.GotClass:
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
ld bc, $23 tiles
|
ld bc, $23 tiles
|
||||||
ld a, BANK(ChrisCardPic) ; BANK(KrisCardPic)
|
ld a, BANK(ChrisCardPic) ; BANK(KrisCardPic)
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
ld hl, CardGFX
|
ld hl, CardGFX
|
||||||
ld de, VTiles2 tile $23
|
ld de, vTiles2 tile $23
|
||||||
ld bc, 6 tiles
|
ld bc, 6 tiles
|
||||||
ld a, BANK(CardGFX)
|
ld a, BANK(CardGFX)
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
@ -140,7 +140,7 @@ GetPlayerBackpic: ; 88825
|
|||||||
GetChrisBackpic: ; 88830
|
GetChrisBackpic: ; 88830
|
||||||
ld hl, ChrisBackpic
|
ld hl, ChrisBackpic
|
||||||
ld b, BANK(ChrisBackpic)
|
ld b, BANK(ChrisBackpic)
|
||||||
ld de, VTiles2 tile $31
|
ld de, vTiles2 tile $31
|
||||||
ld c, 7 * 7
|
ld c, 7 * 7
|
||||||
predef DecompressPredef
|
predef DecompressPredef
|
||||||
ret
|
ret
|
||||||
@ -165,7 +165,7 @@ HOF_LoadTrainerFrontpic: ; 88840
|
|||||||
ld de, KrisPic
|
ld de, KrisPic
|
||||||
|
|
||||||
.GotPic:
|
.GotPic:
|
||||||
ld hl, VTiles2
|
ld hl, vTiles2
|
||||||
ld b, BANK(ChrisPic) ; BANK(KrisPic)
|
ld b, BANK(ChrisPic) ; BANK(KrisPic)
|
||||||
ld c, 7 * 7
|
ld c, 7 * 7
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
@ -194,7 +194,7 @@ DrawIntroPlayerPic: ; 88874
|
|||||||
jr z, .GotPic
|
jr z, .GotPic
|
||||||
ld de, KrisPic
|
ld de, KrisPic
|
||||||
.GotPic:
|
.GotPic:
|
||||||
ld hl, VTiles2
|
ld hl, vTiles2
|
||||||
ld b, BANK(ChrisPic) ; BANK(KrisPic)
|
ld b, BANK(ChrisPic) ; BANK(KrisPic)
|
||||||
ld c, 7 * 7 ; dimensions
|
ld c, 7 * 7 ; dimensions
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
@ -216,7 +216,7 @@ INCBIN "gfx/player/kris.2bpp"
|
|||||||
GetKrisBackpic: ; 88ec9
|
GetKrisBackpic: ; 88ec9
|
||||||
; Kris's backpic is uncompressed.
|
; Kris's backpic is uncompressed.
|
||||||
ld de, KrisBackpic
|
ld de, KrisBackpic
|
||||||
ld hl, VTiles2 tile $31
|
ld hl, vTiles2 tile $31
|
||||||
lb bc, BANK(KrisBackpic), 7 * 7 ; dimensions
|
lb bc, BANK(KrisBackpic), 7 * 7 ; dimensions
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
ret
|
ret
|
||||||
|
@ -156,7 +156,7 @@ UpdateOverworldMap: ; d536 (3:5536)
|
|||||||
ld a, [wBGMapAnchor + 1]
|
ld a, [wBGMapAnchor + 1]
|
||||||
inc a
|
inc a
|
||||||
and $3
|
and $3
|
||||||
or HIGH(VBGMap0)
|
or HIGH(vBGMap0)
|
||||||
ld [wBGMapAnchor + 1], a
|
ld [wBGMapAnchor + 1], a
|
||||||
.not_overflowed
|
.not_overflowed
|
||||||
ld hl, wMetatileStandingY
|
ld hl, wMetatileStandingY
|
||||||
@ -187,7 +187,7 @@ UpdateOverworldMap: ; d536 (3:5536)
|
|||||||
ld a, [wBGMapAnchor + 1]
|
ld a, [wBGMapAnchor + 1]
|
||||||
dec a
|
dec a
|
||||||
and $3
|
and $3
|
||||||
or HIGH(VBGMap0)
|
or HIGH(vBGMap0)
|
||||||
ld [wBGMapAnchor + 1], a
|
ld [wBGMapAnchor + 1], a
|
||||||
.not_underflowed
|
.not_underflowed
|
||||||
ld hl, wMetatileStandingY
|
ld hl, wMetatileStandingY
|
||||||
|
@ -828,7 +828,7 @@ Pokedex_UpdateUnownMode: ; 405df (10:45df)
|
|||||||
|
|
||||||
.decompress
|
.decompress
|
||||||
ld hl, PokedexLZ
|
ld hl, PokedexLZ
|
||||||
ld de, VTiles2 tile $31
|
ld de, vTiles2 tile $31
|
||||||
lb bc, BANK(PokedexLZ), $3a
|
lb bc, BANK(PokedexLZ), $3a
|
||||||
call DecompressRequest2bpp
|
call DecompressRequest2bpp
|
||||||
|
|
||||||
@ -2402,7 +2402,7 @@ Pokedex_LoadSelectedMonTiles: ; 4143b
|
|||||||
ld a, [wd265]
|
ld a, [wd265]
|
||||||
ld [CurPartySpecies], a
|
ld [CurPartySpecies], a
|
||||||
call GetBaseData
|
call GetBaseData
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
predef GetMonFrontpic
|
predef GetMonFrontpic
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -2410,7 +2410,7 @@ Pokedex_LoadSelectedMonTiles: ; 4143b
|
|||||||
ld a, BANK(sScratch)
|
ld a, BANK(sScratch)
|
||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
farcall LoadQuestionMarkPic
|
farcall LoadQuestionMarkPic
|
||||||
ld hl, VTiles2
|
ld hl, vTiles2
|
||||||
ld de, sScratch
|
ld de, sScratch
|
||||||
ld c, 7 * 7
|
ld c, 7 * 7
|
||||||
ld a, [hROMBank]
|
ld a, [hROMBank]
|
||||||
@ -2445,7 +2445,7 @@ Pokedex_LoadAnyFootprint: ; 4147b
|
|||||||
push hl
|
push hl
|
||||||
ld e, l
|
ld e, l
|
||||||
ld d, h
|
ld d, h
|
||||||
ld hl, VTiles2 tile $62
|
ld hl, vTiles2 tile $62
|
||||||
lb bc, BANK(Footprints), 2
|
lb bc, BANK(Footprints), 2
|
||||||
call Request1bpp
|
call Request1bpp
|
||||||
pop hl
|
pop hl
|
||||||
@ -2457,7 +2457,7 @@ Pokedex_LoadAnyFootprint: ; 4147b
|
|||||||
|
|
||||||
ld e, l
|
ld e, l
|
||||||
ld d, h
|
ld d, h
|
||||||
ld hl, VTiles2 tile $64
|
ld hl, vTiles2 tile $64
|
||||||
lb bc, BANK(Footprints), 2
|
lb bc, BANK(Footprints), 2
|
||||||
call Request1bpp
|
call Request1bpp
|
||||||
|
|
||||||
@ -2466,13 +2466,13 @@ Pokedex_LoadAnyFootprint: ; 4147b
|
|||||||
|
|
||||||
Pokedex_LoadGFX: ; 414b7
|
Pokedex_LoadGFX: ; 414b7
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
ld hl, VTiles2
|
ld hl, vTiles2
|
||||||
ld bc, $31 tiles
|
ld bc, $31 tiles
|
||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
call Pokedex_LoadInvertedFont
|
call Pokedex_LoadInvertedFont
|
||||||
call LoadFontsExtra
|
call LoadFontsExtra
|
||||||
ld hl, VTiles2 tile $60
|
ld hl, vTiles2 tile $60
|
||||||
ld bc, $20 tiles
|
ld bc, $20 tiles
|
||||||
call Pokedex_InvertTiles
|
call Pokedex_InvertTiles
|
||||||
call Pokedex_CheckSGB
|
call Pokedex_CheckSGB
|
||||||
@ -2482,12 +2482,12 @@ Pokedex_LoadGFX: ; 414b7
|
|||||||
|
|
||||||
.LoadPokedexLZ:
|
.LoadPokedexLZ:
|
||||||
ld hl, PokedexLZ
|
ld hl, PokedexLZ
|
||||||
ld de, VTiles2 tile $31
|
ld de, vTiles2 tile $31
|
||||||
call Decompress
|
call Decompress
|
||||||
|
|
||||||
.LoadPokedexSlowpokeLZ:
|
.LoadPokedexSlowpokeLZ:
|
||||||
ld hl, PokedexSlowpokeLZ
|
ld hl, PokedexSlowpokeLZ
|
||||||
ld de, VTiles0
|
ld de, vTiles0
|
||||||
call Decompress
|
call Decompress
|
||||||
ld a, 6
|
ld a, 6
|
||||||
call SkipMusic
|
call SkipMusic
|
||||||
@ -2496,7 +2496,7 @@ Pokedex_LoadGFX: ; 414b7
|
|||||||
|
|
||||||
Pokedex_LoadInvertedFont: ; 414fb
|
Pokedex_LoadInvertedFont: ; 414fb
|
||||||
call LoadStandardFont
|
call LoadStandardFont
|
||||||
ld hl, VTiles1
|
ld hl, vTiles1
|
||||||
ld bc, $80 tiles
|
ld bc, $80 tiles
|
||||||
|
|
||||||
Pokedex_InvertTiles: ; 41504
|
Pokedex_InvertTiles: ; 41504
|
||||||
@ -2536,7 +2536,7 @@ Pokedex_LoadUnownFont: ; 41a2c
|
|||||||
ld bc, 27 tiles
|
ld bc, 27 tiles
|
||||||
call Pokedex_InvertTiles
|
call Pokedex_InvertTiles
|
||||||
ld de, sScratch + $188
|
ld de, sScratch + $188
|
||||||
ld hl, VTiles2 tile $40
|
ld hl, vTiles2 tile $40
|
||||||
lb bc, BANK(Pokedex_LoadUnownFont), 27
|
lb bc, BANK(Pokedex_LoadUnownFont), 27
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
call CloseSRAM
|
call CloseSRAM
|
||||||
@ -2555,7 +2555,7 @@ Pokedex_LoadUnownFrontpicTiles: ; 41a58 (10:5a58)
|
|||||||
ld a, UNOWN
|
ld a, UNOWN
|
||||||
ld [CurPartySpecies], a
|
ld [CurPartySpecies], a
|
||||||
call GetBaseData
|
call GetBaseData
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
predef GetMonFrontpic
|
predef GetMonFrontpic
|
||||||
pop af
|
pop af
|
||||||
ld [UnownLetter], a
|
ld [UnownLetter], a
|
||||||
@ -2585,7 +2585,7 @@ _NewPokedexEntry: ; 41a7f
|
|||||||
call EnableLCD
|
call EnableLCD
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call GetBaseData
|
call GetBaseData
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
predef GetMonFrontpic
|
predef GetMonFrontpic
|
||||||
ld a, SCGB_POKEDEX
|
ld a, SCGB_POKEDEX
|
||||||
call Pokedex_GetSGBLayout
|
call Pokedex_GetSGBLayout
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
LoadSGBPokedexGFX: ; 1ddf1c
|
LoadSGBPokedexGFX: ; 1ddf1c
|
||||||
ld hl, SGBPokedexGFX_LZ
|
ld hl, SGBPokedexGFX_LZ
|
||||||
ld de, VTiles2 tile $31
|
ld de, vTiles2 tile $31
|
||||||
call Decompress
|
call Decompress
|
||||||
ret
|
ret
|
||||||
|
|
||||||
LoadSGBPokedexGFX2: ; 1ddf26 (77:5f26)
|
LoadSGBPokedexGFX2: ; 1ddf26 (77:5f26)
|
||||||
ld hl, SGBPokedexGFX_LZ
|
ld hl, SGBPokedexGFX_LZ
|
||||||
ld de, VTiles2 tile $31
|
ld de, vTiles2 tile $31
|
||||||
lb bc, BANK(SGBPokedexGFX_LZ), $3a
|
lb bc, BANK(SGBPokedexGFX_LZ), $3a
|
||||||
call DecompressRequest2bpp
|
call DecompressRequest2bpp
|
||||||
ret
|
ret
|
||||||
|
@ -35,9 +35,9 @@ PokeGear: ; 90b8d (24:4b8d)
|
|||||||
pop af
|
pop af
|
||||||
ld [Options], a
|
ld [Options], a
|
||||||
call ClearBGPalettes
|
call ClearBGPalettes
|
||||||
xor a ; LOW(VBGMap0)
|
xor a ; LOW(vBGMap0)
|
||||||
ld [hBGMapAddress], a
|
ld [hBGMapAddress], a
|
||||||
ld a, HIGH(VBGMap0)
|
ld a, HIGH(vBGMap0)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
ld a, $90
|
ld a, $90
|
||||||
ld [hWY], a
|
ld [hWY], a
|
||||||
@ -88,15 +88,15 @@ PokeGear: ; 90b8d (24:4b8d)
|
|||||||
Pokegear_LoadGFX: ; 90c4e
|
Pokegear_LoadGFX: ; 90c4e
|
||||||
call ClearVBank1
|
call ClearVBank1
|
||||||
ld hl, TownMapGFX
|
ld hl, TownMapGFX
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
ld a, BANK(TownMapGFX)
|
ld a, BANK(TownMapGFX)
|
||||||
call FarDecompress
|
call FarDecompress
|
||||||
ld hl, PokegearGFX
|
ld hl, PokegearGFX
|
||||||
ld de, VTiles2 + $30 tiles
|
ld de, vTiles2 + $30 tiles
|
||||||
ld a, BANK(PokegearGFX)
|
ld a, BANK(PokegearGFX)
|
||||||
call FarDecompress
|
call FarDecompress
|
||||||
ld hl, PokegearSpritesGFX
|
ld hl, PokegearSpritesGFX
|
||||||
ld de, VTiles0
|
ld de, vTiles0
|
||||||
ld a, BANK(PokegearSpritesGFX)
|
ld a, BANK(PokegearSpritesGFX)
|
||||||
call Decompress
|
call Decompress
|
||||||
ld a, [MapGroup]
|
ld a, [MapGroup]
|
||||||
@ -113,7 +113,7 @@ Pokegear_LoadGFX: ; 90c4e
|
|||||||
ld a, b
|
ld a, b
|
||||||
; standing sprite
|
; standing sprite
|
||||||
push af
|
push af
|
||||||
ld de, VTiles0 tile $10
|
ld de, vTiles0 tile $10
|
||||||
ld bc, 4 tiles
|
ld bc, 4 tiles
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
pop af
|
pop af
|
||||||
@ -121,14 +121,14 @@ Pokegear_LoadGFX: ; 90c4e
|
|||||||
; walking sprite
|
; walking sprite
|
||||||
ld de, 12 tiles
|
ld de, 12 tiles
|
||||||
add hl, de
|
add hl, de
|
||||||
ld de, VTiles0 tile $14
|
ld de, vTiles0 tile $14
|
||||||
ld bc, 4 tiles
|
ld bc, 4 tiles
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.ssaqua
|
.ssaqua
|
||||||
ld hl, FastShipGFX
|
ld hl, FastShipGFX
|
||||||
ld de, VTiles0 tile $10
|
ld de, vTiles0 tile $10
|
||||||
ld bc, 8 tiles
|
ld bc, 8 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ret
|
ret
|
||||||
@ -243,18 +243,18 @@ InitPokegearTilemap: ; 90da8 (24:4da8)
|
|||||||
ld a, [wcf65]
|
ld a, [wcf65]
|
||||||
and a
|
and a
|
||||||
jr nz, .kanto_0
|
jr nz, .kanto_0
|
||||||
xor a ; LOW(VBGMap0)
|
xor a ; LOW(vBGMap0)
|
||||||
ld [hBGMapAddress], a
|
ld [hBGMapAddress], a
|
||||||
ld a, HIGH(VBGMap0)
|
ld a, HIGH(vBGMap0)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
call .UpdateBGMap
|
call .UpdateBGMap
|
||||||
ld a, $90
|
ld a, $90
|
||||||
jr .finish
|
jr .finish
|
||||||
|
|
||||||
.kanto_0
|
.kanto_0
|
||||||
xor a ; LOW(VBGMap1)
|
xor a ; LOW(vBGMap1)
|
||||||
ld [hBGMapAddress], a
|
ld [hBGMapAddress], a
|
||||||
ld a, HIGH(VBGMap1)
|
ld a, HIGH(vBGMap1)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
call .UpdateBGMap
|
call .UpdateBGMap
|
||||||
xor a
|
xor a
|
||||||
@ -2119,7 +2119,7 @@ _FlyMap: ; 91af3
|
|||||||
farcall ClearSpriteAnims
|
farcall ClearSpriteAnims
|
||||||
call LoadTownMapGFX
|
call LoadTownMapGFX
|
||||||
ld de, FlyMapLabelBorderGFX
|
ld de, FlyMapLabelBorderGFX
|
||||||
ld hl, VTiles2 tile $30
|
ld hl, vTiles2 tile $30
|
||||||
lb bc, BANK(FlyMapLabelBorderGFX), 6
|
lb bc, BANK(FlyMapLabelBorderGFX), 6
|
||||||
call Request1bpp
|
call Request1bpp
|
||||||
call FlyMap
|
call FlyMap
|
||||||
@ -2161,9 +2161,9 @@ _FlyMap: ; 91af3
|
|||||||
call ClearBGPalettes
|
call ClearBGPalettes
|
||||||
ld a, $90
|
ld a, $90
|
||||||
ld [hWY], a
|
ld [hWY], a
|
||||||
xor a ; LOW(VBGMap0)
|
xor a ; LOW(vBGMap0)
|
||||||
ld [hBGMapAddress], a
|
ld [hBGMapAddress], a
|
||||||
ld a, HIGH(VBGMap0)
|
ld a, HIGH(vBGMap0)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
ld a, [wTownMapPlayerIconLandmark]
|
ld a, [wTownMapPlayerIconLandmark]
|
||||||
ld e, a
|
ld e, a
|
||||||
@ -2455,18 +2455,18 @@ _Area: ; 91d11
|
|||||||
ld a, $1
|
ld a, $1
|
||||||
ld [hInMenu], a
|
ld [hInMenu], a
|
||||||
ld de, PokedexNestIconGFX
|
ld de, PokedexNestIconGFX
|
||||||
ld hl, VTiles0 tile $7f
|
ld hl, vTiles0 tile $7f
|
||||||
lb bc, BANK(PokedexNestIconGFX), 1
|
lb bc, BANK(PokedexNestIconGFX), 1
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
call .GetPlayerOrFastShipIcon
|
call .GetPlayerOrFastShipIcon
|
||||||
ld hl, VTiles0 tile $78
|
ld hl, vTiles0 tile $78
|
||||||
ld c, 4
|
ld c, 4
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
call LoadTownMapGFX
|
call LoadTownMapGFX
|
||||||
call FillKantoMap
|
call FillKantoMap
|
||||||
call .PlaceString_MonsNest
|
call .PlaceString_MonsNest
|
||||||
call TownMapPals
|
call TownMapPals
|
||||||
hlbgcoord 0, 0, VBGMap1
|
hlbgcoord 0, 0, vBGMap1
|
||||||
call TownMapBGUpdate
|
call TownMapBGUpdate
|
||||||
call FillJohtoMap
|
call FillJohtoMap
|
||||||
call .PlaceString_MonsNest
|
call .PlaceString_MonsNest
|
||||||
@ -2871,7 +2871,7 @@ TownMapPlayerIcon: ; 91fa6
|
|||||||
push af
|
push af
|
||||||
farcall GetPlayerIcon
|
farcall GetPlayerIcon
|
||||||
; Standing icon
|
; Standing icon
|
||||||
ld hl, VTiles0 tile $10
|
ld hl, vTiles0 tile $10
|
||||||
ld c, 4 ; # tiles
|
ld c, 4 ; # tiles
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
; Walking icon
|
; Walking icon
|
||||||
@ -2879,7 +2879,7 @@ TownMapPlayerIcon: ; 91fa6
|
|||||||
add hl, de
|
add hl, de
|
||||||
ld d, h
|
ld d, h
|
||||||
ld e, l
|
ld e, l
|
||||||
ld hl, VTiles0 tile $14
|
ld hl, vTiles0 tile $14
|
||||||
ld c, 4 ; # tiles
|
ld c, 4 ; # tiles
|
||||||
ld a, BANK(ChrisSpriteGFX) ; does nothing
|
ld a, BANK(ChrisSpriteGFX) ; does nothing
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
@ -2913,7 +2913,7 @@ TownMapPlayerIcon: ; 91fa6
|
|||||||
|
|
||||||
LoadTownMapGFX: ; 91ff2
|
LoadTownMapGFX: ; 91ff2
|
||||||
ld hl, TownMapGFX
|
ld hl, TownMapGFX
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
lb bc, BANK(TownMapGFX), $30
|
lb bc, BANK(TownMapGFX), $30
|
||||||
call DecompressRequest2bpp
|
call DecompressRequest2bpp
|
||||||
ret
|
ret
|
||||||
@ -2948,13 +2948,13 @@ INCBIN "gfx/pokegear/flymap_label_border.1bpp"
|
|||||||
farcall ClearSpriteAnims
|
farcall ClearSpriteAnims
|
||||||
call LoadTownMapGFX
|
call LoadTownMapGFX
|
||||||
ld de, FlyMapLabelBorderGFX
|
ld de, FlyMapLabelBorderGFX
|
||||||
ld hl, VTiles2 tile $30
|
ld hl, vTiles2 tile $30
|
||||||
lb bc, BANK(FlyMapLabelBorderGFX), 6
|
lb bc, BANK(FlyMapLabelBorderGFX), 6
|
||||||
call Request1bpp
|
call Request1bpp
|
||||||
call FillKantoMap
|
call FillKantoMap
|
||||||
call TownMapBubble
|
call TownMapBubble
|
||||||
call TownMapPals
|
call TownMapPals
|
||||||
hlbgcoord 0, 0, VBGMap1
|
hlbgcoord 0, 0, vBGMap1
|
||||||
call TownMapBGUpdate
|
call TownMapBGUpdate
|
||||||
call FillJohtoMap
|
call FillJohtoMap
|
||||||
call TownMapBubble
|
call TownMapBubble
|
||||||
@ -3003,9 +3003,9 @@ INCBIN "gfx/pokegear/flymap_label_border.1bpp"
|
|||||||
call ClearBGPalettes
|
call ClearBGPalettes
|
||||||
ld a, $90
|
ld a, $90
|
||||||
ld [hWY], a
|
ld [hWY], a
|
||||||
xor a ; LOW(VBGMap0)
|
xor a ; LOW(vBGMap0)
|
||||||
ld [hBGMapAddress], a
|
ld [hBGMapAddress], a
|
||||||
ld a, HIGH(VBGMap0)
|
ld a, HIGH(vBGMap0)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
ld a, [wTownMapPlayerIconLandmark]
|
ld a, [wTownMapPlayerIconLandmark]
|
||||||
ld e, a
|
ld e, a
|
||||||
|
@ -141,17 +141,17 @@ PrintPartyMonPage1: ; 1dc381
|
|||||||
call LoadFontsBattleExtra
|
call LoadFontsBattleExtra
|
||||||
|
|
||||||
ld de, GBPrinterHPIcon
|
ld de, GBPrinterHPIcon
|
||||||
ld hl, VTiles2 tile $71
|
ld hl, vTiles2 tile $71
|
||||||
lb bc, BANK(GBPrinterHPIcon), 1
|
lb bc, BANK(GBPrinterHPIcon), 1
|
||||||
call Request1bpp
|
call Request1bpp
|
||||||
|
|
||||||
ld de, GBPrinterLvIcon
|
ld de, GBPrinterLvIcon
|
||||||
ld hl, VTiles2 tile $6e
|
ld hl, vTiles2 tile $6e
|
||||||
lb bc, BANK(GBPrinterLvIcon), 1
|
lb bc, BANK(GBPrinterLvIcon), 1
|
||||||
call Request1bpp
|
call Request1bpp
|
||||||
|
|
||||||
ld de, ShinyIconGFX
|
ld de, ShinyIconGFX
|
||||||
ld hl, VTiles2 tile $3f
|
ld hl, vTiles2 tile $3f
|
||||||
lb bc, BANK(ShinyIconGFX), 1
|
lb bc, BANK(ShinyIconGFX), 1
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ PrintDexEntry: ; 8442c
|
|||||||
ld a, [wPrinterQueueLength]
|
ld a, [wPrinterQueueLength]
|
||||||
push af
|
push af
|
||||||
|
|
||||||
ld hl, VTiles1
|
ld hl, vTiles1
|
||||||
ld de, FontInversed
|
ld de, FontInversed
|
||||||
lb bc, BANK(FontInversed), $80
|
lb bc, BANK(FontInversed), $80
|
||||||
call Request1bpp
|
call Request1bpp
|
||||||
|
@ -5,7 +5,7 @@ DrawKrisPackGFX: ; 48e81
|
|||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld e, a
|
ld e, a
|
||||||
ld d, [hl]
|
ld d, [hl]
|
||||||
ld hl, VTiles2 tile $50
|
ld hl, vTiles2 tile $50
|
||||||
lb bc, BANK(PackFGFX), 15
|
lb bc, BANK(PackFGFX), 15
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ret
|
ret
|
||||||
|
@ -21,11 +21,11 @@ PhoneRing_CopyTilemapAtOnce: ; 4d188
|
|||||||
jr c, .wait
|
jr c, .wait
|
||||||
|
|
||||||
di
|
di
|
||||||
ld a, BANK(VBGMap2)
|
ld a, BANK(vBGMap2)
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
hlcoord 0, 0, AttrMap
|
hlcoord 0, 0, AttrMap
|
||||||
call .CopyTilemapAtOnce
|
call .CopyTilemapAtOnce
|
||||||
ld a, BANK(VBGMap0)
|
ld a, BANK(vBGMap0)
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
hlcoord 0, 0
|
hlcoord 0, 0
|
||||||
call .CopyTilemapAtOnce
|
call .CopyTilemapAtOnce
|
||||||
|
@ -18,11 +18,11 @@ SaveMenu_CopyTilemapAtOnce: ; 4cf45 (13:4f45)
|
|||||||
jr c, .WaitLY
|
jr c, .WaitLY
|
||||||
|
|
||||||
di
|
di
|
||||||
ld a, BANK(VBGMap2)
|
ld a, BANK(vBGMap2)
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
hlcoord 0, 0, AttrMap
|
hlcoord 0, 0, AttrMap
|
||||||
call .CopyTilemapAtOnce
|
call .CopyTilemapAtOnce
|
||||||
ld a, BANK(VBGMap0)
|
ld a, BANK(vBGMap0)
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
hlcoord 0, 0
|
hlcoord 0, 0
|
||||||
call .CopyTilemapAtOnce
|
call .CopyTilemapAtOnce
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
GetTrademonFrontpic: ; 4d7fd
|
GetTrademonFrontpic: ; 4d7fd
|
||||||
ld a, [wOTTrademonSpecies]
|
ld a, [wOTTrademonSpecies]
|
||||||
ld hl, wOTTrademonDVs
|
ld hl, wOTTrademonDVs
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
push de
|
push de
|
||||||
push af
|
push af
|
||||||
predef GetUnownLetter
|
predef GetUnownLetter
|
||||||
|
@ -36,7 +36,7 @@ _SlotMachine:
|
|||||||
call DelayFrame
|
call DelayFrame
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
hlbgcoord 0, 0
|
hlbgcoord 0, 0
|
||||||
ld bc, VBGMap1 - VBGMap0
|
ld bc, vBGMap1 - vBGMap0
|
||||||
ld a, " "
|
ld a, " "
|
||||||
call ByteFill
|
call ByteFill
|
||||||
ld b, SCGB_SLOT_MACHINE
|
ld b, SCGB_SLOT_MACHINE
|
||||||
@ -48,19 +48,19 @@ _SlotMachine:
|
|||||||
call ByteFill
|
call ByteFill
|
||||||
|
|
||||||
ld hl, Slots2LZ
|
ld hl, Slots2LZ
|
||||||
ld de, VTiles0 tile $00
|
ld de, vTiles0 tile $00
|
||||||
call Decompress
|
call Decompress
|
||||||
|
|
||||||
ld hl, Slots3LZ
|
ld hl, Slots3LZ
|
||||||
ld de, VTiles0 tile $40
|
ld de, vTiles0 tile $40
|
||||||
call Decompress
|
call Decompress
|
||||||
|
|
||||||
ld hl, Slots1LZ
|
ld hl, Slots1LZ
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
call Decompress
|
call Decompress
|
||||||
|
|
||||||
ld hl, Slots2LZ
|
ld hl, Slots2LZ
|
||||||
ld de, VTiles2 tile $25
|
ld de, vTiles2 tile $25
|
||||||
call Decompress
|
call Decompress
|
||||||
|
|
||||||
ld hl, SlotsTilemap
|
ld hl, SlotsTilemap
|
||||||
|
@ -386,7 +386,7 @@ InitSpriteAnimBuffer: ; 8d0ec
|
|||||||
|
|
||||||
GetSpriteAnimVTile: ; 8d109
|
GetSpriteAnimVTile: ; 8d109
|
||||||
; a = wSpriteAnimDict[a] if a in wSpriteAnimDict else 0
|
; a = wSpriteAnimDict[a] if a in wSpriteAnimDict else 0
|
||||||
; VTiles offset
|
; vTiles offset
|
||||||
push hl
|
push hl
|
||||||
push bc
|
push bc
|
||||||
ld hl, wSpriteAnimDict
|
ld hl, wSpriteAnimDict
|
||||||
@ -631,7 +631,7 @@ AnimateEndOfExpBar: ; 8e79d
|
|||||||
ld de, SGBEndOfExpBarGFX
|
ld de, SGBEndOfExpBarGFX
|
||||||
|
|
||||||
.load
|
.load
|
||||||
ld hl, VTiles0 tile $00
|
ld hl, vTiles0 tile $00
|
||||||
lb bc, BANK(EndOfExpBarGFX), 1
|
lb bc, BANK(EndOfExpBarGFX), 1
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ld c, 8
|
ld c, 8
|
||||||
|
@ -865,7 +865,7 @@ StatsScreen_PlaceFrontpic: ; 4e226 (13:6226)
|
|||||||
call IsAPokemon
|
call IsAPokemon
|
||||||
ret c
|
ret c
|
||||||
call StatsScreen_LoadTextBoxSpaceGFX
|
call StatsScreen_LoadTextBoxSpaceGFX
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
predef GetAnimatedFrontpicPredef
|
predef GetAnimatedFrontpicPredef
|
||||||
hlcoord 0, 0
|
hlcoord 0, 0
|
||||||
ld d, $0
|
ld d, $0
|
||||||
@ -954,7 +954,7 @@ StatsScreen_LoadTextBoxSpaceGFX: ; 4e307 (13:6307)
|
|||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld de, TextBoxSpaceGFX
|
ld de, TextBoxSpaceGFX
|
||||||
lb bc, BANK(TextBoxSpaceGFX), 1
|
lb bc, BANK(TextBoxSpaceGFX), 1
|
||||||
ld hl, VTiles2 tile $7f
|
ld hl, vTiles2 tile $7f
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
pop af
|
pop af
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
@ -1071,7 +1071,7 @@ StatsScreen_AnimateEgg: ; 4e497 (13:6497)
|
|||||||
ld a, $1
|
ld a, $1
|
||||||
ld [wBoxAlignment], a
|
ld [wBoxAlignment], a
|
||||||
call StatsScreen_LoadTextBoxSpaceGFX
|
call StatsScreen_LoadTextBoxSpaceGFX
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
predef GetAnimatedFrontpicPredef
|
predef GetAnimatedFrontpicPredef
|
||||||
pop de
|
pop de
|
||||||
hlcoord 0, 0
|
hlcoord 0, 0
|
||||||
|
@ -24,15 +24,15 @@ InitClock: ; 90672 (24:4672)
|
|||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
call LoadStandardFont
|
call LoadStandardFont
|
||||||
ld de, TimeSetBackgroundGFX
|
ld de, TimeSetBackgroundGFX
|
||||||
ld hl, VTiles2 tile $00
|
ld hl, vTiles2 tile $00
|
||||||
lb bc, BANK(TimeSetBackgroundGFX), 1
|
lb bc, BANK(TimeSetBackgroundGFX), 1
|
||||||
call Request1bpp
|
call Request1bpp
|
||||||
ld de, TimeSetUpArrowGFX
|
ld de, TimeSetUpArrowGFX
|
||||||
ld hl, VTiles2 tile $01
|
ld hl, vTiles2 tile $01
|
||||||
lb bc, BANK(TimeSetUpArrowGFX), 1
|
lb bc, BANK(TimeSetUpArrowGFX), 1
|
||||||
call Request1bpp
|
call Request1bpp
|
||||||
ld de, TimeSetDownArrowGFX
|
ld de, TimeSetDownArrowGFX
|
||||||
ld hl, VTiles2 tile $02
|
ld hl, vTiles2 tile $02
|
||||||
lb bc, BANK(TimeSetDownArrowGFX), 1
|
lb bc, BANK(TimeSetDownArrowGFX), 1
|
||||||
call Request1bpp
|
call Request1bpp
|
||||||
call .ClearScreen
|
call .ClearScreen
|
||||||
@ -410,11 +410,11 @@ Special_SetDayOfWeek: ; 90913
|
|||||||
ld a, $1
|
ld a, $1
|
||||||
ld [hInMenu], a
|
ld [hInMenu], a
|
||||||
ld de, TimeSetUpArrowGFX
|
ld de, TimeSetUpArrowGFX
|
||||||
ld hl, VTiles1 tile $6f
|
ld hl, vTiles1 tile $6f
|
||||||
lb bc, BANK(TimeSetUpArrowGFX), 1
|
lb bc, BANK(TimeSetUpArrowGFX), 1
|
||||||
call Request1bpp
|
call Request1bpp
|
||||||
ld de, TimeSetDownArrowGFX
|
ld de, TimeSetDownArrowGFX
|
||||||
ld hl, VTiles1 tile $75
|
ld hl, vTiles1 tile $75
|
||||||
lb bc, BANK(TimeSetDownArrowGFX), 1
|
lb bc, BANK(TimeSetDownArrowGFX), 1
|
||||||
call Request1bpp
|
call Request1bpp
|
||||||
xor a
|
xor a
|
||||||
|
@ -26,7 +26,7 @@ _TitleScreen: ; 10ed67
|
|||||||
|
|
||||||
; Decompress running Suicune gfx
|
; Decompress running Suicune gfx
|
||||||
ld hl, TitleSuicuneGFX
|
ld hl, TitleSuicuneGFX
|
||||||
ld de, VTiles1
|
ld de, vTiles1
|
||||||
call Decompress
|
call Decompress
|
||||||
|
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ _TitleScreen: ; 10ed67
|
|||||||
; BG Map 1:
|
; BG Map 1:
|
||||||
|
|
||||||
; line 0 (copyright)
|
; line 0 (copyright)
|
||||||
hlbgcoord 0, 0, VBGMap1
|
hlbgcoord 0, 0, vBGMap1
|
||||||
ld bc, 1 bgrows
|
ld bc, 1 bgrows
|
||||||
ld a, 7 ; palette
|
ld a, 7 ; palette
|
||||||
call ByteFill
|
call ByteFill
|
||||||
@ -99,12 +99,12 @@ _TitleScreen: ; 10ed67
|
|||||||
|
|
||||||
; Decompress logo
|
; Decompress logo
|
||||||
ld hl, TitleLogoGFX
|
ld hl, TitleLogoGFX
|
||||||
ld de, VTiles1
|
ld de, vTiles1
|
||||||
call Decompress
|
call Decompress
|
||||||
|
|
||||||
; Decompress background crystal
|
; Decompress background crystal
|
||||||
ld hl, TitleCrystalGFX
|
ld hl, TitleCrystalGFX
|
||||||
ld de, VTiles0
|
ld de, vTiles0
|
||||||
call Decompress
|
call Decompress
|
||||||
|
|
||||||
|
|
||||||
@ -122,7 +122,7 @@ _TitleScreen: ; 10ed67
|
|||||||
call DrawTitleGraphic
|
call DrawTitleGraphic
|
||||||
|
|
||||||
; Draw copyright text
|
; Draw copyright text
|
||||||
hlbgcoord 3, 0, VBGMap1
|
hlbgcoord 3, 0, vBGMap1
|
||||||
lb bc, 1, 13
|
lb bc, 1, 13
|
||||||
ld d, $c
|
ld d, $c
|
||||||
ld e, $10
|
ld e, $10
|
||||||
@ -260,10 +260,10 @@ SuicuneFrameIterator: ; 10eea7
|
|||||||
; 10eece
|
; 10eece
|
||||||
|
|
||||||
.Frames: ; 10eece
|
.Frames: ; 10eece
|
||||||
db $80 ; VTiles4 tile $00
|
db $80 ; vTiles4 tile $00
|
||||||
db $88 ; VTiles4 tile $08
|
db $88 ; vTiles4 tile $08
|
||||||
db $00 ; VTiles5 tile $00
|
db $00 ; vTiles5 tile $00
|
||||||
db $08 ; VTiles5 tile $08
|
db $08 ; vTiles5 tile $08
|
||||||
; 10eed2
|
; 10eed2
|
||||||
|
|
||||||
|
|
||||||
|
@ -149,8 +149,8 @@ RunTradeAnimScript: ; 28fa1
|
|||||||
jr z, .NotCGB
|
jr z, .NotCGB
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
ld bc, sScratch - VTiles0
|
ld bc, sScratch - vTiles0
|
||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
ld a, $0
|
ld a, $0
|
||||||
@ -158,19 +158,19 @@ RunTradeAnimScript: ; 28fa1
|
|||||||
|
|
||||||
.NotCGB:
|
.NotCGB:
|
||||||
hlbgcoord 0, 0
|
hlbgcoord 0, 0
|
||||||
ld bc, sScratch - VBGMap0
|
ld bc, sScratch - vBGMap0
|
||||||
ld a, " "
|
ld a, " "
|
||||||
call ByteFill
|
call ByteFill
|
||||||
ld hl, TradeGameBoyLZ
|
ld hl, TradeGameBoyLZ
|
||||||
ld de, VTiles2 tile $31
|
ld de, vTiles2 tile $31
|
||||||
call Decompress
|
call Decompress
|
||||||
ld hl, TradeArrowGFX
|
ld hl, TradeArrowGFX
|
||||||
ld de, VTiles1 tile $6d
|
ld de, vTiles1 tile $6d
|
||||||
ld bc, $10
|
ld bc, $10
|
||||||
ld a, BANK(TradeArrowGFX)
|
ld a, BANK(TradeArrowGFX)
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
ld hl, TradeArrowGFX + $10
|
ld hl, TradeArrowGFX + $10
|
||||||
ld de, VTiles1 tile $6e
|
ld de, vTiles1 tile $6e
|
||||||
ld bc, $10
|
ld bc, $10
|
||||||
ld a, BANK(TradeArrowGFX)
|
ld a, BANK(TradeArrowGFX)
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
@ -186,11 +186,11 @@ RunTradeAnimScript: ; 28fa1
|
|||||||
call LoadTradeBallAndCableGFX
|
call LoadTradeBallAndCableGFX
|
||||||
ld a, [wPlayerTrademonSpecies]
|
ld a, [wPlayerTrademonSpecies]
|
||||||
ld hl, wPlayerTrademonDVs
|
ld hl, wPlayerTrademonDVs
|
||||||
ld de, VTiles0
|
ld de, vTiles0
|
||||||
call TradeAnim_GetFrontpic
|
call TradeAnim_GetFrontpic
|
||||||
ld a, [wOTTrademonSpecies]
|
ld a, [wOTTrademonSpecies]
|
||||||
ld hl, wOTTrademonDVs
|
ld hl, wOTTrademonDVs
|
||||||
ld de, VTiles0 tile $31
|
ld de, vTiles0 tile $31
|
||||||
call TradeAnim_GetFrontpic
|
call TradeAnim_GetFrontpic
|
||||||
ld a, [wPlayerTrademonSpecies]
|
ld a, [wPlayerTrademonSpecies]
|
||||||
ld de, wPlayerTrademonSpeciesName
|
ld de, wPlayerTrademonSpeciesName
|
||||||
@ -490,7 +490,7 @@ TradeAnim_TubeToPlayer8: ; 29229
|
|||||||
call DisableLCD
|
call DisableLCD
|
||||||
callfar ClearSpriteAnims
|
callfar ClearSpriteAnims
|
||||||
hlbgcoord 0, 0
|
hlbgcoord 0, 0
|
||||||
ld bc, sScratch - VBGMap0
|
ld bc, sScratch - vBGMap0
|
||||||
ld a, " "
|
ld a, " "
|
||||||
call ByteFill
|
call ByteFill
|
||||||
xor a
|
xor a
|
||||||
@ -627,7 +627,7 @@ TradeAnim_PlaceTrademonStatsOnTubeAnim: ; 292f6
|
|||||||
push af
|
push af
|
||||||
call ClearBGPalettes
|
call ClearBGPalettes
|
||||||
call WaitTop
|
call WaitTop
|
||||||
ld a, HIGH(VBGMap1)
|
ld a, HIGH(vBGMap1)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
hlcoord 0, 0
|
hlcoord 0, 0
|
||||||
@ -657,7 +657,7 @@ TradeAnim_PlaceTrademonStatsOnTubeAnim: ; 292f6
|
|||||||
call ByteFill
|
call ByteFill
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call WaitTop
|
call WaitTop
|
||||||
ld a, HIGH(VBGMap0)
|
ld a, HIGH(vBGMap0)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
ret
|
ret
|
||||||
@ -776,7 +776,7 @@ TradeAnim_TextboxScrollStart: ; 293de
|
|||||||
|
|
||||||
TradeAnim_ScrollOutRight: ; 293ea
|
TradeAnim_ScrollOutRight: ; 293ea
|
||||||
call WaitTop
|
call WaitTop
|
||||||
ld a, HIGH(VBGMap1)
|
ld a, HIGH(vBGMap1)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld a, $7
|
ld a, $7
|
||||||
@ -785,7 +785,7 @@ TradeAnim_ScrollOutRight: ; 293ea
|
|||||||
ld [hWY], a
|
ld [hWY], a
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
call WaitTop
|
call WaitTop
|
||||||
ld a, HIGH(VBGMap0)
|
ld a, HIGH(vBGMap0)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
call TradeAnim_IncrementJumptableIndex
|
call TradeAnim_IncrementJumptableIndex
|
||||||
@ -802,14 +802,14 @@ TradeAnim_ScrollOutRight2: ; 2940c
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.done
|
.done
|
||||||
ld a, HIGH(VBGMap1)
|
ld a, HIGH(vBGMap1)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld a, $7
|
ld a, $7
|
||||||
ld [hWX], a
|
ld [hWX], a
|
||||||
ld a, $90
|
ld a, $90
|
||||||
ld [hWY], a
|
ld [hWY], a
|
||||||
ld a, HIGH(VBGMap0)
|
ld a, HIGH(vBGMap0)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
call TradeAnim_AdvanceScriptPointer
|
call TradeAnim_AdvanceScriptPointer
|
||||||
ret
|
ret
|
||||||
@ -895,14 +895,14 @@ TradeAnim_GetNickname: ; 294a9
|
|||||||
; 294bb
|
; 294bb
|
||||||
|
|
||||||
TradeAnim_ShowGivemonFrontpic: ; 294bb
|
TradeAnim_ShowGivemonFrontpic: ; 294bb
|
||||||
ld de, VTiles0
|
ld de, vTiles0
|
||||||
jr TradeAnim_ShowFrontpic
|
jr TradeAnim_ShowFrontpic
|
||||||
|
|
||||||
TradeAnim_ShowGetmonFrontpic: ; 294c0
|
TradeAnim_ShowGetmonFrontpic: ; 294c0
|
||||||
ld de, VTiles0 tile $31
|
ld de, vTiles0 tile $31
|
||||||
TradeAnim_ShowFrontpic: ; 294c3
|
TradeAnim_ShowFrontpic: ; 294c3
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ld hl, VTiles2
|
ld hl, vTiles2
|
||||||
lb bc, 10, $31
|
lb bc, 10, $31
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
call WaitTop
|
call WaitTop
|
||||||
@ -1009,7 +1009,7 @@ ShowOTTrademonStats: ; 29549
|
|||||||
TrademonStats_MonTemplate: ; 29573
|
TrademonStats_MonTemplate: ; 29573
|
||||||
call WaitTop
|
call WaitTop
|
||||||
call TradeAnim_BlankTileMap
|
call TradeAnim_BlankTileMap
|
||||||
ld a, HIGH(VBGMap1)
|
ld a, HIGH(vBGMap1)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
hlcoord 3, 0
|
hlcoord 3, 0
|
||||||
ld b, $6
|
ld b, $6
|
||||||
@ -1032,7 +1032,7 @@ TrademonStats_MonTemplate: ; 29573
|
|||||||
TrademonStats_Egg: ; 295a1
|
TrademonStats_Egg: ; 295a1
|
||||||
call WaitTop
|
call WaitTop
|
||||||
call TradeAnim_BlankTileMap
|
call TradeAnim_BlankTileMap
|
||||||
ld a, HIGH(VBGMap1)
|
ld a, HIGH(vBGMap1)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
hlcoord 3, 0
|
hlcoord 3, 0
|
||||||
ld b, 6
|
ld b, 6
|
||||||
@ -1055,7 +1055,7 @@ TrademonStats_Egg: ; 295a1
|
|||||||
TrademonStats_WaitBGMap: ; 295d8
|
TrademonStats_WaitBGMap: ; 295d8
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call WaitTop
|
call WaitTop
|
||||||
ld a, HIGH(VBGMap0)
|
ld a, HIGH(vBGMap0)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -1499,15 +1499,15 @@ TradeAnim_FlashBGPals: ; 2981d
|
|||||||
LoadTradeBallAndCableGFX: ; 2982b
|
LoadTradeBallAndCableGFX: ; 2982b
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ld de, TradeBallGFX
|
ld de, TradeBallGFX
|
||||||
ld hl, VTiles0 tile $62
|
ld hl, vTiles0 tile $62
|
||||||
lb bc, BANK(TradeBallGFX), $6
|
lb bc, BANK(TradeBallGFX), $6
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ld de, TradePoofGFX
|
ld de, TradePoofGFX
|
||||||
ld hl, VTiles0 tile $68
|
ld hl, vTiles0 tile $68
|
||||||
lb bc, BANK(TradePoofGFX), $c
|
lb bc, BANK(TradePoofGFX), $c
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ld de, TradeCableGFX
|
ld de, TradeCableGFX
|
||||||
ld hl, VTiles0 tile $74
|
ld hl, vTiles0 tile $74
|
||||||
lb bc, BANK(TradeCableGFX), $4
|
lb bc, BANK(TradeCableGFX), $4
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
xor a
|
xor a
|
||||||
@ -1523,7 +1523,7 @@ LoadTradeBubbleGFX: ; 2985a
|
|||||||
ld e, $3
|
ld e, $3
|
||||||
callfar LoadMenuMonIcon
|
callfar LoadMenuMonIcon
|
||||||
ld de, TradeBubbleGFX
|
ld de, TradeBubbleGFX
|
||||||
ld hl, VTiles0 tile $72
|
ld hl, vTiles0 tile $72
|
||||||
lb bc, BANK(TradeBubbleGFX), $4
|
lb bc, BANK(TradeBubbleGFX), $4
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
xor a
|
xor a
|
||||||
|
@ -37,13 +37,13 @@ TrainerCard: ; 25105
|
|||||||
farcall GetCardPic
|
farcall GetCardPic
|
||||||
|
|
||||||
ld hl, CardRightCornerGFX
|
ld hl, CardRightCornerGFX
|
||||||
ld de, VTiles2 tile $1c
|
ld de, vTiles2 tile $1c
|
||||||
ld bc, 1 tiles
|
ld bc, 1 tiles
|
||||||
ld a, BANK(CardRightCornerGFX)
|
ld a, BANK(CardRightCornerGFX)
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
|
|
||||||
ld hl, CardStatusGFX
|
ld hl, CardStatusGFX
|
||||||
ld de, VTiles2 tile $29
|
ld de, vTiles2 tile $29
|
||||||
ld bc, 86 tiles
|
ld bc, 86 tiles
|
||||||
ld a, BANK(CardStatusGFX)
|
ld a, BANK(CardStatusGFX)
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
@ -98,7 +98,7 @@ TrainerCard_Page1_LoadGFX: ; 251b6 (9:51b6)
|
|||||||
call TrainerCard_InitBorder
|
call TrainerCard_InitBorder
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld de, CardStatusGFX
|
ld de, CardStatusGFX
|
||||||
ld hl, VTiles2 tile $29
|
ld hl, vTiles2 tile $29
|
||||||
lb bc, BANK(CardStatusGFX), 86
|
lb bc, BANK(CardStatusGFX), 86
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
call TrainerCard_Page1_PrintDexCaught_GameTime
|
call TrainerCard_Page1_PrintDexCaught_GameTime
|
||||||
@ -136,11 +136,11 @@ TrainerCard_Page2_LoadGFX: ; 251f4 (9:51f4)
|
|||||||
call TrainerCard_InitBorder
|
call TrainerCard_InitBorder
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld de, LeaderGFX
|
ld de, LeaderGFX
|
||||||
ld hl, VTiles2 tile $29
|
ld hl, vTiles2 tile $29
|
||||||
lb bc, BANK(LeaderGFX), $56
|
lb bc, BANK(LeaderGFX), $56
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ld de, BadgeGFX
|
ld de, BadgeGFX
|
||||||
ld hl, VTiles0 tile $00
|
ld hl, vTiles0 tile $00
|
||||||
lb bc, BANK(BadgeGFX), $2c
|
lb bc, BANK(BadgeGFX), $2c
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
call TrainerCard_Page2_3_InitObjectsAndStrings
|
call TrainerCard_Page2_3_InitObjectsAndStrings
|
||||||
@ -185,11 +185,11 @@ TrainerCard_Page3_LoadGFX: ; 2524c (9:524c)
|
|||||||
call TrainerCard_InitBorder
|
call TrainerCard_InitBorder
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld de, LeaderGFX2
|
ld de, LeaderGFX2
|
||||||
ld hl, VTiles2 tile $29
|
ld hl, vTiles2 tile $29
|
||||||
lb bc, BANK(LeaderGFX2), $56
|
lb bc, BANK(LeaderGFX2), $56
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ld de, BadgeGFX2
|
ld de, BadgeGFX2
|
||||||
ld hl, VTiles0 tile $00
|
ld hl, vTiles0 tile $00
|
||||||
lb bc, BANK(BadgeGFX2), $2c
|
lb bc, BANK(BadgeGFX2), $2c
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
call TrainerCard_Page2_3_InitObjectsAndStrings
|
call TrainerCard_Page2_3_InitObjectsAndStrings
|
||||||
|
@ -19,11 +19,11 @@ UnownPuzzle: ; e1190
|
|||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
ld hl, UnownPuzzleCursorGFX
|
ld hl, UnownPuzzleCursorGFX
|
||||||
ld de, VTiles1 tile $60
|
ld de, vTiles1 tile $60
|
||||||
ld bc, 4 tiles
|
ld bc, 4 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld hl, UnownPuzzleStartCancelLZ
|
ld hl, UnownPuzzleStartCancelLZ
|
||||||
ld de, VTiles1 tile $6d
|
ld de, vTiles1 tile $6d
|
||||||
call Decompress
|
call Decompress
|
||||||
call LoadUnownPuzzlePiecesGFX
|
call LoadUnownPuzzlePiecesGFX
|
||||||
hlcoord 0, 0
|
hlcoord 0, 0
|
||||||
@ -648,8 +648,8 @@ endm
|
|||||||
puzzle_coords 18, 18, 4, 4, 16, 15, PUZZLE_BORDER, 0
|
puzzle_coords 18, 18, 4, 4, 16, 15, PUZZLE_BORDER, 0
|
||||||
|
|
||||||
ConvertLoadedPuzzlePieces: ; e1631
|
ConvertLoadedPuzzlePieces: ; e1631
|
||||||
ld hl, VTiles2
|
ld hl, vTiles2
|
||||||
ld de, VTiles0
|
ld de, vTiles0
|
||||||
ld b, 6
|
ld b, 6
|
||||||
.loop
|
.loop
|
||||||
push bc
|
push bc
|
||||||
@ -821,14 +821,14 @@ endr
|
|||||||
; e1703
|
; e1703
|
||||||
|
|
||||||
GFXHeaders: ; e1703
|
GFXHeaders: ; e1703
|
||||||
dw .TileBordersGFX + 0 tiles, VTiles0 tile $00
|
dw .TileBordersGFX + 0 tiles, vTiles0 tile $00
|
||||||
dw .TileBordersGFX + 1 tiles, VTiles0 tile $01
|
dw .TileBordersGFX + 1 tiles, vTiles0 tile $01
|
||||||
dw .TileBordersGFX + 2 tiles, VTiles0 tile $02
|
dw .TileBordersGFX + 2 tiles, vTiles0 tile $02
|
||||||
dw .TileBordersGFX + 3 tiles, VTiles0 tile $0c
|
dw .TileBordersGFX + 3 tiles, vTiles0 tile $0c
|
||||||
dw .TileBordersGFX + 4 tiles, VTiles0 tile $0e
|
dw .TileBordersGFX + 4 tiles, vTiles0 tile $0e
|
||||||
dw .TileBordersGFX + 5 tiles, VTiles0 tile $18
|
dw .TileBordersGFX + 5 tiles, vTiles0 tile $18
|
||||||
dw .TileBordersGFX + 6 tiles, VTiles0 tile $19
|
dw .TileBordersGFX + 6 tiles, vTiles0 tile $19
|
||||||
dw .TileBordersGFX + 7 tiles, VTiles0 tile $1a
|
dw .TileBordersGFX + 7 tiles, vTiles0 tile $1a
|
||||||
; e1723
|
; e1723
|
||||||
|
|
||||||
.TileBordersGFX: ; e1723
|
.TileBordersGFX: ; e1723
|
||||||
@ -845,7 +845,7 @@ LoadUnownPuzzlePiecesGFX: ; e17a3
|
|||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
ld l, a
|
ld l, a
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
call Decompress
|
call Decompress
|
||||||
call ConvertLoadedPuzzlePieces
|
call ConvertLoadedPuzzlePieces
|
||||||
ret
|
ret
|
||||||
|
@ -16,18 +16,18 @@ UnusedTitleScreen: ; 10c000
|
|||||||
ld [hl], a ; wTitleScreenTimer + 1
|
ld [hl], a ; wTitleScreenTimer + 1
|
||||||
|
|
||||||
ld hl, UnusedTitleBG_GFX
|
ld hl, UnusedTitleBG_GFX
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
ld bc, VBGMap0 - VTiles2
|
ld bc, vBGMap0 - vTiles2
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
|
|
||||||
ld hl, UnusedTitleBG_GFX + $80 tiles
|
ld hl, UnusedTitleBG_GFX + $80 tiles
|
||||||
ld de, VTiles1
|
ld de, vTiles1
|
||||||
ld bc, VTiles2 - VTiles1
|
ld bc, vTiles2 - vTiles1
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
|
|
||||||
ld hl, UnusedTitleFG_GFX
|
ld hl, UnusedTitleFG_GFX
|
||||||
ld de, VTiles0
|
ld de, vTiles0
|
||||||
ld bc, VTiles1 - VTiles0
|
ld bc, vTiles1 - vTiles0
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
|
|
||||||
ld hl, UnusedTitleBG_Tilemap
|
ld hl, UnusedTitleBG_Tilemap
|
||||||
|
@ -233,9 +233,9 @@ LoadMapTimeOfDay: ; 104750
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.ClearBGMap: ; 104770 (41:4770)
|
.ClearBGMap: ; 104770 (41:4770)
|
||||||
ld a, HIGH(VBGMap0)
|
ld a, HIGH(vBGMap0)
|
||||||
ld [wBGMapAnchor + 1], a
|
ld [wBGMapAnchor + 1], a
|
||||||
xor a ; LOW(VBGMap0)
|
xor a ; LOW(vBGMap0)
|
||||||
ld [wBGMapAnchor], a
|
ld [wBGMapAnchor], a
|
||||||
ld [hSCY], a
|
ld [hSCY], a
|
||||||
ld [hSCX], a
|
ld [hSCX], a
|
||||||
@ -247,7 +247,7 @@ LoadMapTimeOfDay: ; 104750
|
|||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
|
|
||||||
xor a
|
xor a
|
||||||
ld bc, VBGMap1 - VBGMap0
|
ld bc, vBGMap1 - vBGMap0
|
||||||
hlbgcoord 0, 0
|
hlbgcoord 0, 0
|
||||||
call ByteFill
|
call ByteFill
|
||||||
|
|
||||||
@ -255,7 +255,7 @@ LoadMapTimeOfDay: ; 104750
|
|||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
|
|
||||||
ld a, "<BLACK>"
|
ld a, "<BLACK>"
|
||||||
ld bc, VBGMap1 - VBGMap0
|
ld bc, vBGMap1 - vBGMap0
|
||||||
hlbgcoord 0, 0
|
hlbgcoord 0, 0
|
||||||
call ByteFill
|
call ByteFill
|
||||||
ret
|
ret
|
||||||
|
46
gfx/font.asm
46
gfx/font.asm
@ -104,26 +104,26 @@ Functionfb43f: ; fb43f
|
|||||||
|
|
||||||
_LoadStandardFont:: ; fb449
|
_LoadStandardFont:: ; fb449
|
||||||
ld de, Font
|
ld de, Font
|
||||||
ld hl, VTiles1
|
ld hl, vTiles1
|
||||||
lb bc, BANK(Font), $80
|
lb bc, BANK(Font), $80
|
||||||
ld a, [rLCDC]
|
ld a, [rLCDC]
|
||||||
bit 7, a
|
bit 7, a
|
||||||
jp z, Copy1bpp
|
jp z, Copy1bpp
|
||||||
|
|
||||||
ld de, Font
|
ld de, Font
|
||||||
ld hl, VTiles1
|
ld hl, vTiles1
|
||||||
lb bc, BANK(Font), $20
|
lb bc, BANK(Font), $20
|
||||||
call Get1bpp_2
|
call Get1bpp_2
|
||||||
ld de, Font + $20 * LEN_1BPP_TILE
|
ld de, Font + $20 * LEN_1BPP_TILE
|
||||||
ld hl, VTiles1 tile $20
|
ld hl, vTiles1 tile $20
|
||||||
lb bc, BANK(Font), $20
|
lb bc, BANK(Font), $20
|
||||||
call Get1bpp_2
|
call Get1bpp_2
|
||||||
ld de, Font + $40 * LEN_1BPP_TILE
|
ld de, Font + $40 * LEN_1BPP_TILE
|
||||||
ld hl, VTiles1 tile $40
|
ld hl, vTiles1 tile $40
|
||||||
lb bc, BANK(Font), $20
|
lb bc, BANK(Font), $20
|
||||||
call Get1bpp_2
|
call Get1bpp_2
|
||||||
ld de, Font + $60 * LEN_1BPP_TILE
|
ld de, Font + $60 * LEN_1BPP_TILE
|
||||||
ld hl, VTiles1 tile $60
|
ld hl, vTiles1 tile $60
|
||||||
lb bc, BANK(Font), $20
|
lb bc, BANK(Font), $20
|
||||||
call Get1bpp_2
|
call Get1bpp_2
|
||||||
ret
|
ret
|
||||||
@ -131,15 +131,15 @@ _LoadStandardFont:: ; fb449
|
|||||||
|
|
||||||
_LoadFontsExtra1:: ; fb48a
|
_LoadFontsExtra1:: ; fb48a
|
||||||
ld de, MobilePhoneTilesGFX
|
ld de, MobilePhoneTilesGFX
|
||||||
ld hl, VTiles2 tile "<BLACK>" ; $60
|
ld hl, vTiles2 tile "<BLACK>" ; $60
|
||||||
lb bc, BANK(MobilePhoneTilesGFX), 1
|
lb bc, BANK(MobilePhoneTilesGFX), 1
|
||||||
call Get1bpp_2
|
call Get1bpp_2
|
||||||
ld de, OverworldPhoneIconGFX
|
ld de, OverworldPhoneIconGFX
|
||||||
ld hl, VTiles2 tile "<PHONE>" ; $62
|
ld hl, vTiles2 tile "<PHONE>" ; $62
|
||||||
lb bc, BANK(OverworldPhoneIconGFX), 1
|
lb bc, BANK(OverworldPhoneIconGFX), 1
|
||||||
call Get2bpp_2
|
call Get2bpp_2
|
||||||
ld de, FontExtra + 3 * LEN_2BPP_TILE
|
ld de, FontExtra + 3 * LEN_2BPP_TILE
|
||||||
ld hl, VTiles2 tile $63
|
ld hl, vTiles2 tile $63
|
||||||
lb bc, BANK(FontExtra), $16
|
lb bc, BANK(FontExtra), $16
|
||||||
call Get2bpp_2
|
call Get2bpp_2
|
||||||
jr LoadFrame
|
jr LoadFrame
|
||||||
@ -147,7 +147,7 @@ _LoadFontsExtra1:: ; fb48a
|
|||||||
|
|
||||||
_LoadFontsExtra2:: ; fb4b0
|
_LoadFontsExtra2:: ; fb4b0
|
||||||
ld de, FontsExtra2_UpArrowGFX
|
ld de, FontsExtra2_UpArrowGFX
|
||||||
ld hl, VTiles2 tile "▲" ; $61
|
ld hl, vTiles2 tile "▲" ; $61
|
||||||
ld b, BANK(FontsExtra2_UpArrowGFX)
|
ld b, BANK(FontsExtra2_UpArrowGFX)
|
||||||
ld c, 1
|
ld c, 1
|
||||||
call Get2bpp_2
|
call Get2bpp_2
|
||||||
@ -156,7 +156,7 @@ _LoadFontsExtra2:: ; fb4b0
|
|||||||
|
|
||||||
_LoadFontsBattleExtra:: ; fb4be
|
_LoadFontsBattleExtra:: ; fb4be
|
||||||
ld de, FontBattleExtra
|
ld de, FontBattleExtra
|
||||||
ld hl, VTiles2 tile $60
|
ld hl, vTiles2 tile $60
|
||||||
lb bc, BANK(FontBattleExtra), $19
|
lb bc, BANK(FontBattleExtra), $19
|
||||||
call Get2bpp_2
|
call Get2bpp_2
|
||||||
jr LoadFrame
|
jr LoadFrame
|
||||||
@ -170,10 +170,10 @@ LoadFrame: ; fb4cc
|
|||||||
call AddNTimes
|
call AddNTimes
|
||||||
ld d, h
|
ld d, h
|
||||||
ld e, l
|
ld e, l
|
||||||
ld hl, VTiles2 tile "┌" ; $79
|
ld hl, vTiles2 tile "┌" ; $79
|
||||||
lb bc, BANK(Frames), 6
|
lb bc, BANK(Frames), 6
|
||||||
call Get1bpp_2
|
call Get1bpp_2
|
||||||
ld hl, VTiles2 tile " " ; $7f
|
ld hl, vTiles2 tile " " ; $7f
|
||||||
ld de, TextBoxSpaceGFX
|
ld de, TextBoxSpaceGFX
|
||||||
lb bc, BANK(TextBoxSpaceGFX), 1
|
lb bc, BANK(TextBoxSpaceGFX), 1
|
||||||
call Get1bpp_2
|
call Get1bpp_2
|
||||||
@ -182,10 +182,10 @@ LoadFrame: ; fb4cc
|
|||||||
|
|
||||||
LoadBattleFontsHPBar: ; fb4f2
|
LoadBattleFontsHPBar: ; fb4f2
|
||||||
ld de, FontBattleExtra
|
ld de, FontBattleExtra
|
||||||
ld hl, VTiles2 tile $60
|
ld hl, vTiles2 tile $60
|
||||||
lb bc, BANK(FontBattleExtra), $c
|
lb bc, BANK(FontBattleExtra), $c
|
||||||
call Get2bpp_2
|
call Get2bpp_2
|
||||||
ld hl, VTiles2 tile $70
|
ld hl, vTiles2 tile $70
|
||||||
ld de, FontBattleExtra tile $10
|
ld de, FontBattleExtra tile $10
|
||||||
lb bc, BANK(FontBattleExtra), 3
|
lb bc, BANK(FontBattleExtra), 3
|
||||||
call Get2bpp_2
|
call Get2bpp_2
|
||||||
@ -193,19 +193,19 @@ LoadBattleFontsHPBar: ; fb4f2
|
|||||||
|
|
||||||
LoadHPBar: ; fb50d
|
LoadHPBar: ; fb50d
|
||||||
ld de, EnemyHPBarBorderGFX
|
ld de, EnemyHPBarBorderGFX
|
||||||
ld hl, VTiles2 tile $6c
|
ld hl, vTiles2 tile $6c
|
||||||
lb bc, BANK(EnemyHPBarBorderGFX), 4
|
lb bc, BANK(EnemyHPBarBorderGFX), 4
|
||||||
call Get1bpp_2
|
call Get1bpp_2
|
||||||
ld de, HPExpBarBorderGFX
|
ld de, HPExpBarBorderGFX
|
||||||
ld hl, VTiles2 tile $73
|
ld hl, vTiles2 tile $73
|
||||||
lb bc, BANK(HPExpBarBorderGFX), 6
|
lb bc, BANK(HPExpBarBorderGFX), 6
|
||||||
call Get1bpp_2
|
call Get1bpp_2
|
||||||
ld de, ExpBarGFX
|
ld de, ExpBarGFX
|
||||||
ld hl, VTiles2 tile $55
|
ld hl, vTiles2 tile $55
|
||||||
lb bc, BANK(ExpBarGFX), 9
|
lb bc, BANK(ExpBarGFX), 9
|
||||||
call Get2bpp_2
|
call Get2bpp_2
|
||||||
ld de, MobilePhoneTilesGFX + 9 * LEN_2BPP_TILE
|
ld de, MobilePhoneTilesGFX + 9 * LEN_2BPP_TILE
|
||||||
ld hl, VTiles2 tile $5e
|
ld hl, vTiles2 tile $5e
|
||||||
lb bc, BANK(MobilePhoneTilesGFX), 2
|
lb bc, BANK(MobilePhoneTilesGFX), 2
|
||||||
call Get2bpp_2
|
call Get2bpp_2
|
||||||
ret
|
ret
|
||||||
@ -214,24 +214,24 @@ LoadHPBar: ; fb50d
|
|||||||
StatsScreen_LoadFont: ; fb53e
|
StatsScreen_LoadFont: ; fb53e
|
||||||
call _LoadFontsBattleExtra
|
call _LoadFontsBattleExtra
|
||||||
ld de, EnemyHPBarBorderGFX
|
ld de, EnemyHPBarBorderGFX
|
||||||
ld hl, VTiles2 tile $6c
|
ld hl, vTiles2 tile $6c
|
||||||
lb bc, BANK(EnemyHPBarBorderGFX), 4
|
lb bc, BANK(EnemyHPBarBorderGFX), 4
|
||||||
call Get1bpp_2
|
call Get1bpp_2
|
||||||
ld de, HPExpBarBorderGFX
|
ld de, HPExpBarBorderGFX
|
||||||
ld hl, VTiles2 tile $78
|
ld hl, vTiles2 tile $78
|
||||||
lb bc, BANK(HPExpBarBorderGFX), 1
|
lb bc, BANK(HPExpBarBorderGFX), 1
|
||||||
call Get1bpp_2
|
call Get1bpp_2
|
||||||
ld de, HPExpBarBorderGFX + 3 * LEN_1BPP_TILE
|
ld de, HPExpBarBorderGFX + 3 * LEN_1BPP_TILE
|
||||||
ld hl, VTiles2 tile $76
|
ld hl, vTiles2 tile $76
|
||||||
lb bc, BANK(HPExpBarBorderGFX), 2
|
lb bc, BANK(HPExpBarBorderGFX), 2
|
||||||
call Get1bpp_2
|
call Get1bpp_2
|
||||||
ld de, ExpBarGFX
|
ld de, ExpBarGFX
|
||||||
ld hl, VTiles2 tile $55
|
ld hl, vTiles2 tile $55
|
||||||
lb bc, BANK(ExpBarGFX), 8
|
lb bc, BANK(ExpBarGFX), 8
|
||||||
call Get2bpp_2
|
call Get2bpp_2
|
||||||
LoadStatsScreenPageTilesGFX: ; fb571
|
LoadStatsScreenPageTilesGFX: ; fb571
|
||||||
ld de, StatsScreenPageTilesGFX
|
ld de, StatsScreenPageTilesGFX
|
||||||
ld hl, VTiles2 tile $31
|
ld hl, vTiles2 tile $31
|
||||||
lb bc, BANK(StatsScreenPageTilesGFX), $11
|
lb bc, BANK(StatsScreenPageTilesGFX), $11
|
||||||
call Get2bpp_2
|
call Get2bpp_2
|
||||||
ret
|
ret
|
||||||
|
@ -132,7 +132,7 @@ GLOBAL PokemonPicPointers, UnownPicPointers
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
GetAnimatedFrontpic: ; 51103
|
GetAnimatedFrontpic: ; 51103
|
||||||
ld a, BANK(VTiles3)
|
ld a, BANK(vTiles3)
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
push hl
|
push hl
|
||||||
ld de, wDecompressScratch
|
ld de, wDecompressScratch
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
LoadOverworldFont:: ; 106594
|
LoadOverworldFont:: ; 106594
|
||||||
ld de, .font
|
ld de, .font
|
||||||
ld hl, VTiles1
|
ld hl, vTiles1
|
||||||
lb bc, BANK(.font), $80
|
lb bc, BANK(.font), $80
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
ld de, .space
|
ld de, .space
|
||||||
ld hl, VTiles2 tile $7f
|
ld hl, vTiles2 tile $7f
|
||||||
lb bc, BANK(.space), 1
|
lb bc, BANK(.space), 1
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
ret
|
ret
|
||||||
|
8
home.asm
8
home.asm
@ -574,11 +574,11 @@ CopyTilemapAtOnce:: ; 323d
|
|||||||
jr c, .wait
|
jr c, .wait
|
||||||
|
|
||||||
di
|
di
|
||||||
ld a, BANK(VTiles3)
|
ld a, BANK(vTiles3)
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
hlcoord 0, 0, AttrMap
|
hlcoord 0, 0, AttrMap
|
||||||
call .StackPointerMagic
|
call .StackPointerMagic
|
||||||
ld a, BANK(VTiles0)
|
ld a, BANK(vTiles0)
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
hlcoord 0, 0
|
hlcoord 0, 0
|
||||||
call .StackPointerMagic
|
call .StackPointerMagic
|
||||||
@ -597,7 +597,7 @@ CopyTilemapAtOnce:: ; 323d
|
|||||||
; 327b
|
; 327b
|
||||||
|
|
||||||
.StackPointerMagic: ; 327b
|
.StackPointerMagic: ; 327b
|
||||||
; Copy all tiles to VBGMap
|
; Copy all tiles to vBGMap
|
||||||
ld [hSPBuffer], sp
|
ld [hSPBuffer], sp
|
||||||
ld sp, hl
|
ld sp, hl
|
||||||
ld a, [hBGMapAddress + 1]
|
ld a, [hBGMapAddress + 1]
|
||||||
@ -1074,7 +1074,7 @@ _PrepMonFrontpic:: ; 378b
|
|||||||
jr c, .not_pokemon
|
jr c, .not_pokemon
|
||||||
|
|
||||||
push hl
|
push hl
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
predef GetMonFrontpic
|
predef GetMonFrontpic
|
||||||
pop hl
|
pop hl
|
||||||
xor a
|
xor a
|
||||||
|
@ -141,9 +141,9 @@ Init:: ; 17d
|
|||||||
|
|
||||||
farcall InitCGBPals
|
farcall InitCGBPals
|
||||||
|
|
||||||
ld a, HIGH(VBGMap1)
|
ld a, HIGH(vBGMap1)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
xor a ; LOW(VBGMap1)
|
xor a ; LOW(vBGMap1)
|
||||||
ld [hBGMapAddress], a
|
ld [hBGMapAddress], a
|
||||||
|
|
||||||
farcall StartClock
|
farcall StartClock
|
||||||
@ -185,7 +185,7 @@ ClearVRAM:: ; 245
|
|||||||
xor a
|
xor a
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
.clear
|
.clear
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
ld bc, $2000
|
ld bc, $2000
|
||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
|
12
home/map.asm
12
home/map.asm
@ -1241,10 +1241,10 @@ ScrollMapUp:: ; 2748
|
|||||||
ld h, a
|
ld h, a
|
||||||
ld bc, $0200
|
ld bc, $0200
|
||||||
add hl, bc
|
add hl, bc
|
||||||
; cap d at HIGH(VBGMap0)
|
; cap d at HIGH(vBGMap0)
|
||||||
ld a, h
|
ld a, h
|
||||||
and %00000011
|
and %00000011
|
||||||
or HIGH(VBGMap0)
|
or HIGH(vBGMap0)
|
||||||
ld e, l
|
ld e, l
|
||||||
ld d, a
|
ld d, a
|
||||||
call UpdateBGMapRow
|
call UpdateBGMapRow
|
||||||
@ -1369,10 +1369,10 @@ UpdateBGMapColumn:: ; 27f8
|
|||||||
ld e, a
|
ld e, a
|
||||||
jr nc, .skip
|
jr nc, .skip
|
||||||
inc d
|
inc d
|
||||||
; cap d at HIGH(VBGMap0)
|
; cap d at HIGH(vBGMap0)
|
||||||
ld a, d
|
ld a, d
|
||||||
and $3
|
and $3
|
||||||
or HIGH(VBGMap0)
|
or HIGH(vBGMap0)
|
||||||
ld d, a
|
ld d, a
|
||||||
|
|
||||||
.skip
|
.skip
|
||||||
@ -1409,7 +1409,7 @@ LoadTilesetGFX:: ; 2821
|
|||||||
call FarDecompress
|
call FarDecompress
|
||||||
|
|
||||||
ld hl, wDecompressScratch
|
ld hl, wDecompressScratch
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
ld bc, $60 tiles
|
ld bc, $60 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
|
|
||||||
@ -1419,7 +1419,7 @@ LoadTilesetGFX:: ; 2821
|
|||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
|
|
||||||
ld hl, wDecompressScratch + $60 tiles
|
ld hl, wDecompressScratch + $60 tiles
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
ld bc, $60 tiles
|
ld bc, $60 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ LoadMenuTextBox:: ; 1d58
|
|||||||
db $40 ; tile backup
|
db $40 ; tile backup
|
||||||
db 12, 0 ; start coords
|
db 12, 0 ; start coords
|
||||||
db 17, 19 ; end coords
|
db 17, 19 ; end coords
|
||||||
dw VTiles0
|
dw vTiles0
|
||||||
db 0 ; default option
|
db 0 ; default option
|
||||||
; 1d67
|
; 1d67
|
||||||
|
|
||||||
|
@ -143,9 +143,9 @@ UpdateBGMap:: ; 164c
|
|||||||
ld h, a
|
ld h, a
|
||||||
push hl
|
push hl
|
||||||
|
|
||||||
xor a ; LOW(VBGMap1)
|
xor a ; LOW(vBGMap1)
|
||||||
ld [hBGMapAddress], a
|
ld [hBGMapAddress], a
|
||||||
ld a, HIGH(VBGMap1)
|
ld a, HIGH(vBGMap1)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
|
|
||||||
ld a, [hBGMapMode]
|
ld a, [hBGMapMode]
|
||||||
|
@ -46,6 +46,6 @@ bgcoord: MACRO
|
|||||||
IF _NARG >= 4
|
IF _NARG >= 4
|
||||||
ld \1, \3 bgrows + \2 + \4
|
ld \1, \3 bgrows + \2 + \4
|
||||||
ELSE
|
ELSE
|
||||||
ld \1, \3 bgrows + \2 + VBGMap0
|
ld \1, \3 bgrows + \2 + vBGMap0
|
||||||
ENDC
|
ENDC
|
||||||
ENDM
|
ENDM
|
||||||
|
@ -322,11 +322,11 @@ Function11c1b9: ; 11c1b9
|
|||||||
call SetPalettes
|
call SetPalettes
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
ld hl, GFX_11d67e
|
ld hl, GFX_11d67e
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
ld bc, $60
|
ld bc, $60
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld hl, LZ_11d6de
|
ld hl, LZ_11d6de
|
||||||
ld de, VTiles0
|
ld de, vTiles0
|
||||||
call Decompress
|
call Decompress
|
||||||
call EnableLCD
|
call EnableLCD
|
||||||
farcall ReloadMapPart
|
farcall ReloadMapPart
|
||||||
|
@ -22,11 +22,11 @@ InitMobileProfile: ; 4802f (12:402f)
|
|||||||
call Function486bf
|
call Function486bf
|
||||||
call LoadFontsExtra
|
call LoadFontsExtra
|
||||||
ld de, MobileUpArrowGFX
|
ld de, MobileUpArrowGFX
|
||||||
ld hl, VTiles2 tile $10
|
ld hl, vTiles2 tile $10
|
||||||
lb bc, BANK(MobileUpArrowGFX), 1
|
lb bc, BANK(MobileUpArrowGFX), 1
|
||||||
call Request1bpp
|
call Request1bpp
|
||||||
ld de, MobileDownArrowGFX
|
ld de, MobileDownArrowGFX
|
||||||
ld hl, VTiles2 tile $11
|
ld hl, vTiles2 tile $11
|
||||||
lb bc, BANK(MobileDownArrowGFX), 1
|
lb bc, BANK(MobileDownArrowGFX), 1
|
||||||
call Request1bpp
|
call Request1bpp
|
||||||
call Function4a3a7
|
call Function4a3a7
|
||||||
|
@ -535,7 +535,7 @@ Function893e2: ; 893e2 (22:53e2)
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
Function893ef: ; 893ef
|
Function893ef: ; 893ef
|
||||||
ld de, VTiles0
|
ld de, vTiles0
|
||||||
ld hl, GFX_8940b
|
ld hl, GFX_8940b
|
||||||
ld bc, $20
|
ld bc, $20
|
||||||
ld a, BANK(GFX_8940b)
|
ld a, BANK(GFX_8940b)
|
||||||
@ -556,12 +556,12 @@ INCBIN "gfx/unknown/08940b.2bpp"
|
|||||||
; 8942b
|
; 8942b
|
||||||
|
|
||||||
Function8942b: ; 8942b (22:542b)
|
Function8942b: ; 8942b (22:542b)
|
||||||
ld de, VTiles0 tile $02
|
ld de, vTiles0 tile $02
|
||||||
ld hl, MobileAdapterGFX + $7d0
|
ld hl, MobileAdapterGFX + $7d0
|
||||||
ld bc, $80
|
ld bc, $80
|
||||||
ld a, BANK(MobileAdapterGFX)
|
ld a, BANK(MobileAdapterGFX)
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
ld de, VTiles0 tile $0a
|
ld de, vTiles0 tile $0a
|
||||||
ld hl, MobileAdapterGFX + $c60
|
ld hl, MobileAdapterGFX + $c60
|
||||||
ld bc, $40
|
ld bc, $40
|
||||||
ld a, BANK(MobileAdapterGFX)
|
ld a, BANK(MobileAdapterGFX)
|
||||||
@ -583,7 +583,7 @@ Function89448: ; 89448 (22:5448)
|
|||||||
|
|
||||||
Function89455: ; 89455 (22:5455)
|
Function89455: ; 89455 (22:5455)
|
||||||
ld hl, MobileAdapterGFX + $7d0
|
ld hl, MobileAdapterGFX + $7d0
|
||||||
ld de, VTiles2 tile $0c
|
ld de, vTiles2 tile $0c
|
||||||
ld bc, $490
|
ld bc, $490
|
||||||
ld a, BANK(MobileAdapterGFX)
|
ld a, BANK(MobileAdapterGFX)
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
@ -591,12 +591,12 @@ Function89455: ; 89455 (22:5455)
|
|||||||
|
|
||||||
Function89464: ; 89464
|
Function89464: ; 89464
|
||||||
ld hl, MobileAdapterGFX
|
ld hl, MobileAdapterGFX
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
ld bc, $200
|
ld bc, $200
|
||||||
ld a, BANK(MobileAdapterGFX)
|
ld a, BANK(MobileAdapterGFX)
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
ld hl, MobileAdapterGFX + $660
|
ld hl, MobileAdapterGFX + $660
|
||||||
ld de, VTiles2 tile $20
|
ld de, vTiles2 tile $20
|
||||||
ld bc, $170
|
ld bc, $170
|
||||||
ld a, BANK(MobileAdapterGFX)
|
ld a, BANK(MobileAdapterGFX)
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
@ -1227,7 +1227,7 @@ Function897af: ; 897af
|
|||||||
ld [TrainerClass], a
|
ld [TrainerClass], a
|
||||||
xor a
|
xor a
|
||||||
ld [CurPartySpecies], a
|
ld [CurPartySpecies], a
|
||||||
ld de, VTiles2 tile $37
|
ld de, vTiles2 tile $37
|
||||||
farcall GetTrainerPic
|
farcall GetTrainerPic
|
||||||
pop bc
|
pop bc
|
||||||
ret
|
ret
|
||||||
@ -1275,7 +1275,7 @@ Function89807: ; 89807 (22:5807)
|
|||||||
ld hl, MobileAdapterGFX + $200 + $230
|
ld hl, MobileAdapterGFX + $200 + $230
|
||||||
.asm_89814
|
.asm_89814
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
ld de, VTiles2 tile $37
|
ld de, vTiles2 tile $37
|
||||||
ld bc, $230
|
ld bc, $230
|
||||||
ld a, BANK(MobileAdapterGFX)
|
ld a, BANK(MobileAdapterGFX)
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
|
@ -597,17 +597,17 @@ Function8b677: ; 8b677
|
|||||||
|
|
||||||
Function8b690: ; 8b690
|
Function8b690: ; 8b690
|
||||||
ld hl, GFX_17afa5 + $514
|
ld hl, GFX_17afa5 + $514
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
ld bc, $160
|
ld bc, $160
|
||||||
ld a, BANK(GFX_17afa5)
|
ld a, BANK(GFX_17afa5)
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
ld hl, GFX_17afa5 + $514 + $160 - $10
|
ld hl, GFX_17afa5 + $514 + $160 - $10
|
||||||
ld de, VTiles2 tile $61
|
ld de, vTiles2 tile $61
|
||||||
ld bc, $10
|
ld bc, $10
|
||||||
ld a, BANK(GFX_17afa5)
|
ld a, BANK(GFX_17afa5)
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
ld hl, GFX_17afa5 + $514 + $160
|
ld hl, GFX_17afa5 + $514 + $160
|
||||||
ld de, VTiles1 tile $6e
|
ld de, vTiles1 tile $6e
|
||||||
ld bc, $10
|
ld bc, $10
|
||||||
ld a, BANK(GFX_17afa5)
|
ld a, BANK(GFX_17afa5)
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
|
@ -6843,7 +6843,7 @@ Function102dc3: ; 102dc3
|
|||||||
Function102dd3: ; 102dd3
|
Function102dd3: ; 102dd3
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
ld de, GFX_1032a2
|
ld de, GFX_1032a2
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
lb bc, BANK(GFX_1032a2), 4
|
lb bc, BANK(GFX_1032a2), 4
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
farcall __LoadTradeScreenBorder
|
farcall __LoadTradeScreenBorder
|
||||||
|
@ -1011,20 +1011,20 @@ MobileFunc_106462: mobile
|
|||||||
|
|
||||||
Function106464:: ; 106464
|
Function106464:: ; 106464
|
||||||
ld de, MobilePhoneTilesGFX
|
ld de, MobilePhoneTilesGFX
|
||||||
ld hl, VTiles2 tile $60
|
ld hl, vTiles2 tile $60
|
||||||
lb bc, BANK(MobilePhoneTilesGFX), 1
|
lb bc, BANK(MobilePhoneTilesGFX), 1
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
ld de, FontsExtra2_UpArrowGFX
|
ld de, FontsExtra2_UpArrowGFX
|
||||||
ld hl, VTiles2 tile $61
|
ld hl, vTiles2 tile $61
|
||||||
lb bc, BANK(FontsExtra2_UpArrowGFX), 1
|
lb bc, BANK(FontsExtra2_UpArrowGFX), 1
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
ld de, GFX_106514
|
ld de, GFX_106514
|
||||||
ld hl, VTiles2 tile $62
|
ld hl, vTiles2 tile $62
|
||||||
ld c, 9
|
ld c, 9
|
||||||
ld b, BANK(GFX_106514)
|
ld b, BANK(GFX_106514)
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
ld de, $40b0
|
ld de, $40b0
|
||||||
ld hl, VTiles2 tile $6b
|
ld hl, vTiles2 tile $6b
|
||||||
ld b, $f ; XXX no graphics at 0f:40b0
|
ld b, $f ; XXX no graphics at 0f:40b0
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
farcall LoadFrame
|
farcall LoadFrame
|
||||||
@ -1039,11 +1039,11 @@ Function10649b: ; 10649b
|
|||||||
call AddNTimes
|
call AddNTimes
|
||||||
ld d, h
|
ld d, h
|
||||||
ld e, l
|
ld e, l
|
||||||
ld hl, VTiles2 tile $79
|
ld hl, vTiles2 tile $79
|
||||||
ld c, 6
|
ld c, 6
|
||||||
ld b, BANK(Frames)
|
ld b, BANK(Frames)
|
||||||
call Function1064c3
|
call Function1064c3
|
||||||
ld hl, VTiles2 tile $7f
|
ld hl, vTiles2 tile $7f
|
||||||
ld de, TextBoxSpaceGFX
|
ld de, TextBoxSpaceGFX
|
||||||
ld c, 1
|
ld c, 1
|
||||||
ld b, BANK(TextBoxSpaceGFX)
|
ld b, BANK(TextBoxSpaceGFX)
|
||||||
|
@ -149,7 +149,7 @@ Function1080b7: ; 1080b7
|
|||||||
call ClearSprites
|
call ClearSprites
|
||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
call MobileTradeAnim_ClearVTiles
|
call MobileTradeAnim_ClearTiles
|
||||||
call MobileTradeAnim_ClearBGMap
|
call MobileTradeAnim_ClearBGMap
|
||||||
call LoadStandardFont
|
call LoadStandardFont
|
||||||
call LoadFontsBattleExtra
|
call LoadFontsBattleExtra
|
||||||
@ -157,13 +157,13 @@ Function1080b7: ; 1080b7
|
|||||||
ld a, $1
|
ld a, $1
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, LZ_108da7
|
ld hl, LZ_108da7
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
call Decompress
|
call Decompress
|
||||||
|
|
||||||
ld a, $0
|
ld a, $0
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, LZ_108d27
|
ld hl, LZ_108d27
|
||||||
ld de, VTiles0 tile $20
|
ld de, vTiles0 tile $20
|
||||||
call Decompress
|
call Decompress
|
||||||
|
|
||||||
call EnableLCD
|
call EnableLCD
|
||||||
@ -180,12 +180,12 @@ Function1080b7: ; 1080b7
|
|||||||
call DelayFrame
|
call DelayFrame
|
||||||
|
|
||||||
ld de, TradeBallGFX
|
ld de, TradeBallGFX
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
lb bc, BANK(TradeBallGFX), $06
|
lb bc, BANK(TradeBallGFX), $06
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
|
|
||||||
ld de, TradePoofGFX
|
ld de, TradePoofGFX
|
||||||
ld hl, VTiles0 tile $06
|
ld hl, vTiles0 tile $06
|
||||||
lb bc, BANK(TradePoofGFX), $0c
|
lb bc, BANK(TradePoofGFX), $0c
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
|
|
||||||
@ -196,12 +196,12 @@ Function1080b7: ; 1080b7
|
|||||||
|
|
||||||
ld a, [wPlayerTrademonSpecies]
|
ld a, [wPlayerTrademonSpecies]
|
||||||
ld hl, wPlayerTrademonDVs
|
ld hl, wPlayerTrademonDVs
|
||||||
ld de, VTiles0 tile $30
|
ld de, vTiles0 tile $30
|
||||||
call MobileTradeAnim_GetFrontpic
|
call MobileTradeAnim_GetFrontpic
|
||||||
|
|
||||||
ld a, [wOTTrademonSpecies]
|
ld a, [wOTTrademonSpecies]
|
||||||
ld hl, wOTTrademonDVs
|
ld hl, wOTTrademonDVs
|
||||||
ld de, VTiles2 tile $31
|
ld de, vTiles2 tile $31
|
||||||
call MobileTradeAnim_GetFrontpic
|
call MobileTradeAnim_GetFrontpic
|
||||||
|
|
||||||
ld a, [wPlayerTrademonSpecies]
|
ld a, [wPlayerTrademonSpecies]
|
||||||
@ -225,7 +225,7 @@ Function108157: ; 108157
|
|||||||
call ClearSprites
|
call ClearSprites
|
||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
call MobileTradeAnim_ClearVTiles
|
call MobileTradeAnim_ClearTiles
|
||||||
call MobileTradeAnim_ClearBGMap
|
call MobileTradeAnim_ClearBGMap
|
||||||
call LoadStandardFont
|
call LoadStandardFont
|
||||||
call LoadFontsBattleExtra
|
call LoadFontsBattleExtra
|
||||||
@ -255,16 +255,16 @@ Function108157: ; 108157
|
|||||||
ret
|
ret
|
||||||
; 1081ad
|
; 1081ad
|
||||||
|
|
||||||
MobileTradeAnim_ClearVTiles: ; 1081ad
|
MobileTradeAnim_ClearTiles: ; 1081ad
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
ld bc, 3 * $80 tiles
|
ld bc, 3 * $80 tiles
|
||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
ld a, $0
|
ld a, $0
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
ld bc, 3 * $80 tiles
|
ld bc, 3 * $80 tiles
|
||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
@ -549,7 +549,7 @@ MobileTradeAnim_ShowOTMonFromTrade: ; 10839b
|
|||||||
ld a, [wOTTrademonSpecies]
|
ld a, [wOTTrademonSpecies]
|
||||||
ld [CurPartySpecies], a
|
ld [CurPartySpecies], a
|
||||||
ld hl, wOTTrademonDVs
|
ld hl, wOTTrademonDVs
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
call Function108201
|
call Function108201
|
||||||
call EnableLCD
|
call EnableLCD
|
||||||
farcall DeinitializeAllSprites
|
farcall DeinitializeAllSprites
|
||||||
@ -616,11 +616,11 @@ MobileTradeAnim_ShowPlayerMonForGTS: ; 10842c
|
|||||||
call Function10898a
|
call Function10898a
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ld de, TradeBallGFX
|
ld de, TradeBallGFX
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
lb bc, BANK(TradeBallGFX), $06
|
lb bc, BANK(TradeBallGFX), $06
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ld de, TradePoofGFX
|
ld de, TradePoofGFX
|
||||||
ld hl, VTiles0 tile $06
|
ld hl, vTiles0 tile $06
|
||||||
lb bc, BANK(TradePoofGFX), $0c
|
lb bc, BANK(TradePoofGFX), $0c
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ld a, [wPlayerTrademonDVs]
|
ld a, [wPlayerTrademonDVs]
|
||||||
@ -684,17 +684,17 @@ MobileTradeAnim_ShowOTMonFromGTS: ; 1084d7
|
|||||||
ld a, [wOTTrademonSpecies]
|
ld a, [wOTTrademonSpecies]
|
||||||
ld [CurPartySpecies], a
|
ld [CurPartySpecies], a
|
||||||
ld hl, wOTTrademonDVs
|
ld hl, wOTTrademonDVs
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
call Function108201
|
call Function108201
|
||||||
call EnableLCD
|
call EnableLCD
|
||||||
farcall DeinitializeAllSprites
|
farcall DeinitializeAllSprites
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ld de, TradeBallGFX
|
ld de, TradeBallGFX
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
lb bc, BANK(TradeBallGFX), $06
|
lb bc, BANK(TradeBallGFX), $06
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ld de, TradePoofGFX
|
ld de, TradePoofGFX
|
||||||
ld hl, VTiles0 tile $06
|
ld hl, vTiles0 tile $06
|
||||||
lb bc, BANK(TradePoofGFX), $0c
|
lb bc, BANK(TradePoofGFX), $0c
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
xor a
|
xor a
|
||||||
@ -753,17 +753,17 @@ MobileTradeAnim_GetOddEgg: ; 108589
|
|||||||
ld a, [wOTTrademonSpecies]
|
ld a, [wOTTrademonSpecies]
|
||||||
ld [CurPartySpecies], a
|
ld [CurPartySpecies], a
|
||||||
ld hl, wOTTrademonDVs
|
ld hl, wOTTrademonDVs
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
call Function108201
|
call Function108201
|
||||||
call EnableLCD
|
call EnableLCD
|
||||||
farcall DeinitializeAllSprites
|
farcall DeinitializeAllSprites
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ld de, TradeBallGFX
|
ld de, TradeBallGFX
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
lb bc, BANK(TradeBallGFX), $06
|
lb bc, BANK(TradeBallGFX), $06
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
ld de, TradePoofGFX
|
ld de, TradePoofGFX
|
||||||
ld hl, VTiles0 tile $06
|
ld hl, vTiles0 tile $06
|
||||||
lb bc, BANK(TradePoofGFX), $0c
|
lb bc, BANK(TradePoofGFX), $0c
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
xor a
|
xor a
|
||||||
@ -860,12 +860,12 @@ MobileTradeAnim_10: ; 108689
|
|||||||
ld a, $1
|
ld a, $1
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, LZ_108da7
|
ld hl, LZ_108da7
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
call Decompress
|
call Decompress
|
||||||
ld a, $0
|
ld a, $0
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, LZ_108d27
|
ld hl, LZ_108d27
|
||||||
ld de, VTiles0 tile $20
|
ld de, vTiles0 tile $20
|
||||||
call Decompress
|
call Decompress
|
||||||
call Function108c80
|
call Function108c80
|
||||||
call Function108c6d
|
call Function108c6d
|
||||||
@ -904,12 +904,12 @@ MobileTradeAnim_11: ; 1086f4
|
|||||||
ld a, $1
|
ld a, $1
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, LZ_108da7
|
ld hl, LZ_108da7
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
call Decompress
|
call Decompress
|
||||||
ld a, $0
|
ld a, $0
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, LZ_108d27
|
ld hl, LZ_108d27
|
||||||
ld de, VTiles0 tile $20
|
ld de, vTiles0 tile $20
|
||||||
call Decompress
|
call Decompress
|
||||||
call Function108c80
|
call Function108c80
|
||||||
call Function108c6d
|
call Function108c6d
|
||||||
@ -1194,7 +1194,7 @@ MobileTradeAnim_0f: ; 108919
|
|||||||
call ClearSprites
|
call ClearSprites
|
||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
call MobileTradeAnim_ClearVTiles
|
call MobileTradeAnim_ClearTiles
|
||||||
call MobileTradeAnim_ClearBGMap
|
call MobileTradeAnim_ClearBGMap
|
||||||
call EnableLCD
|
call EnableLCD
|
||||||
call GetMobileTradeAnimByte
|
call GetMobileTradeAnimByte
|
||||||
@ -1223,14 +1223,14 @@ MobileTradeAnim_FadeToBlack: ; 10893d
|
|||||||
; 10895e
|
; 10895e
|
||||||
|
|
||||||
Function10895e: ; 10895e
|
Function10895e: ; 10895e
|
||||||
ld de, VTiles0 tile $30
|
ld de, vTiles0 tile $30
|
||||||
jr asm_108966
|
jr asm_108966
|
||||||
|
|
||||||
Function108963:
|
Function108963:
|
||||||
ld de, VTiles2 tile $31
|
ld de, vTiles2 tile $31
|
||||||
asm_108966
|
asm_108966
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ld hl, VTiles2
|
ld hl, vTiles2
|
||||||
lb bc, $a, $31 ; $a is the bank of ?????
|
lb bc, $a, $31 ; $a is the bank of ?????
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
call WaitTop
|
call WaitTop
|
||||||
@ -1245,7 +1245,7 @@ asm_108966
|
|||||||
; 10898a
|
; 10898a
|
||||||
|
|
||||||
Function10898a: ; 10898a
|
Function10898a: ; 10898a
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
call MobileTradeAnim_GetFrontpic
|
call MobileTradeAnim_GetFrontpic
|
||||||
call WaitTop
|
call WaitTop
|
||||||
call MobileTradeAnim_ClearTilemap
|
call MobileTradeAnim_ClearTilemap
|
||||||
@ -1297,7 +1297,7 @@ MobileTradeAnim_DisplayReceivedMon:
|
|||||||
MobileTradeAnim_DisplayEggData
|
MobileTradeAnim_DisplayEggData
|
||||||
call WaitTop
|
call WaitTop
|
||||||
call MobileTradeAnim_ClearTilemap
|
call MobileTradeAnim_ClearTilemap
|
||||||
ld a, HIGH(VBGMap1)
|
ld a, HIGH(vBGMap1)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
hlcoord 5, 0
|
hlcoord 5, 0
|
||||||
ld b, 6
|
ld b, 6
|
||||||
@ -1320,7 +1320,7 @@ MobileTradeAnim_DisplayEggData
|
|||||||
Function108a33: ; 108a33
|
Function108a33: ; 108a33
|
||||||
call WaitTop
|
call WaitTop
|
||||||
call MobileTradeAnim_ClearTilemap
|
call MobileTradeAnim_ClearTilemap
|
||||||
ld a, HIGH(VBGMap1)
|
ld a, HIGH(vBGMap1)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
hlcoord 5, 0
|
hlcoord 5, 0
|
||||||
ld b, 6
|
ld b, 6
|
||||||
@ -1340,7 +1340,7 @@ Function108a33: ; 108a33
|
|||||||
MobileTradeAnim_LoadMonTemplate: ; 108a5b
|
MobileTradeAnim_LoadMonTemplate: ; 108a5b
|
||||||
call WaitTop
|
call WaitTop
|
||||||
call MobileTradeAnim_ClearTilemap
|
call MobileTradeAnim_ClearTilemap
|
||||||
ld a, HIGH(VBGMap1)
|
ld a, HIGH(vBGMap1)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
hlcoord 4, 0
|
hlcoord 4, 0
|
||||||
ld b, 6
|
ld b, 6
|
||||||
@ -1363,7 +1363,7 @@ MobileTradeAnim_LoadMonTemplate: ; 108a5b
|
|||||||
MobileTradeAnim_MonDisplay_UpdateBGMap: ; 108a87
|
MobileTradeAnim_MonDisplay_UpdateBGMap: ; 108a87
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call WaitTop
|
call WaitTop
|
||||||
ld a, HIGH(VBGMap0)
|
ld a, HIGH(vBGMap0)
|
||||||
ld [hBGMapAddress + 1], a
|
ld [hBGMapAddress + 1], a
|
||||||
ret
|
ret
|
||||||
; 108a92
|
; 108a92
|
||||||
@ -1432,7 +1432,7 @@ Function108ad4: ; 108ad4
|
|||||||
.asm_108adf
|
.asm_108adf
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, VTiles2 tile $4a
|
ld hl, vTiles2 tile $4a
|
||||||
lb bc, BANK(GFX_1092c7), 16
|
lb bc, BANK(GFX_1092c7), 16
|
||||||
call Get2bpp_2
|
call Get2bpp_2
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
@ -1698,7 +1698,7 @@ Function108c6d: ; 108c6d
|
|||||||
debgcoord 0, 0
|
debgcoord 0, 0
|
||||||
call Decompress
|
call Decompress
|
||||||
ld hl, LZ_108fe7
|
ld hl, LZ_108fe7
|
||||||
debgcoord 0, 0, VBGMap1
|
debgcoord 0, 0, vBGMap1
|
||||||
call Decompress
|
call Decompress
|
||||||
ret
|
ret
|
||||||
; 108c80
|
; 108c80
|
||||||
@ -1710,7 +1710,7 @@ Function108c80: ; 108c80
|
|||||||
debgcoord 0, 0
|
debgcoord 0, 0
|
||||||
call Decompress
|
call Decompress
|
||||||
ld hl, LZ_1090a7
|
ld hl, LZ_1090a7
|
||||||
debgcoord 0, 0, VBGMap1
|
debgcoord 0, 0, vBGMap1
|
||||||
call Decompress
|
call Decompress
|
||||||
ld a, $0
|
ld a, $0
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Function115d99: ; 115d99
|
Function115d99: ; 115d99
|
||||||
ld de, GFX_11601a
|
ld de, GFX_11601a
|
||||||
ld hl, VTiles0 tile $60
|
ld hl, vTiles0 tile $60
|
||||||
lb bc, BANK(GFX_11601a), $14
|
lb bc, BANK(GFX_11601a), $14
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
xor a
|
xor a
|
||||||
|
@ -170,7 +170,7 @@ Function16c0fa: ; 16c0fa
|
|||||||
|
|
||||||
MobileSystemSplashScreen_InitGFX: ; 16c108
|
MobileSystemSplashScreen_InitGFX: ; 16c108
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
ld hl, VTiles2
|
ld hl, vTiles2
|
||||||
ld de, .Tiles
|
ld de, .Tiles
|
||||||
lb bc, BANK(.Tiles), $68
|
lb bc, BANK(.Tiles), $68
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
@ -708,7 +708,7 @@ Function16cc02: ; 16cc02
|
|||||||
; 16cc18
|
; 16cc18
|
||||||
|
|
||||||
Function16cc18: ; 16cc18
|
Function16cc18: ; 16cc18
|
||||||
ld hl, VTiles1
|
ld hl, vTiles1
|
||||||
ld de, GFX_16cca3
|
ld de, GFX_16cca3
|
||||||
lb bc, BANK(GFX_16cca3), $2e
|
lb bc, BANK(GFX_16cca3), $2e
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
@ -763,7 +763,7 @@ Function16cc62: ; 16cc62
|
|||||||
; 16cc6e
|
; 16cc6e
|
||||||
|
|
||||||
Function16cc6e: ; 16cc6e
|
Function16cc6e: ; 16cc6e
|
||||||
hlbgcoord 0, 0, VBGMap1
|
hlbgcoord 0, 0, vBGMap1
|
||||||
jr Function16cc73
|
jr Function16cc73
|
||||||
|
|
||||||
Function16cc73:
|
Function16cc73:
|
||||||
|
@ -273,7 +273,7 @@ Function170cc6: ; 170cc6
|
|||||||
ld a, $1
|
ld a, $1
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld de, wd000
|
ld de, wd000
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
lb bc, $6, $c1
|
lb bc, $6, $c1
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
xor a
|
xor a
|
||||||
@ -282,7 +282,7 @@ Function170cc6: ; 170cc6
|
|||||||
ld de, wd000
|
ld de, wd000
|
||||||
call Decompress
|
call Decompress
|
||||||
ld de, UnknBGPals
|
ld de, UnknBGPals
|
||||||
ld hl, VTiles0
|
ld hl, vTiles0
|
||||||
lb bc, $6, $53
|
lb bc, $6, $53
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
pop af
|
pop af
|
||||||
@ -295,7 +295,7 @@ Function170d02: ; 170d02
|
|||||||
ld a, $1
|
ld a, $1
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld de, GFX_171848
|
ld de, GFX_171848
|
||||||
ld hl, VTiles1 tile $41
|
ld hl, vTiles1 tile $41
|
||||||
lb bc, BANK(GFX_171848), $18
|
lb bc, BANK(GFX_171848), $18
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
xor a
|
xor a
|
||||||
@ -687,11 +687,11 @@ String_171c73: ; 171c73
|
|||||||
Function171c87: ; 171c87 (5c:5c87)
|
Function171c87: ; 171c87 (5c:5c87)
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
ld hl, GFX_171db1
|
ld hl, GFX_171db1
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
ld bc, $6e0
|
ld bc, $6e0
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld hl, LZ_172abd
|
ld hl, LZ_172abd
|
||||||
ld de, VTiles0 tile $00
|
ld de, vTiles0 tile $00
|
||||||
call Decompress
|
call Decompress
|
||||||
call EnableLCD
|
call EnableLCD
|
||||||
ld hl, Tilemap_172491
|
ld hl, Tilemap_172491
|
||||||
@ -759,11 +759,11 @@ Function171cf0: ; 171cf0 (5c:5cf0)
|
|||||||
Function171d2b: ; 171d2b (5c:5d2b)
|
Function171d2b: ; 171d2b (5c:5d2b)
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
ld hl, GFX_171db1
|
ld hl, GFX_171db1
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
ld bc, $6e0
|
ld bc, $6e0
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld hl, LZ_172abd
|
ld hl, LZ_172abd
|
||||||
ld de, VTiles0 tile $00
|
ld de, vTiles0 tile $00
|
||||||
call Decompress
|
call Decompress
|
||||||
call EnableLCD
|
call EnableLCD
|
||||||
ld hl, Tilemap_172685
|
ld hl, Tilemap_172685
|
||||||
@ -862,7 +862,7 @@ Function172e78: ; 172e78 (5c:6e78)
|
|||||||
call ByteFill
|
call ByteFill
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
ld hl, GameBoyN64GFX
|
ld hl, GameBoyN64GFX
|
||||||
ld de, VTiles2 tile $00
|
ld de, vTiles2 tile $00
|
||||||
ld bc, $610
|
ld bc, $610
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
call EnableLCD
|
call EnableLCD
|
||||||
|
@ -738,7 +738,7 @@ Function17aba0: ; 17aba0 (5e:6ba0)
|
|||||||
ld a, $1
|
ld a, $1
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
|
|
||||||
ld hl, VTiles5 tile $00
|
ld hl, vTiles5 tile $00
|
||||||
ld de, GFX_17afa5
|
ld de, GFX_17afa5
|
||||||
lb bc, BANK(GFX_17afa5), $80
|
lb bc, BANK(GFX_17afa5), $80
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
@ -746,12 +746,12 @@ Function17aba0: ; 17aba0 (5e:6ba0)
|
|||||||
pop af
|
pop af
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
|
|
||||||
ld hl, VTiles0 tile $00
|
ld hl, vTiles0 tile $00
|
||||||
ld de, GFX_17afa5 + $4c0
|
ld de, GFX_17afa5 + $4c0
|
||||||
lb bc, BANK(GFX_17afa5), 5
|
lb bc, BANK(GFX_17afa5), 5
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
|
|
||||||
ld hl, VTiles0 tile $05
|
ld hl, vTiles0 tile $05
|
||||||
ld de, GFX_11601a
|
ld de, GFX_11601a
|
||||||
lb bc, BANK(GFX_11601a), 4
|
lb bc, BANK(GFX_11601a), 4
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Function17c000: ; 17c000
|
Function17c000: ; 17c000
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
|
|
||||||
ld hl, VTiles2
|
ld hl, vTiles2
|
||||||
ld bc, $31 tiles
|
ld bc, $31 tiles
|
||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
@ -56,7 +56,7 @@ Function17c000: ; 17c000
|
|||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
|
|
||||||
ld hl, MobileSelectGFX
|
ld hl, MobileSelectGFX
|
||||||
ld de, VTiles0 tile $30
|
ld de, vTiles0 tile $30
|
||||||
ld bc, $20 tiles
|
ld bc, $20 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
|
|
||||||
@ -64,12 +64,12 @@ Function17c000: ; 17c000
|
|||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
|
|
||||||
ld hl, HaveWantGFX
|
ld hl, HaveWantGFX
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
ld bc, $80 tiles
|
ld bc, $80 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
|
|
||||||
ld hl, HaveWantGFX + $800
|
ld hl, HaveWantGFX + $800
|
||||||
ld de, VTiles1
|
ld de, vTiles1
|
||||||
ld bc, $10 tiles
|
ld bc, $10 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
|
|
||||||
@ -629,28 +629,28 @@ Function17d370: ; 17d370
|
|||||||
call ClearScreen
|
call ClearScreen
|
||||||
farcall ReloadMapPart
|
farcall ReloadMapPart
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
ld hl, VTiles1 tile $6e
|
ld hl, vTiles1 tile $6e
|
||||||
ld de, $c608
|
ld de, $c608
|
||||||
ld bc, 1 tiles
|
ld bc, 1 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, PokemonNewsGFX
|
ld hl, PokemonNewsGFX
|
||||||
ld de, VTiles1
|
ld de, vTiles1
|
||||||
ld bc, $48 tiles
|
ld bc, $48 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
xor a
|
xor a
|
||||||
ld hl, VTiles2 tile $7f
|
ld hl, vTiles2 tile $7f
|
||||||
ld bc, 1 tiles
|
ld bc, 1 tiles
|
||||||
call ByteFill
|
call ByteFill
|
||||||
ld hl, $c608
|
ld hl, $c608
|
||||||
ld de, VTiles1 tile $6e
|
ld de, vTiles1 tile $6e
|
||||||
ld bc, 1 tiles
|
ld bc, 1 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
xor a
|
xor a
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, GFX_17eb7e
|
ld hl, GFX_17eb7e
|
||||||
ld de, VTiles2 tile $60
|
ld de, vTiles2 tile $60
|
||||||
ld bc, 1 tiles
|
ld bc, 1 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
call EnableLCD
|
call EnableLCD
|
||||||
@ -677,22 +677,22 @@ Function17d3f6: ; 17d3f6
|
|||||||
|
|
||||||
Function17d405:
|
Function17d405:
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
ld hl, VTiles1 tile $6e
|
ld hl, vTiles1 tile $6e
|
||||||
ld de, $c608
|
ld de, $c608
|
||||||
ld bc, 1 tiles
|
ld bc, 1 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, PokemonNewsGFX
|
ld hl, PokemonNewsGFX
|
||||||
ld de, VTiles1
|
ld de, vTiles1
|
||||||
ld bc, $48 tiles
|
ld bc, $48 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
xor a
|
xor a
|
||||||
ld hl, VTiles2 tile $7f
|
ld hl, vTiles2 tile $7f
|
||||||
ld bc, 1 tiles
|
ld bc, 1 tiles
|
||||||
call ByteFill
|
call ByteFill
|
||||||
ld hl, $c608
|
ld hl, $c608
|
||||||
ld de, VTiles1 tile $6e
|
ld de, vTiles1 tile $6e
|
||||||
ld bc, 1 tiles
|
ld bc, 1 tiles
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
xor a
|
xor a
|
||||||
@ -1531,7 +1531,7 @@ Function17d98b: ; 17d98b
|
|||||||
ld a, [$c709]
|
ld a, [$c709]
|
||||||
ld d, a
|
ld d, a
|
||||||
push de
|
push de
|
||||||
ld de, VTiles2
|
ld de, vTiles2
|
||||||
farcall GetTrainerPic
|
farcall GetTrainerPic
|
||||||
pop hl
|
pop hl
|
||||||
decoord 0, 0
|
decoord 0, 0
|
||||||
@ -2952,7 +2952,7 @@ Function17e2a7: ; 17e2a7
|
|||||||
ld [wcf66], a
|
ld [wcf66], a
|
||||||
farcall Function118233
|
farcall Function118233
|
||||||
ld de, GFX_17eb7e
|
ld de, GFX_17eb7e
|
||||||
ld hl, VTiles2 tile $60
|
ld hl, vTiles2 tile $60
|
||||||
lb bc, BANK(GFX_17eb7e), 1
|
lb bc, BANK(GFX_17eb7e), 1
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
ld a, [wc300]
|
ld a, [wc300]
|
||||||
|
@ -628,7 +628,7 @@ Function4a449: ; 4a449
|
|||||||
|
|
||||||
Function4a485: ; 4a485 (12:6485)
|
Function4a485: ; 4a485 (12:6485)
|
||||||
ld de, GFX_49c0c
|
ld de, GFX_49c0c
|
||||||
ld hl, VTiles2 tile $00
|
ld hl, vTiles2 tile $00
|
||||||
lb bc, BANK(GFX_49c0c), 13
|
lb bc, BANK(GFX_49c0c), 13
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
ret
|
ret
|
||||||
|
@ -37,7 +37,7 @@ _AnimateTileset:: ; fc000
|
|||||||
Tileset0Anim: ; 0xfc01b
|
Tileset0Anim: ; 0xfc01b
|
||||||
TilesetJohto2Anim: ; 0xfc01b
|
TilesetJohto2Anim: ; 0xfc01b
|
||||||
TilesetKantoAnim: ; 0xfc01b
|
TilesetKantoAnim: ; 0xfc01b
|
||||||
dw VTiles2 tile $14, AnimateWaterTile
|
dw vTiles2 tile $14, AnimateWaterTile
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
@ -51,9 +51,9 @@ TilesetKantoAnim: ; 0xfc01b
|
|||||||
; 0xfc047
|
; 0xfc047
|
||||||
|
|
||||||
TilesetParkAnim: ; 0xfc047
|
TilesetParkAnim: ; 0xfc047
|
||||||
dw VTiles2 tile $14, AnimateWaterTile
|
dw vTiles2 tile $14, AnimateWaterTile
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
dw VTiles2 tile $5f, AnimateFountain
|
dw vTiles2 tile $5f, AnimateFountain
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
dw NULL, TileAnimationPalette
|
dw NULL, TileAnimationPalette
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
@ -73,14 +73,14 @@ TilesetIlexForestAnim: ; 0xfc073
|
|||||||
dw NULL, ForestTreeLeftAnimation2
|
dw NULL, ForestTreeLeftAnimation2
|
||||||
dw NULL, ForestTreeRightAnimation2
|
dw NULL, ForestTreeRightAnimation2
|
||||||
dw NULL, AnimateFlowerTile
|
dw NULL, AnimateFlowerTile
|
||||||
dw VTiles2 tile $14, AnimateWaterTile
|
dw vTiles2 tile $14, AnimateWaterTile
|
||||||
dw NULL, TileAnimationPalette
|
dw NULL, TileAnimationPalette
|
||||||
dw NULL, StandingTileFrame8
|
dw NULL, StandingTileFrame8
|
||||||
dw NULL, DoneTileAnimation
|
dw NULL, DoneTileAnimation
|
||||||
; 0xfc0a3
|
; 0xfc0a3
|
||||||
|
|
||||||
TilesetJohto1Anim: ; 0xfc0a3
|
TilesetJohto1Anim: ; 0xfc0a3
|
||||||
dw VTiles2 tile $14, AnimateWaterTile
|
dw vTiles2 tile $14, AnimateWaterTile
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
dw NULL, TileAnimationPalette
|
dw NULL, TileAnimationPalette
|
||||||
@ -96,9 +96,9 @@ TilesetJohto1Anim: ; 0xfc0a3
|
|||||||
; 0xfc0d7
|
; 0xfc0d7
|
||||||
|
|
||||||
TilesetAnimfc0d7: ; 0xfc0d7
|
TilesetAnimfc0d7: ; 0xfc0d7
|
||||||
dw VTiles2 tile $03, WriteTileToBuffer
|
dw vTiles2 tile $03, WriteTileToBuffer
|
||||||
dw wTileAnimBuffer, ScrollTileRightLeft
|
dw wTileAnimBuffer, ScrollTileRightLeft
|
||||||
dw VTiles2 tile $03, WriteTileFromBuffer
|
dw vTiles2 tile $03, WriteTileFromBuffer
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
@ -110,9 +110,9 @@ TilesetAnimfc0d7: ; 0xfc0d7
|
|||||||
; 0xfc103
|
; 0xfc103
|
||||||
|
|
||||||
TilesetAnimfc103: ; 0xfc103
|
TilesetAnimfc103: ; 0xfc103
|
||||||
dw VTiles2 tile $14, WriteTileToBuffer
|
dw vTiles2 tile $14, WriteTileToBuffer
|
||||||
dw wTileAnimBuffer, ScrollTileRightLeft
|
dw wTileAnimBuffer, ScrollTileRightLeft
|
||||||
dw VTiles2 tile $14, WriteTileFromBuffer
|
dw vTiles2 tile $14, WriteTileFromBuffer
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
@ -124,7 +124,7 @@ TilesetAnimfc103: ; 0xfc103
|
|||||||
; 0xfc12f
|
; 0xfc12f
|
||||||
|
|
||||||
TilesetPortAnim: ; 0xfc12f
|
TilesetPortAnim: ; 0xfc12f
|
||||||
dw VTiles2 tile $14, AnimateWaterTile
|
dw vTiles2 tile $14, AnimateWaterTile
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
@ -150,48 +150,48 @@ TilesetGym1Anim: ; 0xfc15f
|
|||||||
; 0xfc17f
|
; 0xfc17f
|
||||||
|
|
||||||
TilesetAnimfc17f: ; 0xfc17f
|
TilesetAnimfc17f: ; 0xfc17f
|
||||||
dw VTiles2 tile $53, WriteTileToBuffer
|
dw vTiles2 tile $53, WriteTileToBuffer
|
||||||
dw wTileAnimBuffer, ScrollTileDown
|
dw wTileAnimBuffer, ScrollTileDown
|
||||||
dw wTileAnimBuffer, ScrollTileDown
|
dw wTileAnimBuffer, ScrollTileDown
|
||||||
dw VTiles2 tile $53, WriteTileFromBuffer
|
dw vTiles2 tile $53, WriteTileFromBuffer
|
||||||
dw VTiles2 tile $03, WriteTileToBuffer
|
dw vTiles2 tile $03, WriteTileToBuffer
|
||||||
dw wTileAnimBuffer, ScrollTileRightLeft
|
dw wTileAnimBuffer, ScrollTileRightLeft
|
||||||
dw VTiles2 tile $03, WriteTileFromBuffer
|
dw vTiles2 tile $03, WriteTileFromBuffer
|
||||||
dw VTiles2 tile $53, WriteTileToBuffer
|
dw vTiles2 tile $53, WriteTileToBuffer
|
||||||
dw wTileAnimBuffer, ScrollTileDown
|
dw wTileAnimBuffer, ScrollTileDown
|
||||||
dw wTileAnimBuffer, ScrollTileDown
|
dw wTileAnimBuffer, ScrollTileDown
|
||||||
dw VTiles2 tile $53, WriteTileFromBuffer
|
dw vTiles2 tile $53, WriteTileFromBuffer
|
||||||
dw NULL, DoneTileAnimation
|
dw NULL, DoneTileAnimation
|
||||||
; 0xfc1af
|
; 0xfc1af
|
||||||
|
|
||||||
TilesetAnimfc1af: ; 0xfc1af
|
TilesetAnimfc1af: ; 0xfc1af
|
||||||
dw VTiles2 tile $54, WriteTileToBuffer
|
dw vTiles2 tile $54, WriteTileToBuffer
|
||||||
dw wTileAnimBuffer, ScrollTileDown
|
dw wTileAnimBuffer, ScrollTileDown
|
||||||
dw wTileAnimBuffer, ScrollTileDown
|
dw wTileAnimBuffer, ScrollTileDown
|
||||||
dw VTiles2 tile $54, WriteTileFromBuffer
|
dw vTiles2 tile $54, WriteTileFromBuffer
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
dw VTiles2 tile $03, WriteTileToBuffer
|
dw vTiles2 tile $03, WriteTileToBuffer
|
||||||
dw wTileAnimBuffer, ScrollTileRightLeft
|
dw wTileAnimBuffer, ScrollTileRightLeft
|
||||||
dw VTiles2 tile $03, WriteTileFromBuffer
|
dw vTiles2 tile $03, WriteTileFromBuffer
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
dw VTiles2 tile $54, WriteTileToBuffer
|
dw vTiles2 tile $54, WriteTileToBuffer
|
||||||
dw wTileAnimBuffer, ScrollTileDown
|
dw wTileAnimBuffer, ScrollTileDown
|
||||||
dw wTileAnimBuffer, ScrollTileDown
|
dw wTileAnimBuffer, ScrollTileDown
|
||||||
dw VTiles2 tile $54, WriteTileFromBuffer
|
dw vTiles2 tile $54, WriteTileFromBuffer
|
||||||
dw NULL, DoneTileAnimation
|
dw NULL, DoneTileAnimation
|
||||||
; 0xfc1e7
|
; 0xfc1e7
|
||||||
|
|
||||||
TilesetCaveAnim: ; 0xfc1e7
|
TilesetCaveAnim: ; 0xfc1e7
|
||||||
TilesetWhirlIslandsAnim: ; 0xfc1e7
|
TilesetWhirlIslandsAnim: ; 0xfc1e7
|
||||||
dw VTiles2 tile $14, WriteTileToBuffer
|
dw vTiles2 tile $14, WriteTileToBuffer
|
||||||
dw NULL, FlickeringCaveEntrancePalette
|
dw NULL, FlickeringCaveEntrancePalette
|
||||||
dw wTileAnimBuffer, ScrollTileRightLeft
|
dw wTileAnimBuffer, ScrollTileRightLeft
|
||||||
dw NULL, FlickeringCaveEntrancePalette
|
dw NULL, FlickeringCaveEntrancePalette
|
||||||
dw VTiles2 tile $14, WriteTileFromBuffer
|
dw vTiles2 tile $14, WriteTileFromBuffer
|
||||||
dw NULL, FlickeringCaveEntrancePalette
|
dw NULL, FlickeringCaveEntrancePalette
|
||||||
dw NULL, TileAnimationPalette
|
dw NULL, TileAnimationPalette
|
||||||
dw NULL, FlickeringCaveEntrancePalette
|
dw NULL, FlickeringCaveEntrancePalette
|
||||||
dw VTiles2 tile $40, WriteTileToBuffer
|
dw vTiles2 tile $40, WriteTileToBuffer
|
||||||
dw NULL, FlickeringCaveEntrancePalette
|
dw NULL, FlickeringCaveEntrancePalette
|
||||||
dw wTileAnimBuffer, ScrollTileDown
|
dw wTileAnimBuffer, ScrollTileDown
|
||||||
dw NULL, FlickeringCaveEntrancePalette
|
dw NULL, FlickeringCaveEntrancePalette
|
||||||
@ -199,21 +199,21 @@ TilesetWhirlIslandsAnim: ; 0xfc1e7
|
|||||||
dw NULL, FlickeringCaveEntrancePalette
|
dw NULL, FlickeringCaveEntrancePalette
|
||||||
dw wTileAnimBuffer, ScrollTileDown
|
dw wTileAnimBuffer, ScrollTileDown
|
||||||
dw NULL, FlickeringCaveEntrancePalette
|
dw NULL, FlickeringCaveEntrancePalette
|
||||||
dw VTiles2 tile $40, WriteTileFromBuffer
|
dw vTiles2 tile $40, WriteTileFromBuffer
|
||||||
dw NULL, FlickeringCaveEntrancePalette
|
dw NULL, FlickeringCaveEntrancePalette
|
||||||
dw NULL, DoneTileAnimation
|
dw NULL, DoneTileAnimation
|
||||||
; 0xfc233
|
; 0xfc233
|
||||||
|
|
||||||
TilesetIcePathAnim: ; 0xfc233
|
TilesetIcePathAnim: ; 0xfc233
|
||||||
dw VTiles2 tile $35, WriteTileToBuffer
|
dw vTiles2 tile $35, WriteTileToBuffer
|
||||||
dw NULL, FlickeringCaveEntrancePalette
|
dw NULL, FlickeringCaveEntrancePalette
|
||||||
dw wTileAnimBuffer, ScrollTileRightLeft
|
dw wTileAnimBuffer, ScrollTileRightLeft
|
||||||
dw NULL, FlickeringCaveEntrancePalette
|
dw NULL, FlickeringCaveEntrancePalette
|
||||||
dw VTiles2 tile $35, WriteTileFromBuffer
|
dw vTiles2 tile $35, WriteTileFromBuffer
|
||||||
dw NULL, FlickeringCaveEntrancePalette
|
dw NULL, FlickeringCaveEntrancePalette
|
||||||
dw NULL, TileAnimationPalette
|
dw NULL, TileAnimationPalette
|
||||||
dw NULL, FlickeringCaveEntrancePalette
|
dw NULL, FlickeringCaveEntrancePalette
|
||||||
dw VTiles2 tile $31, WriteTileToBuffer
|
dw vTiles2 tile $31, WriteTileToBuffer
|
||||||
dw NULL, FlickeringCaveEntrancePalette
|
dw NULL, FlickeringCaveEntrancePalette
|
||||||
dw wTileAnimBuffer, ScrollTileDown
|
dw wTileAnimBuffer, ScrollTileDown
|
||||||
dw NULL, FlickeringCaveEntrancePalette
|
dw NULL, FlickeringCaveEntrancePalette
|
||||||
@ -221,7 +221,7 @@ TilesetIcePathAnim: ; 0xfc233
|
|||||||
dw NULL, FlickeringCaveEntrancePalette
|
dw NULL, FlickeringCaveEntrancePalette
|
||||||
dw wTileAnimBuffer, ScrollTileDown
|
dw wTileAnimBuffer, ScrollTileDown
|
||||||
dw NULL, FlickeringCaveEntrancePalette
|
dw NULL, FlickeringCaveEntrancePalette
|
||||||
dw VTiles2 tile $31, WriteTileFromBuffer
|
dw vTiles2 tile $31, WriteTileFromBuffer
|
||||||
dw NULL, FlickeringCaveEntrancePalette
|
dw NULL, FlickeringCaveEntrancePalette
|
||||||
dw NULL, DoneTileAnimation
|
dw NULL, DoneTileAnimation
|
||||||
; 0xfc27f
|
; 0xfc27f
|
||||||
@ -246,9 +246,9 @@ TilesetSproutTowerAnim: ; 0xfc27f
|
|||||||
; 0xfc2bf
|
; 0xfc2bf
|
||||||
|
|
||||||
TilesetAnimfc2bf: ; 0xfc2bf
|
TilesetAnimfc2bf: ; 0xfc2bf
|
||||||
dw VTiles2 tile $4f, WriteTileToBuffer
|
dw vTiles2 tile $4f, WriteTileToBuffer
|
||||||
dw wTileAnimBuffer, ScrollTileRightLeft
|
dw wTileAnimBuffer, ScrollTileRightLeft
|
||||||
dw VTiles2 tile $4f, WriteTileFromBuffer
|
dw vTiles2 tile $4f, WriteTileFromBuffer
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
@ -521,7 +521,7 @@ ForestTreeLeftAnimation: ; fc45c
|
|||||||
|
|
||||||
.asm_fc47d
|
.asm_fc47d
|
||||||
ld sp, hl
|
ld sp, hl
|
||||||
ld hl, VTiles2 tile $0c
|
ld hl, vTiles2 tile $0c
|
||||||
jp WriteTile
|
jp WriteTile
|
||||||
; fc484
|
; fc484
|
||||||
|
|
||||||
@ -567,7 +567,7 @@ ForestTreeRightAnimation: ; fc4c4
|
|||||||
|
|
||||||
.asm_fc4eb
|
.asm_fc4eb
|
||||||
ld sp, hl
|
ld sp, hl
|
||||||
ld hl, VTiles2 tile $0f
|
ld hl, vTiles2 tile $0f
|
||||||
jp WriteTile
|
jp WriteTile
|
||||||
; fc4f2
|
; fc4f2
|
||||||
|
|
||||||
@ -599,7 +599,7 @@ ForestTreeLeftAnimation2: ; fc4f2
|
|||||||
|
|
||||||
.asm_fc515
|
.asm_fc515
|
||||||
ld sp, hl
|
ld sp, hl
|
||||||
ld hl, VTiles2 tile $0c
|
ld hl, vTiles2 tile $0c
|
||||||
jp WriteTile
|
jp WriteTile
|
||||||
; fc51c
|
; fc51c
|
||||||
|
|
||||||
@ -635,7 +635,7 @@ ForestTreeRightAnimation2: ; fc51c
|
|||||||
|
|
||||||
.asm_fc545
|
.asm_fc545
|
||||||
ld sp, hl
|
ld sp, hl
|
||||||
ld hl, VTiles2 tile $0f
|
ld hl, vTiles2 tile $0f
|
||||||
jp WriteTile
|
jp WriteTile
|
||||||
; fc54c
|
; fc54c
|
||||||
|
|
||||||
@ -691,7 +691,7 @@ AnimateFlowerTile: ; fc56d
|
|||||||
add hl, de
|
add hl, de
|
||||||
ld sp, hl
|
ld sp, hl
|
||||||
|
|
||||||
ld hl, VTiles2 + $30 ; tile 4
|
ld hl, vTiles2 + $30 ; tile 4
|
||||||
|
|
||||||
jp WriteTile
|
jp WriteTile
|
||||||
; fc58c
|
; fc58c
|
||||||
@ -721,7 +721,7 @@ SafariFountainAnim1: ; fc5cc
|
|||||||
ld hl, SafariFountainFrames
|
ld hl, SafariFountainFrames
|
||||||
add hl, de
|
add hl, de
|
||||||
ld sp, hl
|
ld sp, hl
|
||||||
ld hl, VTiles2 tile $5b
|
ld hl, vTiles2 tile $5b
|
||||||
jp WriteTile
|
jp WriteTile
|
||||||
; fc5eb
|
; fc5eb
|
||||||
|
|
||||||
@ -741,7 +741,7 @@ SafariFountainAnim2: ; fc5eb
|
|||||||
ld hl, SafariFountainFrames
|
ld hl, SafariFountainFrames
|
||||||
add hl, de
|
add hl, de
|
||||||
ld sp, hl
|
ld sp, hl
|
||||||
ld hl, VTiles2 tile $38
|
ld hl, vTiles2 tile $38
|
||||||
jp WriteTile
|
jp WriteTile
|
||||||
; fc605
|
; fc605
|
||||||
|
|
||||||
@ -1025,16 +1025,16 @@ FlickeringCaveEntrancePalette: ; fc71e
|
|||||||
; fc750
|
; fc750
|
||||||
|
|
||||||
|
|
||||||
SproutPillarTilePointer1: dw VTiles2 tile $2d, SproutPillarTile1
|
SproutPillarTilePointer1: dw vTiles2 tile $2d, SproutPillarTile1
|
||||||
SproutPillarTilePointer2: dw VTiles2 tile $2f, SproutPillarTile2
|
SproutPillarTilePointer2: dw vTiles2 tile $2f, SproutPillarTile2
|
||||||
SproutPillarTilePointer3: dw VTiles2 tile $3d, SproutPillarTile3
|
SproutPillarTilePointer3: dw vTiles2 tile $3d, SproutPillarTile3
|
||||||
SproutPillarTilePointer4: dw VTiles2 tile $3f, SproutPillarTile4
|
SproutPillarTilePointer4: dw vTiles2 tile $3f, SproutPillarTile4
|
||||||
SproutPillarTilePointer5: dw VTiles2 tile $3c, SproutPillarTile5
|
SproutPillarTilePointer5: dw vTiles2 tile $3c, SproutPillarTile5
|
||||||
SproutPillarTilePointer6: dw VTiles2 tile $2c, SproutPillarTile6
|
SproutPillarTilePointer6: dw vTiles2 tile $2c, SproutPillarTile6
|
||||||
SproutPillarTilePointer7: dw VTiles2 tile $4d, SproutPillarTile7
|
SproutPillarTilePointer7: dw vTiles2 tile $4d, SproutPillarTile7
|
||||||
SproutPillarTilePointer8: dw VTiles2 tile $4f, SproutPillarTile8
|
SproutPillarTilePointer8: dw vTiles2 tile $4f, SproutPillarTile8
|
||||||
SproutPillarTilePointer9: dw VTiles2 tile $5d, SproutPillarTile9
|
SproutPillarTilePointer9: dw vTiles2 tile $5d, SproutPillarTile9
|
||||||
SproutPillarTilePointer10: dw VTiles2 tile $5f, SproutPillarTile10
|
SproutPillarTilePointer10: dw vTiles2 tile $5f, SproutPillarTile10
|
||||||
|
|
||||||
SproutPillarTile1: INCBIN "gfx/tilesets/sprout-pillar/1.2bpp"
|
SproutPillarTile1: INCBIN "gfx/tilesets/sprout-pillar/1.2bpp"
|
||||||
SproutPillarTile2: INCBIN "gfx/tilesets/sprout-pillar/2.2bpp"
|
SproutPillarTile2: INCBIN "gfx/tilesets/sprout-pillar/2.2bpp"
|
||||||
@ -1049,10 +1049,10 @@ SproutPillarTile10: INCBIN "gfx/tilesets/sprout-pillar/10.2bpp"
|
|||||||
; fca98
|
; fca98
|
||||||
|
|
||||||
|
|
||||||
WhirlpoolFrames1: dw VTiles2 tile $32, WhirlpoolTiles1
|
WhirlpoolFrames1: dw vTiles2 tile $32, WhirlpoolTiles1
|
||||||
WhirlpoolFrames2: dw VTiles2 tile $33, WhirlpoolTiles2
|
WhirlpoolFrames2: dw vTiles2 tile $33, WhirlpoolTiles2
|
||||||
WhirlpoolFrames3: dw VTiles2 tile $42, WhirlpoolTiles3
|
WhirlpoolFrames3: dw vTiles2 tile $42, WhirlpoolTiles3
|
||||||
WhirlpoolFrames4: dw VTiles2 tile $43, WhirlpoolTiles4
|
WhirlpoolFrames4: dw vTiles2 tile $43, WhirlpoolTiles4
|
||||||
; fcaa8
|
; fcaa8
|
||||||
|
|
||||||
WhirlpoolTiles1: INCBIN "gfx/tilesets/whirlpool/1.2bpp"
|
WhirlpoolTiles1: INCBIN "gfx/tilesets/whirlpool/1.2bpp"
|
||||||
|
@ -10,7 +10,7 @@ LoadMapGroupRoof:: ; 1c000
|
|||||||
ld hl, Roofs
|
ld hl, Roofs
|
||||||
ld bc, $90
|
ld bc, $90
|
||||||
call AddNTimes
|
call AddNTimes
|
||||||
ld de, VTiles2 tile $0a
|
ld de, vTiles2 tile $0a
|
||||||
ld bc, $90
|
ld bc, $90
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ret
|
ret
|
||||||
|
20
vram.asm
20
vram.asm
@ -1,16 +1,16 @@
|
|||||||
SECTION "VRAM0", VRAM
|
SECTION "VRAM0", VRAM
|
||||||
|
|
||||||
VTiles0:: ds $800
|
vTiles0:: ds $800
|
||||||
VTiles1:: ds $800
|
vTiles1:: ds $800
|
||||||
VTiles2:: ds $800
|
vTiles2:: ds $800
|
||||||
VBGMap0:: ds $400
|
vBGMap0:: ds $400
|
||||||
VBGMap1:: ds $400
|
vBGMap1:: ds $400
|
||||||
|
|
||||||
|
|
||||||
SECTION "VRAM1", VRAM
|
SECTION "VRAM1", VRAM
|
||||||
|
|
||||||
VTiles3:: ds $800
|
vTiles3:: ds $800
|
||||||
VTiles4:: ds $800
|
vTiles4:: ds $800
|
||||||
VTiles5:: ds $800
|
vTiles5:: ds $800
|
||||||
VBGMap2:: ds $400
|
vBGMap2:: ds $400
|
||||||
VBGMap3:: ds $400
|
vBGMap3:: ds $400
|
||||||
|
2
wram.asm
2
wram.asm
@ -212,7 +212,7 @@ SECTION "wSpriteAnims", WRAM0
|
|||||||
UNION ; c300
|
UNION ; c300
|
||||||
; wSpriteAnimDict is a 10x2 dictionary
|
; wSpriteAnimDict is a 10x2 dictionary
|
||||||
; keys: taken from third column of SpriteAnimSeqData
|
; keys: taken from third column of SpriteAnimSeqData
|
||||||
; values: VTiles
|
; values: vTiles
|
||||||
wSpriteAnimDict:: ds 10 * 2
|
wSpriteAnimDict:: ds 10 * 2
|
||||||
|
|
||||||
wSpriteAnimationStructs::
|
wSpriteAnimationStructs::
|
||||||
|
Loading…
Reference in New Issue
Block a user