ref: 333524f0beb876ceaaed99b97f4c7dacf6466050
parent: 7beb497d3aba7cd1bb34f2b1394bde80c1cd9807
author: xCrystal <[email protected]>
date: Thu Dec 28 08:32:33 EST 2017
Lowercase v for VRAM addresses
--- a/data/emotes.asm
+++ b/data/emotes.asm
@@ -2,7 +2,7 @@
; graphics pointer, length, starting tile
dw \1
db \2 tiles, BANK(\1)
- dw VTiles1 tile \3
+ dw vTiles1 tile \3
ENDM
Emotes: ; 144d
--- a/engine/battle/battle_transition.asm
+++ b/engine/battle/battle_transition.asm
@@ -92,7 +92,7 @@
; Load the tiles used in the Pokeball Graphic that fills the screen
; at the start of every Trainer battle.
ld de, TrainerBattlePokeballTiles
- ld hl, VTiles1 tile $7e
+ ld hl, vTiles1 tile $7e
ld b, BANK(TrainerBattlePokeballTiles)
ld c, 2
call Request2bpp
@@ -103,7 +103,7 @@
ld [rVBK], a
ld de, TrainerBattlePokeballTiles
- ld hl, VTiles4 tile $7e
+ ld hl, vTiles4 tile $7e
ld b, BANK(TrainerBattlePokeballTiles)
ld c, 2
call Request2bpp
--- a/engine/battle/core.asm
+++ b/engine/battle/core.asm
@@ -5309,13 +5309,13 @@
Battle_StatsScreen: ; 3e308
call DisableLCD
- ld hl, VTiles2 tile $31
- ld de, VTiles0
+ ld hl, vTiles2 tile $31
+ ld de, vTiles0
ld bc, $11 tiles
call CopyBytes
- ld hl, VTiles2
- ld de, VTiles0 tile $11
+ ld hl, vTiles2
+ ld de, vTiles0 tile $11
ld bc, $31 tiles
call CopyBytes
@@ -5330,13 +5330,13 @@
call DisableLCD
- ld hl, VTiles0
- ld de, VTiles2 tile $31
+ ld hl, vTiles0
+ ld de, vTiles2 tile $31
ld bc, $11 tiles
call CopyBytes
- ld hl, VTiles0 tile $11
- ld de, VTiles2
+ ld hl, vTiles0 tile $11
+ ld de, vTiles2
ld bc, $31 tiles
call CopyBytes
@@ -6779,7 +6779,7 @@
call FinishBattleAnim
ld a, [OtherTrainerClass]
ld [TrainerClass], a
- ld de, VTiles2
+ ld de, vTiles2
callfar GetTrainerPic
hlcoord 19, 0
ld c, 0
@@ -7155,15 +7155,15 @@
LoadHPExpBarGFX: ; unreferenced
ld de, EnemyHPBarBorderGFX
- ld hl, VTiles2 tile $6c
+ ld hl, vTiles2 tile $6c
lb bc, BANK(EnemyHPBarBorderGFX), 4
call Get1bpp
ld de, HPExpBarBorderGFX
- ld hl, VTiles2 tile $73
+ ld hl, vTiles2 tile $73
lb bc, BANK(HPExpBarBorderGFX), 6
call Get1bpp
ld de, ExpBarGFX
- ld hl, VTiles2 tile $55
+ ld hl, vTiles2 tile $55
lb bc, BANK(ExpBarGFX), 8
jp Get2bpp
; 3edd1
@@ -8286,7 +8286,7 @@
ld [CurPartySpecies], a
ld hl, BattleMonDVs
predef GetUnownLetter
- ld de, VTiles2 tile $31
+ ld de, vTiles2 tile $31
predef GetMonBackpic
pop af
ld [CurPartySpecies], a
@@ -8325,7 +8325,7 @@
call GetBaseData
ld hl, EnemyMonDVs
predef GetUnownLetter
- ld de, VTiles2
+ ld de, vTiles2
predef GetAnimatedFrontpicPredef
pop af
ld [CurPartySpecies], a
@@ -8382,7 +8382,7 @@
call DisableSpriteUpdates
farcall ClearBattleRAM
call InitEnemy
- call BackUpVBGMap2
+ call BackUpBGMap2
ld b, SCGB_BATTLE_GRAYSCALE
call GetSGBLayout
ld hl, rLCDC
@@ -8428,13 +8428,13 @@
jp InitEnemyWildmon ; wild
; 3f568
-BackUpVBGMap2: ; 3f568
+BackUpBGMap2: ; 3f568
ld a, [rSVBK]
push af
ld a, $6 ; BANK(wDecompressScratch)
ld [rSVBK], a
ld hl, wDecompressScratch
- ld bc, $40 tiles ; VBGMap3 - VBGMap2
+ ld bc, $40 tiles ; vBGMap3 - vBGMap2
ld a, $2
call ByteFill
ld a, [rVBK]
@@ -8442,8 +8442,8 @@
ld a, $1
ld [rVBK], a
ld de, wDecompressScratch
- hlbgcoord 0, 0 ; VBGMap2
- lb bc, BANK(BackUpVBGMap2), $40
+ hlbgcoord 0, 0 ; vBGMap2
+ lb bc, BANK(BackUpBGMap2), $40
call Request2bpp
pop af
ld [rVBK], a
@@ -8467,7 +8467,7 @@
ld [OTPartyMon1Item], a
.ok
- ld de, VTiles2
+ ld de, vTiles2
callfar GetTrainerPic
xor a
ld [hGraphicStartTile], a
@@ -8531,7 +8531,7 @@
ld a, [UnownLetter]
ld [wFirstUnownSeen], a
.skip_unown
- ld de, VTiles2
+ ld de, vTiles2
predef GetAnimatedFrontpicPredef
xor a
ld [TrainerClass], a
@@ -9336,7 +9336,7 @@
; 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.
ld b, BANK(DudeBackpic)
@@ -9363,7 +9363,7 @@
ld hl, ChrisBackpic
.Decompress:
- ld de, VTiles2 tile $31
+ ld de, vTiles2 tile $31
ld c, $31
predef DecompressPredef
ret
@@ -9374,8 +9374,8 @@
push af
ld a, $6
ld [rSVBK], a
- ld hl, VTiles0
- ld de, VTiles2 tile $31
+ ld hl, vTiles0
+ ld de, vTiles2 tile $31
ld a, [hROMBank]
ld b, a
ld c, $31
--- a/engine/battle/start_battle.asm
+++ b/engine/battle/start_battle.asm
@@ -191,7 +191,7 @@
call ClearWindowData
ld hl, hBGMapAddress
- xor a ; LOW(VBGMap0)
+ xor a ; LOW(vBGMap0)
ld [hli], a
- ld [hl], HIGH(VBGMap0)
+ ld [hl], HIGH(vBGMap0)
ret
--- a/engine/battle/trainer_huds.asm
+++ b/engine/battle/trainer_huds.asm
@@ -232,7 +232,7 @@
LoadBallIconGFX: ; 2c165
ld de, .gfx
- ld hl, VTiles0 tile $31
+ ld hl, vTiles0 tile $31
lb bc, BANK(LoadBallIconGFX), 4
call Get2bpp_2
ret
--- a/engine/battle_anims/anim_commands.asm
+++ b/engine/battle_anims/anim_commands.asm
@@ -236,16 +236,16 @@
; Appears to be unused.
xor a
ld [hBGMapMode], a
- ld a, LOW(VBGMap0 tile $28)
+ ld a, LOW(vBGMap0 tile $28)
ld [hBGMapAddress], a
- ld a, HIGH(VBGMap0 tile $28)
+ ld a, HIGH(vBGMap0 tile $28)
ld [hBGMapAddress + 1], a
call WaitBGMap2
ld a, $60
ld [hWY], a
- xor a ; LOW(VBGMap0)
+ xor a ; LOW(vBGMap0)
ld [hBGMapAddress], a
- ld a, HIGH(VBGMap0)
+ ld a, HIGH(vBGMap0)
ld [hBGMapAddress + 1], a
call BattleAnimDelayFrame
ret
@@ -693,7 +693,7 @@
ld [wBattleAnimTemp0], a
.loop
ld a, [wBattleAnimTemp0]
- cp (VTiles1 - VTiles0) / $10 - $31
+ cp (vTiles1 - vTiles0) / $10 - $31
ret nc
call GetBattleAnimByte
ld [hli], a
@@ -706,7 +706,7 @@
rept 4
add hl, hl
endr
- ld de, VTiles0 tile $31
+ ld de, vTiles0 tile $31
add hl, de
ld a, [BattleAnimByte]
call LoadBattleAnimObj
@@ -816,13 +816,13 @@
ld a, $49
ld [hl], a
- ld hl, VTiles0 tile $73
- ld de, VTiles2 tile $06
+ ld hl, vTiles0 tile $73
+ ld de, vTiles2 tile $06
ld a, $70
ld [wBattleAnimTemp0], a
ld a, $7
call .LoadFootprint
- ld de, VTiles2 tile $31
+ ld de, vTiles2 tile $31
ld a, $60
ld [wBattleAnimTemp0], a
ld a, $6
@@ -871,13 +871,13 @@
ld a, $43
ld [hl], a
- ld hl, VTiles0 tile $66
- ld de, VTiles2 tile $05
+ ld hl, vTiles0 tile $66
+ ld de, vTiles2 tile $05
ld a, $70
ld [wBattleAnimTemp0], a
ld a, $7
call .LoadHead
- ld de, VTiles2 tile $31
+ ld de, vTiles2 tile $31
ld a, $60
ld [wBattleAnimTemp0], a
ld a, $6
@@ -930,7 +930,7 @@
ld [CurPartySpecies], a ; CurPartySpecies
ld hl, BattleMonDVs ; BattleMonDVs
predef GetUnownLetter
- ld de, VTiles0 tile $00
+ ld de, vTiles0 tile $00
predef GetMonFrontpic
jr .done
@@ -939,7 +939,7 @@
ld [CurPartySpecies], a ; CurPartySpecies
ld hl, EnemyMonDVs ; EnemyMonDVs
predef GetUnownLetter
- ld de, VTiles0 tile $00
+ ld de, vTiles0 tile $00
predef GetMonBackpic
.done
@@ -951,12 +951,12 @@
BattleAnimCmd_UpdateActorPic: ; cc622 (33:4622)
- ld de, VTiles0 tile $00
+ ld de, vTiles0 tile $00
ld a, [hBattleTurn]
and a
jr z, .player
- ld hl, VTiles2 tile $00
+ ld hl, vTiles2 tile $00
ld b, 0
ld c, $31
call Request2bpp
@@ -963,7 +963,7 @@
ret
.player
- ld hl, VTiles2 tile $31
+ ld hl, vTiles2 tile $31
ld b, 0
ld c, $24
call Request2bpp
@@ -1007,7 +1007,7 @@
ld de, sScratch + (3 * 7 + 6) tiles
call .CopyTile
- ld hl, VTiles2 tile $00
+ ld hl, vTiles2 tile $00
ld de, sScratch
lb bc, BANK(GetSubstitutePic), 7 * 7
call Request2bpp
@@ -1027,7 +1027,7 @@
ld de, sScratch + (3 * 6 + 5) tiles
call .CopyTile
- ld hl, VTiles2 tile $31
+ ld hl, vTiles2 tile $31
ld de, sScratch
lb bc, BANK(GetSubstitutePic), 6 * 6
call Request2bpp
@@ -1075,7 +1075,7 @@
ld de, sScratch + $1a tiles
call CopyMinimizePic
- ld hl, VTiles2 tile $00
+ ld hl, vTiles2 tile $00
ld de, sScratch
lb bc, BANK(GetMinimizePic), $31
ret
@@ -1083,7 +1083,7 @@
.player
ld de, sScratch + $160
call CopyMinimizePic
- ld hl, VTiles2 tile $31
+ ld hl, vTiles2 tile $31
ld de, sScratch
lb bc, BANK(GetMinimizePic), $24
ret
@@ -1108,7 +1108,7 @@
xor a
call GetSRAMBank
call GetMinimizePic
- ld hl, VTiles0 tile $00
+ ld hl, vTiles0 tile $00
call Request2bpp
call CloseSRAM
pop af
@@ -1157,7 +1157,7 @@
ld hl, BattleMonDVs
predef GetUnownLetter
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
predef GetMonFrontpic
jr .done
@@ -1164,7 +1164,7 @@
.player
ld hl, EnemyMonDVs
predef GetUnownLetter
- ld de, VTiles2 tile $31
+ ld de, vTiles2 tile $31
predef GetMonBackpic
.done
--- a/engine/billspc.asm
+++ b/engine/billspc.asm
@@ -1107,7 +1107,7 @@
ld hl, TempMonDVs
predef GetUnownLetter
call GetBaseData
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
predef GetMonFrontpic
xor a
ld [wBillsPC_MonHasMail], a
@@ -2261,7 +2261,7 @@
BillsPC_InitGFX: ; e33e8 (38:73e8)
call DisableLCD
- ld hl, VTiles2 tile $00
+ ld hl, vTiles2 tile $00
ld bc, $31 tiles
xor a
call ByteFill
@@ -2268,11 +2268,11 @@
call LoadStandardFont
call LoadFontsBattleExtra
ld hl, PCMailGFX
- ld de, VTiles2 tile $5c
+ ld de, vTiles2 tile $5c
ld bc, 4 tiles
call CopyBytes
ld hl, PCSelectLZ
- ld de, VTiles0 tile $00
+ ld de, vTiles0 tile $00
call Decompress
ld a, 6
call SkipMusic
--- a/engine/breeding.asm
+++ b/engine/breeding.asm
@@ -704,15 +704,15 @@
farcall BlankScreen
call DisableLCD
ld hl, EggHatchGFX
- ld de, VTiles0 tile $00
+ ld de, vTiles0 tile $00
ld bc, $20
ld a, BANK(EggHatchGFX)
call FarCopyBytes
farcall ClearSpriteAnims
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
ld a, [wJumptableIndex]
call GetHatchlingFrontpic
- ld de, VTiles2 tile $31
+ ld de, vTiles2 tile $31
ld a, EGG
call GetEggFrontpic
ld de, MUSIC_EVOLUTION
@@ -719,7 +719,7 @@
call PlayMusic
call EnableLCD
hlcoord 7, 4
- ld b, HIGH(VBGMap0)
+ ld b, HIGH(vBGMap0)
ld c, $31 ; Egg tiles start here
ld a, EGG
call Hatch_UpdateFrontpicBGMapCenter
@@ -768,7 +768,7 @@
call ClearSprites
call Hatch_InitShellFragments
hlcoord 6, 3
- ld b, HIGH(VBGMap0)
+ ld b, HIGH(vBGMap0)
ld c, $00 ; Hatchling tiles start here
ld a, [wJumptableIndex]
call Hatch_UpdateFrontpicBGMapCenter
--- a/engine/card_flip.asm
+++ b/engine/card_flip.asm
@@ -16,20 +16,20 @@
call LoadFontsExtra
ld hl, CardFlipLZ01
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
call Decompress
ld hl, CardFlipLZ02
- ld de, VTiles2 tile $3e
+ ld de, vTiles2 tile $3e
call Decompress
ld hl, CardFlipLZ03
- ld de, VTiles0 tile $00
+ ld de, vTiles0 tile $00
call Decompress
ld hl, CardFlipOffButtonGFX
- ld de, VTiles1 tile $6f
+ ld de, vTiles1 tile $6f
ld bc, 1 tiles
call CopyBytes
ld hl, CardFlipOnButtonGFX
- ld de, VTiles1 tile $75
+ ld de, vTiles1 tile $75
ld bc, 1 tiles
call CopyBytes
@@ -619,11 +619,11 @@
; e0521
CardFlip_ShiftDigitsLeftTwoPixels: ; e0521 (38:4521)
- ld de, VTiles1 tile ("0" & $7f)
- ld hl, VTiles1 tile ("0" & $7f) + 2
+ ld de, vTiles1 tile ("0" & $7f)
+ ld hl, vTiles1 tile ("0" & $7f) + 2
ld bc, 10 tiles - 2
call CopyBytes
- ld hl, VTiles1 tile $7f + 1 tiles - 2
+ ld hl, vTiles1 tile $7f + 1 tiles - 2
xor a
ld [hli], a
ld [hl], a
--- a/engine/color.asm
+++ b/engine/color.asm
@@ -902,7 +902,7 @@
; CGB only
ld a, $1
ld [rVBK], a
- ld hl, VTiles0
+ ld hl, vTiles0
ld bc, $200 tiles
xor a
call ByteFill
@@ -1069,7 +1069,7 @@
ld a, %11100100
ld [rBGP], a
ld hl, PredefPals
- ld de, VTiles1
+ ld de, vTiles1
ld bc, $100 tiles
call CopyData
call DrawDefaultTiles
@@ -1085,7 +1085,7 @@
call DisableLCD
ld a, $e4
ld [rBGP], a
- ld de, VTiles1
+ ld de, vTiles1
ld bc, 20 tiles
call CopyData
ld b, 18
@@ -1119,7 +1119,7 @@
call DisableLCD
ld a, %11100100
ld [rBGP], a
- ld de, VTiles1
+ ld de, vTiles1
ld b, $80
.loop
push bc
--- a/engine/credits.asm
+++ b/engine/credits.asm
@@ -33,17 +33,17 @@
jr nz, .load_loop
ld de, CreditsBorderGFX
- ld hl, VTiles2 tile $20
+ ld hl, vTiles2 tile $20
lb bc, BANK(CreditsBorderGFX), $09
call Request2bpp
ld de, CopyrightGFX
- ld hl, VTiles2 tile $60
+ ld hl, vTiles2 tile $60
lb bc, BANK(CopyrightGFX), $1d
call Request2bpp
ld de, TheEndGFX
- ld hl, VTiles2 tile $40
+ ld hl, vTiles2 tile $40
lb bc, BANK(TheEndGFX), $10
call Request2bpp
@@ -55,7 +55,7 @@
call Credits_LoadBorderGFX
ld e, l
ld d, h
- ld hl, VTiles2
+ ld hl, vTiles2
lb bc, BANK(CreditsMonsGFX), 16
call Request2bpp
@@ -193,9 +193,9 @@
ld [Requested2bppSource], a
ld a, h
ld [Requested2bppSource + 1], a
- ld a, LOW(VTiles2)
+ ld a, LOW(vTiles2)
ld [Requested2bppDest], a
- ld a, HIGH(VTiles2)
+ ld a, HIGH(vTiles2)
ld [Requested2bppDest + 1], a
jr Credits_RequestGFX
--- a/engine/crystal_intro.asm
+++ b/engine/crystal_intro.asm
@@ -3,9 +3,9 @@
call PlayMusic
call ClearBGPalettes
call ClearTileMap
- ld a, HIGH(VBGMap0)
+ ld a, HIGH(vBGMap0)
ld [hBGMapAddress + 1], a
- xor a ; LOW(VBGMap0)
+ xor a ; LOW(vBGMap0)
ld [hBGMapAddress], a
ld [hJoyDown], a
ld [hSCX], a
@@ -51,7 +51,7 @@
.GetGFLogoGFX: ; e45e8
ld de, GameFreakLogo
- ld hl, VTiles2
+ ld hl, vTiles2
lb bc, BANK(GameFreakLogo), $1c
call Get1bpp
@@ -65,12 +65,12 @@
ld a, BANK(IntroLogoGFX)
call FarDecompress
- ld hl, VTiles0
+ ld hl, vTiles0
ld de, wDecompressScratch
lb bc, 1, 8 tiles
call Request2bpp
- ld hl, VTiles1
+ ld hl, vTiles1
ld de, wDecompressScratch + $80 tiles
lb bc, 1, 8 tiles
call Request2bpp
@@ -470,10 +470,10 @@
ld a, $0
ld [rVBK], a
ld hl, IntroUnownsGFX
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
call Intro_DecompressRequest2bpp_128Tiles
ld hl, IntroPulseGFX
- ld de, VTiles0 tile $00
+ ld de, vTiles0 tile $00
call Intro_DecompressRequest2bpp_128Tiles
ld hl, IntroTilemap002
debgcoord 0, 0
@@ -546,7 +546,7 @@
ld a, $0
ld [rVBK], a
ld hl, IntroBackgroundGFX
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
call Intro_DecompressRequest2bpp_128Tiles
ld hl, IntroTilemap004
debgcoord 0, 0
@@ -609,10 +609,10 @@
ld a, $0
ld [rVBK], a
ld hl, IntroUnownsGFX
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
call Intro_DecompressRequest2bpp_128Tiles
ld hl, IntroPulseGFX
- ld de, VTiles0 tile $00
+ ld de, vTiles0 tile $00
call Intro_DecompressRequest2bpp_128Tiles
ld hl, IntroTilemap006
debgcoord 0, 0
@@ -706,17 +706,17 @@
call Intro_DecompressRequest2bpp_64Tiles
ld hl, IntroPichuWooperGFX
- ld de, VTiles0 tile $00
+ ld de, vTiles0 tile $00
call Intro_DecompressRequest2bpp_128Tiles
ld a, $0
ld [rVBK], a
ld hl, IntroSuicuneRunGFX
- ld de, VTiles0 tile $00
+ ld de, vTiles0 tile $00
call Intro_DecompressRequest2bpp_255Tiles
ld hl, IntroBackgroundGFX
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
call Intro_DecompressRequest2bpp_128Tiles
ld hl, IntroTilemap004
@@ -877,7 +877,7 @@
ld a, $0
ld [rVBK], a
ld hl, IntroUnownsGFX
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
call Intro_DecompressRequest2bpp_128Tiles
ld hl, IntroTilemap008
debgcoord 0, 0
@@ -1001,10 +1001,10 @@
ld a, $0
ld [rVBK], a
ld hl, IntroSuicuneRunGFX
- ld de, VTiles0 tile $00
+ ld de, vTiles0 tile $00
call Intro_DecompressRequest2bpp_255Tiles
ld hl, IntroBackgroundGFX
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
call Intro_DecompressRequest2bpp_128Tiles
ld hl, IntroTilemap004
debgcoord 0, 0
@@ -1105,13 +1105,13 @@
ld a, $0
ld [rVBK], a
ld hl, IntroSuicuneJumpGFX
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
call Intro_DecompressRequest2bpp_128Tiles
ld hl, IntroUnownBackGFX
- ld de, VTiles0 tile $00
+ ld de, vTiles0 tile $00
call Intro_DecompressRequest2bpp_128Tiles
ld de, IntroGrass4GFX
- ld hl, VTiles1 tile $00
+ ld hl, vTiles1 tile $00
lb bc, BANK(IntroGrass4GFX), 1
call Request2bpp
ld hl, IntroTilemap010
@@ -1187,7 +1187,7 @@
ld a, $0
ld [rVBK], a
ld hl, IntroSuicuneCloseGFX
- ld de, VTiles1 tile $00
+ ld de, vTiles1 tile $00
call Intro_DecompressRequest2bpp_255Tiles
ld hl, IntroTilemap012
debgcoord 0, 0
@@ -1253,13 +1253,13 @@
ld a, $0
ld [rVBK], a
ld hl, IntroSuicuneBackGFX
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
call Intro_DecompressRequest2bpp_128Tiles
ld hl, IntroUnownsGFX
- ld de, VTiles1 tile $00
+ ld de, vTiles1 tile $00
call Intro_DecompressRequest2bpp_128Tiles
ld de, IntroGrass4GFX
- ld hl, VTiles1 tile $7f
+ ld hl, vTiles1 tile $7f
lb bc, BANK(IntroGrass4GFX), 1
call Request2bpp
ld hl, IntroTilemap014
@@ -1431,7 +1431,7 @@
ld a, $0
ld [rVBK], a
ld hl, IntroCrystalUnownsGFX
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
call Intro_DecompressRequest2bpp_128Tiles
ld hl, IntroTilemap017
debgcoord 0, 0
@@ -1922,9 +1922,9 @@
ld [Requested2bppSource], a
ld a, [hli]
ld [Requested2bppSource + 1], a
- ld a, LOW(VTiles2 tile $09)
+ ld a, LOW(vTiles2 tile $09)
ld [Requested2bppDest], a
- ld a, HIGH(VTiles2 tile $09)
+ ld a, HIGH(vTiles2 tile $09)
ld [Requested2bppDest + 1], a
ld a, 4
ld [Requested2bppSize], a
--- a/engine/debug.asm
+++ b/engine/debug.asm
@@ -104,14 +104,14 @@
Function81948: ; 81948
ld a, $1
ld [rVBK], a
- ld hl, VTiles0
- ld bc, sScratch - VTiles0
+ ld hl, vTiles0
+ ld bc, sScratch - vTiles0
xor a
call ByteFill
ld a, $0
ld [rVBK], a
- ld hl, VTiles0
- ld bc, sScratch - VTiles0
+ ld hl, vTiles0
+ ld bc, sScratch - vTiles0
xor a
call ByteFill
hlcoord 0, 0, AttrMap
@@ -128,15 +128,15 @@
Function8197c: ; 8197c
ld hl, DebugColorTestGFX + $10
- ld de, VTiles2 tile $6a
+ ld de, vTiles2 tile $6a
ld bc, $160
call CopyBytes
ld hl, DebugColorTestGFX
- ld de, VTiles0
+ ld de, vTiles0
ld bc, $10
call CopyBytes
call LoadStandardFont
- ld hl, VTiles1
+ ld hl, vTiles1
lb bc, 8, 0
.asm_8199d
ld a, [hl]
@@ -314,7 +314,7 @@
ld [wBoxAlignment], a
hlcoord 12, 3
call _PrepMonFrontpic
- ld de, VTiles2 tile $31
+ ld de, vTiles2 tile $31
predef GetMonBackpic
ld a, $31
ld [hGraphicStartTile], a
@@ -345,7 +345,7 @@
ld de, StringBuffer1
hlcoord 4, 1
call PlaceString
- ld de, VTiles2
+ ld de, vTiles2
callfar GetTrainerPic
xor a
ld [TempEnemyMonSpecies], a
@@ -1062,14 +1062,14 @@
xor a
ld [hBGMapMode], a
ld de, DebugColorTestGFX + $10
- ld hl, VTiles2 tile $6a
+ ld hl, vTiles2 tile $6a
lb bc, BANK(DebugColorTestGFX), $16
call Request2bpp
ld de, DebugColorTestGFX
- ld hl, VTiles1
+ ld hl, vTiles1
lb bc, BANK(DebugColorTestGFX), 1
call Request2bpp
- ld a, HIGH(VBGMap1)
+ ld a, HIGH(vBGMap1)
ld [hBGMapAddress + 1], a
hlcoord 0, 0
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
--- a/engine/diploma.asm
+++ b/engine/diploma.asm
@@ -10,7 +10,7 @@
call ClearSprites
call DisableLCD
ld hl, DiplomaGFX
- ld de, VTiles2
+ ld de, vTiles2
call Decompress
ld hl, DiplomaPage1Tilemap
decoord 0, 0
--- a/engine/dma_transfer.asm
+++ b/engine/dma_transfer.asm
@@ -594,13 +594,13 @@
ld [rVBK], a
ld c, $8
ld hl, wScratchTileMap + $80
- debgcoord 0, 0, VBGMap1
+ debgcoord 0, 0, vBGMap1
call HDMATransfer_Wait127Scanlines
ld a, $0
ld [rVBK], a
ld c, $8
ld hl, wScratchTileMap
- debgcoord 0, 0, VBGMap1
+ debgcoord 0, 0, vBGMap1
call HDMATransfer_Wait127Scanlines
ret
--- a/engine/dummy_game.asm
+++ b/engine/dummy_game.asm
@@ -12,10 +12,10 @@
call GetSGBLayout
callfar ClearSpriteAnims
ld hl, LZ_e2221
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
call Decompress
ld hl, Unknown_e00ed
- ld de, VTiles0 tile $00
+ ld de, vTiles0 tile $00
ld bc, 4 tiles
ld a, BANK(Unknown_e00ed)
call FarCopyBytes
--- a/engine/events/celebi.asm
+++ b/engine/events/celebi.asm
@@ -72,11 +72,11 @@
LoadCelebiGFX: ; 49912
farcall ClearSpriteAnims
ld de, SpecialCelebiLeafGFX
- ld hl, VTiles1
+ ld hl, vTiles1
lb bc, BANK(SpecialCelebiLeafGFX), 4
call Request2bpp
ld de, SpecialCelebiGFX
- ld hl, VTiles0 tile $84
+ ld hl, vTiles0 tile $84
lb bc, BANK(SpecialCelebiGFX), $10
call Request2bpp
xor a
--- a/engine/events/field_moves.asm
+++ b/engine/events/field_moves.asm
@@ -22,11 +22,11 @@
ShakeHeadbuttTree: ; 8c80a
farcall ClearSpriteAnims
ld de, CutGrassGFX
- ld hl, VTiles1
+ ld hl, vTiles1
lb bc, BANK(CutGrassGFX), 4
call Request2bpp
ld de, HeadbuttTreeGFX
- ld hl, VTiles1 tile $04
+ ld hl, vTiles1 tile $04
lb bc, BANK(HeadbuttTreeGFX), 8
call Request2bpp
call Cut_Headbutt_GetPixelFacing
@@ -67,7 +67,7 @@
xor a
call ByteFill
ld de, Font
- ld hl, VTiles1
+ ld hl, vTiles1
lb bc, BANK(Font), 12
call Get1bpp
call ReplaceKrisSprite
@@ -141,11 +141,11 @@
.LoadCutGFX: ; 8c96d
callfar ClearSpriteAnims ; pointless to farcall
ld de, CutGrassGFX
- ld hl, VTiles1
+ ld hl, vTiles1
lb bc, BANK(CutGrassGFX), 4
call Request2bpp
ld de, CutTreeGFX
- ld hl, VTiles1 tile $4
+ ld hl, vTiles1 tile $4
lb bc, BANK(CutTreeGFX), 4
call Request2bpp
ret
@@ -413,7 +413,7 @@
FlyFunction_InitGFX: ; 8cb9b (23:4b9b)
callfar ClearSpriteAnims
ld de, CutGrassGFX
- ld hl, VTiles1 tile $00
+ ld hl, vTiles1 tile $00
lb bc, BANK(CutGrassGFX), 4
call Request2bpp
ld a, [CurPartyMon]
--- a/engine/events/halloffame.asm
+++ b/engine/events/halloffame.asm
@@ -249,7 +249,7 @@
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
ld a, " "
call ByteFill
- ld de, VTiles2 tile $31
+ ld de, vTiles2 tile $31
predef GetMonBackpic
ld a, $31
ld [hGraphicStartTile], a
@@ -533,7 +533,7 @@
HOF_AnimatePlayerPic: ; 86810
call ClearBGPalettes
- ld hl, VTiles2 tile HALLOFFAME_COLON
+ ld hl, vTiles2 tile HALLOFFAME_COLON
ld de, FontExtra + 13 tiles ; "<COLON>"
lb bc, BANK(FontExtra), 1
call Request2bpp
--- a/engine/events/heal_machine_anim.asm
+++ b/engine/events/heal_machine_anim.asm
@@ -72,7 +72,7 @@
.LoadGFX: ; 12383
call .LoadPalettes
ld de, .HealMachineGFX
- ld hl, VTiles0 tile $7c
+ ld hl, vTiles0 tile $7c
lb bc, BANK(.HealMachineGFX), $2
call Request2bpp
ret
--- a/engine/events/magikarp.asm
+++ b/engine/events/magikarp.asm
@@ -79,7 +79,7 @@
; 0xfbbae
Magikarp_LoadFeetInchesChars: ; fbbae
- ld hl, VTiles2 tile "′" ; $6e
+ ld hl, vTiles2 tile "′" ; $6e
ld de, .feetinchchars
lb bc, BANK(.feetinchchars), 2
call Request2bpp
--- a/engine/events/magnet_train.asm
+++ b/engine/events/magnet_train.asm
@@ -134,7 +134,7 @@
farcall GetPlayerIcon
pop af
ld [rSVBK], a
- ld hl, VTiles0
+ ld hl, vTiles0
ld c, 4
call Request2bpp
ld hl, 12 tiles
@@ -141,7 +141,7 @@
add hl, de
ld d, h
ld e, l
- ld hl, VTiles0 tile $04
+ ld hl, vTiles0 tile $04
ld c, 4
call Request2bpp
call MagnetTrain_InitLYOverrides
--- a/engine/events/pokepic.asm
+++ b/engine/events/pokepic.asm
@@ -11,7 +11,7 @@
ld a, [CurPartySpecies]
ld [CurSpecies], a
call GetBaseData
- ld de, VTiles1
+ ld de, vTiles1
predef GetMonFrontpic
ld a, [wMenuBorderTopCoord]
inc a
--- a/engine/events/print_unown.asm
+++ b/engine/events/print_unown.asm
@@ -15,12 +15,12 @@
call ClearTileMap
ld de, UnownDexATile
- ld hl, VTiles1 tile $6f
+ ld hl, vTiles1 tile $6f
lb bc, BANK(UnownDexBTile), 1
call Request1bpp
ld de, UnownDexBTile
- ld hl, VTiles1 tile $75
+ ld hl, vTiles1 tile $75
lb bc, BANK(UnownDexBTile), 1
call Request1bpp
@@ -139,7 +139,7 @@
ld [CurPartySpecies], a
xor a
ld [wBoxAlignment], a
- ld de, VTiles2
+ ld de, vTiles2
predef GetMonFrontpic
call .Load2bppToSRAM
hlcoord 1, 6
@@ -147,7 +147,7 @@
ld [hGraphicStartTile], a
lb bc, 7, 7
predef PlaceGraphic
- ld de, VTiles2 tile $31
+ ld de, vTiles2 tile $31
farcall RotateUnownFrontpic
ret
@@ -184,7 +184,7 @@
ld bc, $31 tiles
xor a
call ByteFill
- ld hl, VTiles2 tile $31
+ ld hl, vTiles2 tile $31
ld de, sScratch
ld c, $31
ld a, [hROMBank]
--- a/engine/events_3.asm
+++ b/engine/events_3.asm
@@ -132,7 +132,7 @@
LoadMapNameSignGFX: ; b80c6
ld de, MapEntryFrameGFX
- ld hl, VTiles2 tile $60
+ ld hl, vTiles2 tile $60
lb bc, BANK(MapEntryFrameGFX), $e
call Get2bpp
ret
@@ -654,13 +654,13 @@
ld de, KrisFishingGFX
.got_gender
- ld hl, VTiles0 tile $02
+ ld hl, vTiles0 tile $02
call .LoadGFX
- ld hl, VTiles0 tile $06
+ ld hl, vTiles0 tile $06
call .LoadGFX
- ld hl, VTiles0 tile $0a
+ ld hl, vTiles0 tile $0a
call .LoadGFX
- ld hl, VTiles1 tile $7c
+ ld hl, vTiles1 tile $7c
call .LoadGFX
pop af
--- a/engine/evolution_animation.asm
+++ b/engine/evolution_animation.asm
@@ -39,7 +39,7 @@
farcall ClearSpriteAnims
ld de, .GFX
- ld hl, VTiles0
+ ld hl, vTiles0
lb bc, BANK(.GFX), 8
call Request2bpp
@@ -58,8 +58,8 @@
ld [CurSpecies], a
call .PlaceFrontpic
- ld de, VTiles2
- ld hl, VTiles2 tile $31
+ ld de, vTiles2
+ ld hl, vTiles2 tile $31
ld bc, 7 * 7
call Request2bpp
@@ -167,7 +167,7 @@
call GetBaseData
ld a, $1
ld [wBoxAlignment], a
- ld de, VTiles2
+ ld de, vTiles2
predef GetAnimatedFrontpicPredef
xor a
ld [wBoxAlignment], a
--- a/engine/gbc_only.asm
+++ b/engine/gbc_only.asm
@@ -20,12 +20,12 @@
ld [rSVBK], a
ld de, $d000
- ld hl, VTiles2
+ ld hl, vTiles2
lb bc, BANK(GBCOnlyGFX), $54
call Get2bpp
ld de, Font
- ld hl, VTiles1
+ ld hl, vTiles1
lb bc, BANK(Font), $80
call Get1bpp
--- a/engine/init_gender.asm
+++ b/engine/init_gender.asm
@@ -105,7 +105,7 @@
LoadGenderScreenLightBlueTile: ; 48e64 (12:4e64)
ld de, .LightBlueTile
- ld hl, VTiles2 tile $00
+ ld hl, vTiles2 tile $00
lb bc, BANK(.LightBlueTile), 1
call Get2bpp
ret
--- a/engine/init_hof_credits.asm
+++ b/engine/init_hof_credits.asm
@@ -6,7 +6,7 @@
call LoadStandardFont
call LoadFontsBattleExtra
hlbgcoord 0, 0
- ld bc, VBGMap1 - VBGMap0
+ ld bc, vBGMap1 - vBGMap0
ld a, " "
call ByteFill
hlcoord 0, 0, AttrMap
@@ -36,7 +36,7 @@
call LoadStandardFont
call LoadFontsBattleExtra
hlbgcoord 0, 0
- ld bc, VBGMap1 - VBGMap0
+ ld bc, vBGMap1 - vBGMap0
ld a, " "
call ByteFill
hlcoord 0, 0, AttrMap
--- a/engine/init_map.asm
+++ b/engine/init_map.asm
@@ -27,7 +27,7 @@
ld a, $90
ld [hWY], a
call OverworldTextModeSwitch
- ld a, HIGH(VBGMap1)
+ ld a, HIGH(vBGMap1)
call .LoadBGMapAddrIntoHRAM
call _OpenAndCloseMenu_HDMATransferTileMapAndAttrMap
farcall LoadOW_BGPal7
@@ -38,11 +38,11 @@
ld [hBGMapMode], a
ld [hWY], a
farcall HDMATransfer_FillBGMap0WithBlack ; no need to farcall
- ld a, HIGH(VBGMap0)
+ ld a, HIGH(vBGMap0)
call .LoadBGMapAddrIntoHRAM
- xor a ; LOW(VBGMap0)
+ xor a ; LOW(vBGMap0)
ld [wBGMapAnchor], a
- ld a, HIGH(VBGMap0)
+ ld a, HIGH(vBGMap0)
ld [wBGMapAnchor + 1], a
xor a
ld [hSCX], a
@@ -90,9 +90,9 @@
ld [rHDMA1], a
ld a, LOW(wDecompressScratch)
ld [rHDMA2], a
- ld a, HIGH(VBGMap0 % $8000)
+ ld a, HIGH(vBGMap0 % $8000)
ld [rHDMA3], a
- ld a, LOW(VBGMap0 % $8000)
+ ld a, LOW(vBGMap0 % $8000)
ld [rHDMA4], a
ld a, $3f
ld [hDMATransfer], a
--- a/engine/intro_menu.asm
+++ b/engine/intro_menu.asm
@@ -942,7 +942,7 @@
; 619c
Intro_PrepTrainerPic: ; 619c
- ld de, VTiles2
+ ld de, vTiles2
farcall GetTrainerPic
xor a
ld [hGraphicStartTile], a
@@ -953,7 +953,7 @@
; 61b4
ShrinkFrame: ; 61b4
- ld de, VTiles2
+ ld de, vTiles2
ld c, $31
predef DecompressPredef
xor a
@@ -968,7 +968,7 @@
farcall GetPlayerIcon
ld c, $c
- ld hl, VTiles0
+ ld hl, vTiles0
call Request2bpp
ld hl, Sprites
@@ -1376,7 +1376,7 @@
call ClearTileMap
call LoadFontsExtra
ld de, CopyrightGFX
- ld hl, VTiles2 tile $60
+ ld hl, vTiles2 tile $60
lb bc, BANK(CopyrightGFX), $1d
call Request2bpp
hlcoord 2, 7
@@ -1405,9 +1405,9 @@
call ClearWindowData
call ClearBGPalettes
call ClearTileMap
- ld a, HIGH(VBGMap0)
+ ld a, HIGH(vBGMap0)
ld [hBGMapAddress + 1], a
- xor a ; LOW(VBGMap0)
+ xor a ; LOW(vBGMap0)
ld [hBGMapAddress], a
ld [hJoyDown], a
ld [hSCX], a
--- a/engine/link_trade.asm
+++ b/engine/link_trade.asm
@@ -4,7 +4,7 @@
__LoadTradeScreenBorder: ; 16d421
ld de, LinkCommsBorderGFX
- ld hl, VTiles2
+ ld hl, vTiles2
lb bc, BANK(LinkCommsBorderGFX), 70
call Get2bpp
ret
@@ -139,7 +139,7 @@
LinkComms_LoadPleaseWaitTextboxBorderGFX: ; 16d69a
ld de, LinkCommsBorderGFX + $30 tiles
- ld hl, VTiles2 tile $76
+ ld hl, vTiles2 tile $76
lb bc, BANK(LinkCommsBorderGFX), 8
call Get2bpp
ret
--- a/engine/mail_2.asm
+++ b/engine/mail_2.asm
@@ -28,7 +28,7 @@
ld de, SpanishItalianFont
.got_font
- ld hl, VTiles1
+ ld hl, vTiles1
lb bc, BANK(StandardEnglishFont), $80
call Get1bpp
pop de
@@ -128,7 +128,7 @@
LoadSurfMailGFX: ; b9317
push bc
- ld hl, VTiles2 tile $31
+ ld hl, vTiles2 tile $31
ld de, SurfMailBorderGFX
ld c, 8 * 8
call LoadMailGFX_Color2
@@ -142,7 +142,7 @@
LoadLiteBlueMailGFX: ; b9335
push bc
- ld hl, VTiles2 tile $31
+ ld hl, vTiles2 tile $31
ld de, LiteBlueMailBorderGFX
ld c, 8 * 8
call LoadMailGFX_Color2
@@ -213,7 +213,7 @@
LoadEonMailGFX: ; b93d2
push bc
- ld hl, VTiles2 tile $31
+ ld hl, vTiles2 tile $31
ld de, EonMailBorder1GFX
ld c, 1 * 8
call LoadMailGFX_Color2
@@ -232,7 +232,7 @@
ld de, MailEeveeGFX
ld c, 6 * 8
call LoadMailGFX_Color3
- ld hl, VTiles2 tile $3d
+ ld hl, vTiles2 tile $3d
ld de, MailLargeCircleGFX
ld c, 4 * 8
call LoadMailGFX_Color1
@@ -263,7 +263,7 @@
LoadLovelyMailGFX: ; b944b
push bc
- ld hl, VTiles2 tile $31
+ ld hl, vTiles2 tile $31
ld de, LovelyMailBorderGFX
ld c, 5 * 8
call LoadMailGFX_Color2
@@ -326,7 +326,7 @@
LoadMorphMailGFX: ; b94d6
push bc
- ld hl, VTiles2 tile $31
+ ld hl, vTiles2 tile $31
ld bc, 5 * 8
call MailGFX_GenerateMonochromeTilesColor2
ld de, MorphMailBorderCornerGFX + 3 * 8
@@ -402,7 +402,7 @@
LoadBlueSkyMailGFX: ; b9582
push bc
- ld hl, VTiles2 tile $31
+ ld hl, vTiles2 tile $31
ld de, EonMailBorder1GFX
ld c, 1 * 8
call LoadMailGFX_Color2
@@ -490,7 +490,7 @@
LoadFlowerMailGFX: ; b963e
push bc
- ld hl, VTiles2 tile $31
+ ld hl, vTiles2 tile $31
ld de, FlowerMailBorderGFX
ld c, 8 * 8
call LoadMailGFX_Color1
@@ -545,7 +545,7 @@
LoadPortraitMailGFX: ; b96ca
push bc
- ld hl, VTiles2 tile $31
+ ld hl, vTiles2 tile $31
ld de, PortraitMailBorderGFX
ld c, 5 * 8
call LoadMailGFX_Color2
@@ -552,7 +552,7 @@
ld de, PortraitMailUnderlineGFX
ld c, 1 * 8
call LoadMailGFX_Color2
- ld hl, VTiles2 tile $3d
+ ld hl, vTiles2 tile $3d
ld de, PortraitMailLargePokeballGFX
ld c, 4 * 8
call LoadMailGFX_Color1
@@ -576,7 +576,7 @@
LoadMusicMailGFX: ; b9710
push bc
- ld hl, VTiles2 tile $31
+ ld hl, vTiles2 tile $31
ld de, MusicMailBorderGFX
ld c, 4 * 8
call LoadMailGFX_Color2
@@ -619,7 +619,7 @@
LoadMirageMailGFX: ; b9776
push bc
- ld hl, VTiles2 tile $31
+ ld hl, vTiles2 tile $31
ld bc, 5 * 8
call MailGFX_GenerateMonochromeTilesColor2
ld de, BlueSkyMailGrassGFX
--- a/engine/mon_icons.asm
+++ b/engine/mon_icons.asm
@@ -331,7 +331,7 @@
add hl, hl
endr
- ld de, VTiles0
+ ld de, vTiles0
add hl, de
push hl
--- a/engine/mystery_gift.asm
+++ b/engine/mystery_gift.asm
@@ -1277,7 +1277,7 @@
call ClearBGPalettes
call DisableLCD
ld hl, MysteryGiftGFX
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
ld a, BANK(MysteryGiftGFX)
ld bc, MysteryGiftGFXEnd - MysteryGiftGFX
call FarCopyBytes
@@ -1576,12 +1576,12 @@
call ClearBGPalettes
call DisableLCD
ld hl, MysteryGiftJP_GFX
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
ld a, BANK(MysteryGiftJP_GFX)
lb bc, 4, 0
call FarCopyBytes
ld hl, MysteryGiftJP_GFX + $400
- ld de, VTiles0 tile $00
+ ld de, vTiles0 tile $00
ld a, BANK(MysteryGiftJP_GFX)
ld bc, $80
call FarCopyBytes
--- a/engine/namingscreen.asm
+++ b/engine/namingscreen.asm
@@ -175,7 +175,7 @@
.Box: ; 117f5 (4:57f5)
ld de, PokeBallSpriteGFX
- ld hl, VTiles0 tile $00
+ ld hl, vTiles0 tile $00
lb bc, BANK(PokeBallSpriteGFX), $4
call Request2bpp
xor a
@@ -217,7 +217,7 @@
.LoadSprite: ; 11847 (4:5847)
push de
- ld hl, VTiles0 tile $00
+ ld hl, vTiles0 tile $00
ld c, $4
push bc
call Request2bpp
@@ -226,7 +226,7 @@
add hl, de
ld e, l
ld d, h
- ld hl, VTiles0 tile $04
+ ld hl, vTiles0 tile $04
call Request2bpp
xor a
ld hl, wSpriteAnimDict
@@ -905,22 +905,22 @@
call LoadFontsExtra
ld de, NamingScreenGFX_MiddleLine
- ld hl, VTiles1 tile $6b
+ ld hl, vTiles1 tile $6b
lb bc, BANK(NamingScreenGFX_MiddleLine), 1
call Get1bpp
ld de, NamingScreenGFX_UnderLine
- ld hl, VTiles1 tile $72
+ ld hl, vTiles1 tile $72
lb bc, BANK(NamingScreenGFX_UnderLine), 1
call Get1bpp
- ld de, VTiles2 tile $60
+ ld de, vTiles2 tile $60
ld hl, NamingScreenGFX_Border
ld bc, 1 tiles
ld a, BANK(NamingScreenGFX_Border)
call FarCopyBytes
- ld de, VTiles0 tile $7e
+ ld de, vTiles0 tile $7e
ld hl, NamingScreenGFX_Cursor
ld bc, 2 tiles
ld a, BANK(NamingScreenGFX_Cursor)
@@ -998,7 +998,7 @@
call ClearBGPalettes
call DisableLCD
call LoadNamingScreenGFX
- ld de, VTiles0 tile $00
+ ld de, vTiles0 tile $00
ld hl, .MailIcon
ld bc, 8 tiles
ld a, BANK(.MailIcon)
--- a/engine/overworld.asm
+++ b/engine/overworld.asm
@@ -663,10 +663,10 @@
add hl, hl
endr
ld a, l
- add LOW(VTiles0)
+ add LOW(vTiles0)
ld l, a
ld a, h
- adc HIGH(VTiles0)
+ adc HIGH(vTiles0)
ld h, a
ret
; 14418
--- a/engine/pack.asm
+++ b/engine/pack.asm
@@ -1304,7 +1304,7 @@
ld a, [hli]
ld e, a
ld d, [hl]
- ld hl, VTiles2 tile $50
+ ld hl, vTiles2 tile $50
lb bc, BANK(PackGFX), 15
call Request2bpp
ret
@@ -1411,7 +1411,7 @@
call ClearSprites
call DisableLCD
ld hl, PackMenuGFX
- ld de, VTiles2
+ ld de, vTiles2
ld bc, $60 tiles
ld a, BANK(PackMenuGFX)
call FarCopyBytes
--- a/engine/pic_animation.asm
+++ b/engine/pic_animation.asm
@@ -1120,7 +1120,7 @@
ld l, e
push bc
push hl
- ld de, VTiles2
+ ld de, vTiles2
predef GetAnimatedFrontpicPredef
pop hl
pop bc
--- a/engine/player_gfx.asm
+++ b/engine/player_gfx.asm
@@ -110,12 +110,12 @@
jr z, .GotClass
ld hl, KrisCardPic
.GotClass:
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
ld bc, $23 tiles
ld a, BANK(ChrisCardPic) ; BANK(KrisCardPic)
call FarCopyBytes
ld hl, CardGFX
- ld de, VTiles2 tile $23
+ ld de, vTiles2 tile $23
ld bc, 6 tiles
ld a, BANK(CardGFX)
call FarCopyBytes
@@ -140,7 +140,7 @@
GetChrisBackpic: ; 88830
ld hl, ChrisBackpic
ld b, BANK(ChrisBackpic)
- ld de, VTiles2 tile $31
+ ld de, vTiles2 tile $31
ld c, 7 * 7
predef DecompressPredef
ret
@@ -165,7 +165,7 @@
ld de, KrisPic
.GotPic:
- ld hl, VTiles2
+ ld hl, vTiles2
ld b, BANK(ChrisPic) ; BANK(KrisPic)
ld c, 7 * 7
call Get2bpp
@@ -194,7 +194,7 @@
jr z, .GotPic
ld de, KrisPic
.GotPic:
- ld hl, VTiles2
+ ld hl, vTiles2
ld b, BANK(ChrisPic) ; BANK(KrisPic)
ld c, 7 * 7 ; dimensions
call Get2bpp
@@ -216,7 +216,7 @@
GetKrisBackpic: ; 88ec9
; Kris's backpic is uncompressed.
ld de, KrisBackpic
- ld hl, VTiles2 tile $31
+ ld hl, vTiles2 tile $31
lb bc, BANK(KrisBackpic), 7 * 7 ; dimensions
call Get2bpp
ret
--- a/engine/player_step.asm
+++ b/engine/player_step.asm
@@ -156,7 +156,7 @@
ld a, [wBGMapAnchor + 1]
inc a
and $3
- or HIGH(VBGMap0)
+ or HIGH(vBGMap0)
ld [wBGMapAnchor + 1], a
.not_overflowed
ld hl, wMetatileStandingY
@@ -187,7 +187,7 @@
ld a, [wBGMapAnchor + 1]
dec a
and $3
- or HIGH(VBGMap0)
+ or HIGH(vBGMap0)
ld [wBGMapAnchor + 1], a
.not_underflowed
ld hl, wMetatileStandingY
--- a/engine/pokedex.asm
+++ b/engine/pokedex.asm
@@ -828,7 +828,7 @@
.decompress
ld hl, PokedexLZ
- ld de, VTiles2 tile $31
+ ld de, vTiles2 tile $31
lb bc, BANK(PokedexLZ), $3a
call DecompressRequest2bpp
@@ -2402,7 +2402,7 @@
ld a, [wd265]
ld [CurPartySpecies], a
call GetBaseData
- ld de, VTiles2
+ ld de, vTiles2
predef GetMonFrontpic
ret
@@ -2410,7 +2410,7 @@
ld a, BANK(sScratch)
call GetSRAMBank
farcall LoadQuestionMarkPic
- ld hl, VTiles2
+ ld hl, vTiles2
ld de, sScratch
ld c, 7 * 7
ld a, [hROMBank]
@@ -2445,7 +2445,7 @@
push hl
ld e, l
ld d, h
- ld hl, VTiles2 tile $62
+ ld hl, vTiles2 tile $62
lb bc, BANK(Footprints), 2
call Request1bpp
pop hl
@@ -2457,7 +2457,7 @@
ld e, l
ld d, h
- ld hl, VTiles2 tile $64
+ ld hl, vTiles2 tile $64
lb bc, BANK(Footprints), 2
call Request1bpp
@@ -2466,13 +2466,13 @@
Pokedex_LoadGFX: ; 414b7
call DisableLCD
- ld hl, VTiles2
+ ld hl, vTiles2
ld bc, $31 tiles
xor a
call ByteFill
call Pokedex_LoadInvertedFont
call LoadFontsExtra
- ld hl, VTiles2 tile $60
+ ld hl, vTiles2 tile $60
ld bc, $20 tiles
call Pokedex_InvertTiles
call Pokedex_CheckSGB
@@ -2482,12 +2482,12 @@
.LoadPokedexLZ:
ld hl, PokedexLZ
- ld de, VTiles2 tile $31
+ ld de, vTiles2 tile $31
call Decompress
.LoadPokedexSlowpokeLZ:
ld hl, PokedexSlowpokeLZ
- ld de, VTiles0
+ ld de, vTiles0
call Decompress
ld a, 6
call SkipMusic
@@ -2496,7 +2496,7 @@
Pokedex_LoadInvertedFont: ; 414fb
call LoadStandardFont
- ld hl, VTiles1
+ ld hl, vTiles1
ld bc, $80 tiles
Pokedex_InvertTiles: ; 41504
@@ -2536,7 +2536,7 @@
ld bc, 27 tiles
call Pokedex_InvertTiles
ld de, sScratch + $188
- ld hl, VTiles2 tile $40
+ ld hl, vTiles2 tile $40
lb bc, BANK(Pokedex_LoadUnownFont), 27
call Request2bpp
call CloseSRAM
@@ -2555,7 +2555,7 @@
ld a, UNOWN
ld [CurPartySpecies], a
call GetBaseData
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
predef GetMonFrontpic
pop af
ld [UnownLetter], a
@@ -2585,7 +2585,7 @@
call EnableLCD
call WaitBGMap
call GetBaseData
- ld de, VTiles2
+ ld de, vTiles2
predef GetMonFrontpic
ld a, SCGB_POKEDEX
call Pokedex_GetSGBLayout
--- a/engine/pokedex_3.asm
+++ b/engine/pokedex_3.asm
@@ -1,12 +1,12 @@
LoadSGBPokedexGFX: ; 1ddf1c
ld hl, SGBPokedexGFX_LZ
- ld de, VTiles2 tile $31
+ ld de, vTiles2 tile $31
call Decompress
ret
LoadSGBPokedexGFX2: ; 1ddf26 (77:5f26)
ld hl, SGBPokedexGFX_LZ
- ld de, VTiles2 tile $31
+ ld de, vTiles2 tile $31
lb bc, BANK(SGBPokedexGFX_LZ), $3a
call DecompressRequest2bpp
ret
--- a/engine/pokegear.asm
+++ b/engine/pokegear.asm
@@ -35,9 +35,9 @@
pop af
ld [Options], a
call ClearBGPalettes
- xor a ; LOW(VBGMap0)
+ xor a ; LOW(vBGMap0)
ld [hBGMapAddress], a
- ld a, HIGH(VBGMap0)
+ ld a, HIGH(vBGMap0)
ld [hBGMapAddress + 1], a
ld a, $90
ld [hWY], a
@@ -88,15 +88,15 @@
Pokegear_LoadGFX: ; 90c4e
call ClearVBank1
ld hl, TownMapGFX
- ld de, VTiles2
+ ld de, vTiles2
ld a, BANK(TownMapGFX)
call FarDecompress
ld hl, PokegearGFX
- ld de, VTiles2 + $30 tiles
+ ld de, vTiles2 + $30 tiles
ld a, BANK(PokegearGFX)
call FarDecompress
ld hl, PokegearSpritesGFX
- ld de, VTiles0
+ ld de, vTiles0
ld a, BANK(PokegearSpritesGFX)
call Decompress
ld a, [MapGroup]
@@ -113,7 +113,7 @@
ld a, b
; standing sprite
push af
- ld de, VTiles0 tile $10
+ ld de, vTiles0 tile $10
ld bc, 4 tiles
call FarCopyBytes
pop af
@@ -121,7 +121,7 @@
; walking sprite
ld de, 12 tiles
add hl, de
- ld de, VTiles0 tile $14
+ ld de, vTiles0 tile $14
ld bc, 4 tiles
call FarCopyBytes
ret
@@ -128,7 +128,7 @@
.ssaqua
ld hl, FastShipGFX
- ld de, VTiles0 tile $10
+ ld de, vTiles0 tile $10
ld bc, 8 tiles
call CopyBytes
ret
@@ -243,9 +243,9 @@
ld a, [wcf65]
and a
jr nz, .kanto_0
- xor a ; LOW(VBGMap0)
+ xor a ; LOW(vBGMap0)
ld [hBGMapAddress], a
- ld a, HIGH(VBGMap0)
+ ld a, HIGH(vBGMap0)
ld [hBGMapAddress + 1], a
call .UpdateBGMap
ld a, $90
@@ -252,9 +252,9 @@
jr .finish
.kanto_0
- xor a ; LOW(VBGMap1)
+ xor a ; LOW(vBGMap1)
ld [hBGMapAddress], a
- ld a, HIGH(VBGMap1)
+ ld a, HIGH(vBGMap1)
ld [hBGMapAddress + 1], a
call .UpdateBGMap
xor a
@@ -2119,7 +2119,7 @@
farcall ClearSpriteAnims
call LoadTownMapGFX
ld de, FlyMapLabelBorderGFX
- ld hl, VTiles2 tile $30
+ ld hl, vTiles2 tile $30
lb bc, BANK(FlyMapLabelBorderGFX), 6
call Request1bpp
call FlyMap
@@ -2161,9 +2161,9 @@
call ClearBGPalettes
ld a, $90
ld [hWY], a
- xor a ; LOW(VBGMap0)
+ xor a ; LOW(vBGMap0)
ld [hBGMapAddress], a
- ld a, HIGH(VBGMap0)
+ ld a, HIGH(vBGMap0)
ld [hBGMapAddress + 1], a
ld a, [wTownMapPlayerIconLandmark]
ld e, a
@@ -2455,11 +2455,11 @@
ld a, $1
ld [hInMenu], a
ld de, PokedexNestIconGFX
- ld hl, VTiles0 tile $7f
+ ld hl, vTiles0 tile $7f
lb bc, BANK(PokedexNestIconGFX), 1
call Request2bpp
call .GetPlayerOrFastShipIcon
- ld hl, VTiles0 tile $78
+ ld hl, vTiles0 tile $78
ld c, 4
call Request2bpp
call LoadTownMapGFX
@@ -2466,7 +2466,7 @@
call FillKantoMap
call .PlaceString_MonsNest
call TownMapPals
- hlbgcoord 0, 0, VBGMap1
+ hlbgcoord 0, 0, vBGMap1
call TownMapBGUpdate
call FillJohtoMap
call .PlaceString_MonsNest
@@ -2871,7 +2871,7 @@
push af
farcall GetPlayerIcon
; Standing icon
- ld hl, VTiles0 tile $10
+ ld hl, vTiles0 tile $10
ld c, 4 ; # tiles
call Request2bpp
; Walking icon
@@ -2879,7 +2879,7 @@
add hl, de
ld d, h
ld e, l
- ld hl, VTiles0 tile $14
+ ld hl, vTiles0 tile $14
ld c, 4 ; # tiles
ld a, BANK(ChrisSpriteGFX) ; does nothing
call Request2bpp
@@ -2913,7 +2913,7 @@
LoadTownMapGFX: ; 91ff2
ld hl, TownMapGFX
- ld de, VTiles2
+ ld de, vTiles2
lb bc, BANK(TownMapGFX), $30
call DecompressRequest2bpp
ret
@@ -2948,13 +2948,13 @@
farcall ClearSpriteAnims
call LoadTownMapGFX
ld de, FlyMapLabelBorderGFX
- ld hl, VTiles2 tile $30
+ ld hl, vTiles2 tile $30
lb bc, BANK(FlyMapLabelBorderGFX), 6
call Request1bpp
call FillKantoMap
call TownMapBubble
call TownMapPals
- hlbgcoord 0, 0, VBGMap1
+ hlbgcoord 0, 0, vBGMap1
call TownMapBGUpdate
call FillJohtoMap
call TownMapBubble
@@ -3003,9 +3003,9 @@
call ClearBGPalettes
ld a, $90
ld [hWY], a
- xor a ; LOW(VBGMap0)
+ xor a ; LOW(vBGMap0)
ld [hBGMapAddress], a
- ld a, HIGH(VBGMap0)
+ ld a, HIGH(vBGMap0)
ld [hBGMapAddress + 1], a
ld a, [wTownMapPlayerIconLandmark]
ld e, a
--- a/engine/print_party.asm
+++ b/engine/print_party.asm
@@ -141,17 +141,17 @@
call LoadFontsBattleExtra
ld de, GBPrinterHPIcon
- ld hl, VTiles2 tile $71
+ ld hl, vTiles2 tile $71
lb bc, BANK(GBPrinterHPIcon), 1
call Request1bpp
ld de, GBPrinterLvIcon
- ld hl, VTiles2 tile $6e
+ ld hl, vTiles2 tile $6e
lb bc, BANK(GBPrinterLvIcon), 1
call Request1bpp
ld de, ShinyIconGFX
- ld hl, VTiles2 tile $3f
+ ld hl, vTiles2 tile $3f
lb bc, BANK(ShinyIconGFX), 1
call Get2bpp
--- a/engine/printer.asm
+++ b/engine/printer.asm
@@ -49,7 +49,7 @@
ld a, [wPrinterQueueLength]
push af
- ld hl, VTiles1
+ ld hl, vTiles1
ld de, FontInversed
lb bc, BANK(FontInversed), $80
call Request1bpp
--- a/engine/routines/drawkrispackgfx.asm
+++ b/engine/routines/drawkrispackgfx.asm
@@ -5,7 +5,7 @@
ld a, [hli]
ld e, a
ld d, [hl]
- ld hl, VTiles2 tile $50
+ ld hl, vTiles2 tile $50
lb bc, BANK(PackFGFX), 15
call Request2bpp
ret
--- a/engine/routines/phonering_copytilemapatonce.asm
+++ b/engine/routines/phonering_copytilemapatonce.asm
@@ -21,11 +21,11 @@
jr c, .wait
di
- ld a, BANK(VBGMap2)
+ ld a, BANK(vBGMap2)
ld [rVBK], a
hlcoord 0, 0, AttrMap
call .CopyTilemapAtOnce
- ld a, BANK(VBGMap0)
+ ld a, BANK(vBGMap0)
ld [rVBK], a
hlcoord 0, 0
call .CopyTilemapAtOnce
--- a/engine/routines/savemenu_copytilemapatonce.asm
+++ b/engine/routines/savemenu_copytilemapatonce.asm
@@ -18,11 +18,11 @@
jr c, .WaitLY
di
- ld a, BANK(VBGMap2)
+ ld a, BANK(vBGMap2)
ld [rVBK], a
hlcoord 0, 0, AttrMap
call .CopyTilemapAtOnce
- ld a, BANK(VBGMap0)
+ ld a, BANK(vBGMap0)
ld [rVBK], a
hlcoord 0, 0
call .CopyTilemapAtOnce
--- a/engine/routines/trademonfrontpic.asm
+++ b/engine/routines/trademonfrontpic.asm
@@ -1,7 +1,7 @@
GetTrademonFrontpic: ; 4d7fd
ld a, [wOTTrademonSpecies]
ld hl, wOTTrademonDVs
- ld de, VTiles2
+ ld de, vTiles2
push de
push af
predef GetUnownLetter
--- a/engine/slot_machine.asm
+++ b/engine/slot_machine.asm
@@ -36,7 +36,7 @@
call DelayFrame
call DisableLCD
hlbgcoord 0, 0
- ld bc, VBGMap1 - VBGMap0
+ ld bc, vBGMap1 - vBGMap0
ld a, " "
call ByteFill
ld b, SCGB_SLOT_MACHINE
@@ -48,19 +48,19 @@
call ByteFill
ld hl, Slots2LZ
- ld de, VTiles0 tile $00
+ ld de, vTiles0 tile $00
call Decompress
ld hl, Slots3LZ
- ld de, VTiles0 tile $40
+ ld de, vTiles0 tile $40
call Decompress
ld hl, Slots1LZ
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
call Decompress
ld hl, Slots2LZ
- ld de, VTiles2 tile $25
+ ld de, vTiles2 tile $25
call Decompress
ld hl, SlotsTilemap
--- a/engine/sprites.asm
+++ b/engine/sprites.asm
@@ -386,7 +386,7 @@
GetSpriteAnimVTile: ; 8d109
; a = wSpriteAnimDict[a] if a in wSpriteAnimDict else 0
-; VTiles offset
+; vTiles offset
push hl
push bc
ld hl, wSpriteAnimDict
@@ -631,7 +631,7 @@
ld de, SGBEndOfExpBarGFX
.load
- ld hl, VTiles0 tile $00
+ ld hl, vTiles0 tile $00
lb bc, BANK(EndOfExpBarGFX), 1
call Request2bpp
ld c, 8
--- a/engine/stats_screen.asm
+++ b/engine/stats_screen.asm
@@ -865,7 +865,7 @@
call IsAPokemon
ret c
call StatsScreen_LoadTextBoxSpaceGFX
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
predef GetAnimatedFrontpicPredef
hlcoord 0, 0
ld d, $0
@@ -954,7 +954,7 @@
ld [rVBK], a
ld de, TextBoxSpaceGFX
lb bc, BANK(TextBoxSpaceGFX), 1
- ld hl, VTiles2 tile $7f
+ ld hl, vTiles2 tile $7f
call Get2bpp
pop af
ld [rVBK], a
@@ -1071,7 +1071,7 @@
ld a, $1
ld [wBoxAlignment], a
call StatsScreen_LoadTextBoxSpaceGFX
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
predef GetAnimatedFrontpicPredef
pop de
hlcoord 0, 0
--- a/engine/timeset.asm
+++ b/engine/timeset.asm
@@ -24,15 +24,15 @@
ld [hBGMapMode], a
call LoadStandardFont
ld de, TimeSetBackgroundGFX
- ld hl, VTiles2 tile $00
+ ld hl, vTiles2 tile $00
lb bc, BANK(TimeSetBackgroundGFX), 1
call Request1bpp
ld de, TimeSetUpArrowGFX
- ld hl, VTiles2 tile $01
+ ld hl, vTiles2 tile $01
lb bc, BANK(TimeSetUpArrowGFX), 1
call Request1bpp
ld de, TimeSetDownArrowGFX
- ld hl, VTiles2 tile $02
+ ld hl, vTiles2 tile $02
lb bc, BANK(TimeSetDownArrowGFX), 1
call Request1bpp
call .ClearScreen
@@ -410,11 +410,11 @@
ld a, $1
ld [hInMenu], a
ld de, TimeSetUpArrowGFX
- ld hl, VTiles1 tile $6f
+ ld hl, vTiles1 tile $6f
lb bc, BANK(TimeSetUpArrowGFX), 1
call Request1bpp
ld de, TimeSetDownArrowGFX
- ld hl, VTiles1 tile $75
+ ld hl, vTiles1 tile $75
lb bc, BANK(TimeSetDownArrowGFX), 1
call Request1bpp
xor a
--- a/engine/title.asm
+++ b/engine/title.asm
@@ -26,7 +26,7 @@
; Decompress running Suicune gfx
ld hl, TitleSuicuneGFX
- ld de, VTiles1
+ ld de, vTiles1
call Decompress
@@ -42,7 +42,7 @@
; BG Map 1:
; line 0 (copyright)
- hlbgcoord 0, 0, VBGMap1
+ hlbgcoord 0, 0, vBGMap1
ld bc, 1 bgrows
ld a, 7 ; palette
call ByteFill
@@ -99,12 +99,12 @@
; Decompress logo
ld hl, TitleLogoGFX
- ld de, VTiles1
+ ld de, vTiles1
call Decompress
; Decompress background crystal
ld hl, TitleCrystalGFX
- ld de, VTiles0
+ ld de, vTiles0
call Decompress
@@ -122,7 +122,7 @@
call DrawTitleGraphic
; Draw copyright text
- hlbgcoord 3, 0, VBGMap1
+ hlbgcoord 3, 0, vBGMap1
lb bc, 1, 13
ld d, $c
ld e, $10
@@ -260,10 +260,10 @@
; 10eece
.Frames: ; 10eece
- db $80 ; VTiles4 tile $00
- db $88 ; VTiles4 tile $08
- db $00 ; VTiles5 tile $00
- db $08 ; VTiles5 tile $08
+ db $80 ; vTiles4 tile $00
+ db $88 ; vTiles4 tile $08
+ db $00 ; vTiles5 tile $00
+ db $08 ; vTiles5 tile $08
; 10eed2
--- a/engine/trade_animation.asm
+++ b/engine/trade_animation.asm
@@ -149,8 +149,8 @@
jr z, .NotCGB
ld a, $1
ld [rVBK], a
- ld hl, VTiles0
- ld bc, sScratch - VTiles0
+ ld hl, vTiles0
+ ld bc, sScratch - vTiles0
xor a
call ByteFill
ld a, $0
@@ -158,19 +158,19 @@
.NotCGB:
hlbgcoord 0, 0
- ld bc, sScratch - VBGMap0
+ ld bc, sScratch - vBGMap0
ld a, " "
call ByteFill
ld hl, TradeGameBoyLZ
- ld de, VTiles2 tile $31
+ ld de, vTiles2 tile $31
call Decompress
ld hl, TradeArrowGFX
- ld de, VTiles1 tile $6d
+ ld de, vTiles1 tile $6d
ld bc, $10
ld a, BANK(TradeArrowGFX)
call FarCopyBytes
ld hl, TradeArrowGFX + $10
- ld de, VTiles1 tile $6e
+ ld de, vTiles1 tile $6e
ld bc, $10
ld a, BANK(TradeArrowGFX)
call FarCopyBytes
@@ -186,11 +186,11 @@
call LoadTradeBallAndCableGFX
ld a, [wPlayerTrademonSpecies]
ld hl, wPlayerTrademonDVs
- ld de, VTiles0
+ ld de, vTiles0
call TradeAnim_GetFrontpic
ld a, [wOTTrademonSpecies]
ld hl, wOTTrademonDVs
- ld de, VTiles0 tile $31
+ ld de, vTiles0 tile $31
call TradeAnim_GetFrontpic
ld a, [wPlayerTrademonSpecies]
ld de, wPlayerTrademonSpeciesName
@@ -490,7 +490,7 @@
call DisableLCD
callfar ClearSpriteAnims
hlbgcoord 0, 0
- ld bc, sScratch - VBGMap0
+ ld bc, sScratch - vBGMap0
ld a, " "
call ByteFill
xor a
@@ -627,7 +627,7 @@
push af
call ClearBGPalettes
call WaitTop
- ld a, HIGH(VBGMap1)
+ ld a, HIGH(vBGMap1)
ld [hBGMapAddress + 1], a
call ClearTileMap
hlcoord 0, 0
@@ -657,7 +657,7 @@
call ByteFill
call WaitBGMap
call WaitTop
- ld a, HIGH(VBGMap0)
+ ld a, HIGH(vBGMap0)
ld [hBGMapAddress + 1], a
call ClearTileMap
ret
@@ -776,7 +776,7 @@
TradeAnim_ScrollOutRight: ; 293ea
call WaitTop
- ld a, HIGH(VBGMap1)
+ ld a, HIGH(vBGMap1)
ld [hBGMapAddress + 1], a
call WaitBGMap
ld a, $7
@@ -785,7 +785,7 @@
ld [hWY], a
call DelayFrame
call WaitTop
- ld a, HIGH(VBGMap0)
+ ld a, HIGH(vBGMap0)
ld [hBGMapAddress + 1], a
call ClearTileMap
call TradeAnim_IncrementJumptableIndex
@@ -802,7 +802,7 @@
ret
.done
- ld a, HIGH(VBGMap1)
+ ld a, HIGH(vBGMap1)
ld [hBGMapAddress + 1], a
call WaitBGMap
ld a, $7
@@ -809,7 +809,7 @@
ld [hWX], a
ld a, $90
ld [hWY], a
- ld a, HIGH(VBGMap0)
+ ld a, HIGH(vBGMap0)
ld [hBGMapAddress + 1], a
call TradeAnim_AdvanceScriptPointer
ret
@@ -895,14 +895,14 @@
; 294bb
TradeAnim_ShowGivemonFrontpic: ; 294bb
- ld de, VTiles0
+ ld de, vTiles0
jr TradeAnim_ShowFrontpic
TradeAnim_ShowGetmonFrontpic: ; 294c0
- ld de, VTiles0 tile $31
+ ld de, vTiles0 tile $31
TradeAnim_ShowFrontpic: ; 294c3
call DelayFrame
- ld hl, VTiles2
+ ld hl, vTiles2
lb bc, 10, $31
call Request2bpp
call WaitTop
@@ -1009,7 +1009,7 @@
TrademonStats_MonTemplate: ; 29573
call WaitTop
call TradeAnim_BlankTileMap
- ld a, HIGH(VBGMap1)
+ ld a, HIGH(vBGMap1)
ld [hBGMapAddress + 1], a
hlcoord 3, 0
ld b, $6
@@ -1032,7 +1032,7 @@
TrademonStats_Egg: ; 295a1
call WaitTop
call TradeAnim_BlankTileMap
- ld a, HIGH(VBGMap1)
+ ld a, HIGH(vBGMap1)
ld [hBGMapAddress + 1], a
hlcoord 3, 0
ld b, 6
@@ -1055,7 +1055,7 @@
TrademonStats_WaitBGMap: ; 295d8
call WaitBGMap
call WaitTop
- ld a, HIGH(VBGMap0)
+ ld a, HIGH(vBGMap0)
ld [hBGMapAddress + 1], a
ret
@@ -1499,15 +1499,15 @@
LoadTradeBallAndCableGFX: ; 2982b
call DelayFrame
ld de, TradeBallGFX
- ld hl, VTiles0 tile $62
+ ld hl, vTiles0 tile $62
lb bc, BANK(TradeBallGFX), $6
call Request2bpp
ld de, TradePoofGFX
- ld hl, VTiles0 tile $68
+ ld hl, vTiles0 tile $68
lb bc, BANK(TradePoofGFX), $c
call Request2bpp
ld de, TradeCableGFX
- ld hl, VTiles0 tile $74
+ ld hl, vTiles0 tile $74
lb bc, BANK(TradeCableGFX), $4
call Request2bpp
xor a
@@ -1523,7 +1523,7 @@
ld e, $3
callfar LoadMenuMonIcon
ld de, TradeBubbleGFX
- ld hl, VTiles0 tile $72
+ ld hl, vTiles0 tile $72
lb bc, BANK(TradeBubbleGFX), $4
call Request2bpp
xor a
--- a/engine/trainer_card.asm
+++ b/engine/trainer_card.asm
@@ -37,13 +37,13 @@
farcall GetCardPic
ld hl, CardRightCornerGFX
- ld de, VTiles2 tile $1c
+ ld de, vTiles2 tile $1c
ld bc, 1 tiles
ld a, BANK(CardRightCornerGFX)
call FarCopyBytes
ld hl, CardStatusGFX
- ld de, VTiles2 tile $29
+ ld de, vTiles2 tile $29
ld bc, 86 tiles
ld a, BANK(CardStatusGFX)
call FarCopyBytes
@@ -98,7 +98,7 @@
call TrainerCard_InitBorder
call WaitBGMap
ld de, CardStatusGFX
- ld hl, VTiles2 tile $29
+ ld hl, vTiles2 tile $29
lb bc, BANK(CardStatusGFX), 86
call Request2bpp
call TrainerCard_Page1_PrintDexCaught_GameTime
@@ -136,11 +136,11 @@
call TrainerCard_InitBorder
call WaitBGMap
ld de, LeaderGFX
- ld hl, VTiles2 tile $29
+ ld hl, vTiles2 tile $29
lb bc, BANK(LeaderGFX), $56
call Request2bpp
ld de, BadgeGFX
- ld hl, VTiles0 tile $00
+ ld hl, vTiles0 tile $00
lb bc, BANK(BadgeGFX), $2c
call Request2bpp
call TrainerCard_Page2_3_InitObjectsAndStrings
@@ -185,11 +185,11 @@
call TrainerCard_InitBorder
call WaitBGMap
ld de, LeaderGFX2
- ld hl, VTiles2 tile $29
+ ld hl, vTiles2 tile $29
lb bc, BANK(LeaderGFX2), $56
call Request2bpp
ld de, BadgeGFX2
- ld hl, VTiles0 tile $00
+ ld hl, vTiles0 tile $00
lb bc, BANK(BadgeGFX2), $2c
call Request2bpp
call TrainerCard_Page2_3_InitObjectsAndStrings
--- a/engine/unown_puzzle.asm
+++ b/engine/unown_puzzle.asm
@@ -19,11 +19,11 @@
xor a
call ByteFill
ld hl, UnownPuzzleCursorGFX
- ld de, VTiles1 tile $60
+ ld de, vTiles1 tile $60
ld bc, 4 tiles
call CopyBytes
ld hl, UnownPuzzleStartCancelLZ
- ld de, VTiles1 tile $6d
+ ld de, vTiles1 tile $6d
call Decompress
call LoadUnownPuzzlePiecesGFX
hlcoord 0, 0
@@ -648,8 +648,8 @@
puzzle_coords 18, 18, 4, 4, 16, 15, PUZZLE_BORDER, 0
ConvertLoadedPuzzlePieces: ; e1631
- ld hl, VTiles2
- ld de, VTiles0
+ ld hl, vTiles2
+ ld de, vTiles0
ld b, 6
.loop
push bc
@@ -821,14 +821,14 @@
; e1703
GFXHeaders: ; e1703
- dw .TileBordersGFX + 0 tiles, VTiles0 tile $00
- dw .TileBordersGFX + 1 tiles, VTiles0 tile $01
- dw .TileBordersGFX + 2 tiles, VTiles0 tile $02
- dw .TileBordersGFX + 3 tiles, VTiles0 tile $0c
- dw .TileBordersGFX + 4 tiles, VTiles0 tile $0e
- dw .TileBordersGFX + 5 tiles, VTiles0 tile $18
- dw .TileBordersGFX + 6 tiles, VTiles0 tile $19
- dw .TileBordersGFX + 7 tiles, VTiles0 tile $1a
+ dw .TileBordersGFX + 0 tiles, vTiles0 tile $00
+ dw .TileBordersGFX + 1 tiles, vTiles0 tile $01
+ dw .TileBordersGFX + 2 tiles, vTiles0 tile $02
+ dw .TileBordersGFX + 3 tiles, vTiles0 tile $0c
+ dw .TileBordersGFX + 4 tiles, vTiles0 tile $0e
+ dw .TileBordersGFX + 5 tiles, vTiles0 tile $18
+ dw .TileBordersGFX + 6 tiles, vTiles0 tile $19
+ dw .TileBordersGFX + 7 tiles, vTiles0 tile $1a
; e1723
.TileBordersGFX: ; e1723
@@ -845,7 +845,7 @@
ld a, [hli]
ld h, [hl]
ld l, a
- ld de, VTiles2
+ ld de, vTiles2
call Decompress
call ConvertLoadedPuzzlePieces
ret
--- a/engine/unused_title.asm
+++ b/engine/unused_title.asm
@@ -16,18 +16,18 @@
ld [hl], a ; wTitleScreenTimer + 1
ld hl, UnusedTitleBG_GFX
- ld de, VTiles2
- ld bc, VBGMap0 - VTiles2
+ ld de, vTiles2
+ ld bc, vBGMap0 - vTiles2
call CopyBytes
ld hl, UnusedTitleBG_GFX + $80 tiles
- ld de, VTiles1
- ld bc, VTiles2 - VTiles1
+ ld de, vTiles1
+ ld bc, vTiles2 - vTiles1
call CopyBytes
ld hl, UnusedTitleFG_GFX
- ld de, VTiles0
- ld bc, VTiles1 - VTiles0
+ ld de, vTiles0
+ ld bc, vTiles1 - vTiles0
call CopyBytes
ld hl, UnusedTitleBG_Tilemap
--- a/engine/warp_connection.asm
+++ b/engine/warp_connection.asm
@@ -233,9 +233,9 @@
ret
.ClearBGMap: ; 104770 (41:4770)
- ld a, HIGH(VBGMap0)
+ ld a, HIGH(vBGMap0)
ld [wBGMapAnchor + 1], a
- xor a ; LOW(VBGMap0)
+ xor a ; LOW(vBGMap0)
ld [wBGMapAnchor], a
ld [hSCY], a
ld [hSCX], a
@@ -247,7 +247,7 @@
ld [rVBK], a
xor a
- ld bc, VBGMap1 - VBGMap0
+ ld bc, vBGMap1 - vBGMap0
hlbgcoord 0, 0
call ByteFill
@@ -255,7 +255,7 @@
ld [rVBK], a
ld a, "<BLACK>"
- ld bc, VBGMap1 - VBGMap0
+ ld bc, vBGMap1 - vBGMap0
hlbgcoord 0, 0
call ByteFill
ret
--- a/gfx/font.asm
+++ b/gfx/font.asm
@@ -104,7 +104,7 @@
_LoadStandardFont:: ; fb449
ld de, Font
- ld hl, VTiles1
+ ld hl, vTiles1
lb bc, BANK(Font), $80
ld a, [rLCDC]
bit 7, a
@@ -111,19 +111,19 @@
jp z, Copy1bpp
ld de, Font
- ld hl, VTiles1
+ ld hl, vTiles1
lb bc, BANK(Font), $20
call Get1bpp_2
ld de, Font + $20 * LEN_1BPP_TILE
- ld hl, VTiles1 tile $20
+ ld hl, vTiles1 tile $20
lb bc, BANK(Font), $20
call Get1bpp_2
ld de, Font + $40 * LEN_1BPP_TILE
- ld hl, VTiles1 tile $40
+ ld hl, vTiles1 tile $40
lb bc, BANK(Font), $20
call Get1bpp_2
ld de, Font + $60 * LEN_1BPP_TILE
- ld hl, VTiles1 tile $60
+ ld hl, vTiles1 tile $60
lb bc, BANK(Font), $20
call Get1bpp_2
ret
@@ -131,15 +131,15 @@
_LoadFontsExtra1:: ; fb48a
ld de, MobilePhoneTilesGFX
- ld hl, VTiles2 tile "<BLACK>" ; $60
+ ld hl, vTiles2 tile "<BLACK>" ; $60
lb bc, BANK(MobilePhoneTilesGFX), 1
call Get1bpp_2
ld de, OverworldPhoneIconGFX
- ld hl, VTiles2 tile "<PHONE>" ; $62
+ ld hl, vTiles2 tile "<PHONE>" ; $62
lb bc, BANK(OverworldPhoneIconGFX), 1
call Get2bpp_2
ld de, FontExtra + 3 * LEN_2BPP_TILE
- ld hl, VTiles2 tile $63
+ ld hl, vTiles2 tile $63
lb bc, BANK(FontExtra), $16
call Get2bpp_2
jr LoadFrame
@@ -147,7 +147,7 @@
_LoadFontsExtra2:: ; fb4b0
ld de, FontsExtra2_UpArrowGFX
- ld hl, VTiles2 tile "▲" ; $61
+ ld hl, vTiles2 tile "▲" ; $61
ld b, BANK(FontsExtra2_UpArrowGFX)
ld c, 1
call Get2bpp_2
@@ -156,7 +156,7 @@
_LoadFontsBattleExtra:: ; fb4be
ld de, FontBattleExtra
- ld hl, VTiles2 tile $60
+ ld hl, vTiles2 tile $60
lb bc, BANK(FontBattleExtra), $19
call Get2bpp_2
jr LoadFrame
@@ -170,10 +170,10 @@
call AddNTimes
ld d, h
ld e, l
- ld hl, VTiles2 tile "┌" ; $79
+ ld hl, vTiles2 tile "┌" ; $79
lb bc, BANK(Frames), 6
call Get1bpp_2
- ld hl, VTiles2 tile " " ; $7f
+ ld hl, vTiles2 tile " " ; $7f
ld de, TextBoxSpaceGFX
lb bc, BANK(TextBoxSpaceGFX), 1
call Get1bpp_2
@@ -182,10 +182,10 @@
LoadBattleFontsHPBar: ; fb4f2
ld de, FontBattleExtra
- ld hl, VTiles2 tile $60
+ ld hl, vTiles2 tile $60
lb bc, BANK(FontBattleExtra), $c
call Get2bpp_2
- ld hl, VTiles2 tile $70
+ ld hl, vTiles2 tile $70
ld de, FontBattleExtra tile $10
lb bc, BANK(FontBattleExtra), 3
call Get2bpp_2
@@ -193,19 +193,19 @@
LoadHPBar: ; fb50d
ld de, EnemyHPBarBorderGFX
- ld hl, VTiles2 tile $6c
+ ld hl, vTiles2 tile $6c
lb bc, BANK(EnemyHPBarBorderGFX), 4
call Get1bpp_2
ld de, HPExpBarBorderGFX
- ld hl, VTiles2 tile $73
+ ld hl, vTiles2 tile $73
lb bc, BANK(HPExpBarBorderGFX), 6
call Get1bpp_2
ld de, ExpBarGFX
- ld hl, VTiles2 tile $55
+ ld hl, vTiles2 tile $55
lb bc, BANK(ExpBarGFX), 9
call Get2bpp_2
ld de, MobilePhoneTilesGFX + 9 * LEN_2BPP_TILE
- ld hl, VTiles2 tile $5e
+ ld hl, vTiles2 tile $5e
lb bc, BANK(MobilePhoneTilesGFX), 2
call Get2bpp_2
ret
@@ -214,24 +214,24 @@
StatsScreen_LoadFont: ; fb53e
call _LoadFontsBattleExtra
ld de, EnemyHPBarBorderGFX
- ld hl, VTiles2 tile $6c
+ ld hl, vTiles2 tile $6c
lb bc, BANK(EnemyHPBarBorderGFX), 4
call Get1bpp_2
ld de, HPExpBarBorderGFX
- ld hl, VTiles2 tile $78
+ ld hl, vTiles2 tile $78
lb bc, BANK(HPExpBarBorderGFX), 1
call Get1bpp_2
ld de, HPExpBarBorderGFX + 3 * LEN_1BPP_TILE
- ld hl, VTiles2 tile $76
+ ld hl, vTiles2 tile $76
lb bc, BANK(HPExpBarBorderGFX), 2
call Get1bpp_2
ld de, ExpBarGFX
- ld hl, VTiles2 tile $55
+ ld hl, vTiles2 tile $55
lb bc, BANK(ExpBarGFX), 8
call Get2bpp_2
LoadStatsScreenPageTilesGFX: ; fb571
ld de, StatsScreenPageTilesGFX
- ld hl, VTiles2 tile $31
+ ld hl, vTiles2 tile $31
lb bc, BANK(StatsScreenPageTilesGFX), $11
call Get2bpp_2
ret
--- a/gfx/load_pics.asm
+++ b/gfx/load_pics.asm
@@ -132,7 +132,7 @@
ret
GetAnimatedFrontpic: ; 51103
- ld a, BANK(VTiles3)
+ ld a, BANK(vTiles3)
ld [rVBK], a
push hl
ld de, wDecompressScratch
--- a/gfx/overworld_font.asm
+++ b/gfx/overworld_font.asm
@@ -1,10 +1,10 @@
LoadOverworldFont:: ; 106594
ld de, .font
- ld hl, VTiles1
+ ld hl, vTiles1
lb bc, BANK(.font), $80
call Get2bpp
ld de, .space
- ld hl, VTiles2 tile $7f
+ ld hl, vTiles2 tile $7f
lb bc, BANK(.space), 1
call Get2bpp
ret
--- a/home.asm
+++ b/home.asm
@@ -574,11 +574,11 @@
jr c, .wait
di
- ld a, BANK(VTiles3)
+ ld a, BANK(vTiles3)
ld [rVBK], a
hlcoord 0, 0, AttrMap
call .StackPointerMagic
- ld a, BANK(VTiles0)
+ ld a, BANK(vTiles0)
ld [rVBK], a
hlcoord 0, 0
call .StackPointerMagic
@@ -597,7 +597,7 @@
; 327b
.StackPointerMagic: ; 327b
-; Copy all tiles to VBGMap
+; Copy all tiles to vBGMap
ld [hSPBuffer], sp
ld sp, hl
ld a, [hBGMapAddress + 1]
@@ -1074,7 +1074,7 @@
jr c, .not_pokemon
push hl
- ld de, VTiles2
+ ld de, vTiles2
predef GetMonFrontpic
pop hl
xor a
--- a/home/init.asm
+++ b/home/init.asm
@@ -141,9 +141,9 @@
farcall InitCGBPals
- ld a, HIGH(VBGMap1)
+ ld a, HIGH(vBGMap1)
ld [hBGMapAddress + 1], a
- xor a ; LOW(VBGMap1)
+ xor a ; LOW(vBGMap1)
ld [hBGMapAddress], a
farcall StartClock
@@ -185,7 +185,7 @@
xor a
ld [rVBK], a
.clear
- ld hl, VTiles0
+ ld hl, vTiles0
ld bc, $2000
xor a
call ByteFill
--- a/home/map.asm
+++ b/home/map.asm
@@ -1241,10 +1241,10 @@
ld h, a
ld bc, $0200
add hl, bc
-; cap d at HIGH(VBGMap0)
+; cap d at HIGH(vBGMap0)
ld a, h
and %00000011
- or HIGH(VBGMap0)
+ or HIGH(vBGMap0)
ld e, l
ld d, a
call UpdateBGMapRow
@@ -1369,10 +1369,10 @@
ld e, a
jr nc, .skip
inc d
-; cap d at HIGH(VBGMap0)
+; cap d at HIGH(vBGMap0)
ld a, d
and $3
- or HIGH(VBGMap0)
+ or HIGH(vBGMap0)
ld d, a
.skip
@@ -1409,7 +1409,7 @@
call FarDecompress
ld hl, wDecompressScratch
- ld de, VTiles2
+ ld de, vTiles2
ld bc, $60 tiles
call CopyBytes
@@ -1419,7 +1419,7 @@
ld [rVBK], a
ld hl, wDecompressScratch + $60 tiles
- ld de, VTiles2
+ ld de, vTiles2
ld bc, $60 tiles
call CopyBytes
--- a/home/menu.asm
+++ b/home/menu.asm
@@ -43,7 +43,7 @@
db $40 ; tile backup
db 12, 0 ; start coords
db 17, 19 ; end coords
- dw VTiles0
+ dw vTiles0
db 0 ; default option
; 1d67
--- a/home/video.asm
+++ b/home/video.asm
@@ -143,9 +143,9 @@
ld h, a
push hl
- xor a ; LOW(VBGMap1)
+ xor a ; LOW(vBGMap1)
ld [hBGMapAddress], a
- ld a, HIGH(VBGMap1)
+ ld a, HIGH(vBGMap1)
ld [hBGMapAddress + 1], a
ld a, [hBGMapMode]
--- a/macros/coords.asm
+++ b/macros/coords.asm
@@ -46,6 +46,6 @@
IF _NARG >= 4
ld \1, \3 bgrows + \2 + \4
ELSE
- ld \1, \3 bgrows + \2 + VBGMap0
+ ld \1, \3 bgrows + \2 + vBGMap0
ENDC
ENDM
--- a/mobile/fixed_words.asm
+++ b/mobile/fixed_words.asm
@@ -322,11 +322,11 @@
call SetPalettes
call DisableLCD
ld hl, GFX_11d67e
- ld de, VTiles2
+ ld de, vTiles2
ld bc, $60
call CopyBytes
ld hl, LZ_11d6de
- ld de, VTiles0
+ ld de, vTiles0
call Decompress
call EnableLCD
farcall ReloadMapPart
--- a/mobile/mobile_12.asm
+++ b/mobile/mobile_12.asm
@@ -22,11 +22,11 @@
call Function486bf
call LoadFontsExtra
ld de, MobileUpArrowGFX
- ld hl, VTiles2 tile $10
+ ld hl, vTiles2 tile $10
lb bc, BANK(MobileUpArrowGFX), 1
call Request1bpp
ld de, MobileDownArrowGFX
- ld hl, VTiles2 tile $11
+ ld hl, vTiles2 tile $11
lb bc, BANK(MobileDownArrowGFX), 1
call Request1bpp
call Function4a3a7
--- a/mobile/mobile_22.asm
+++ b/mobile/mobile_22.asm
@@ -535,7 +535,7 @@
ret
Function893ef: ; 893ef
- ld de, VTiles0
+ ld de, vTiles0
ld hl, GFX_8940b
ld bc, $20
ld a, BANK(GFX_8940b)
@@ -556,12 +556,12 @@
; 8942b
Function8942b: ; 8942b (22:542b)
- ld de, VTiles0 tile $02
+ ld de, vTiles0 tile $02
ld hl, MobileAdapterGFX + $7d0
ld bc, $80
ld a, BANK(MobileAdapterGFX)
call FarCopyBytes
- ld de, VTiles0 tile $0a
+ ld de, vTiles0 tile $0a
ld hl, MobileAdapterGFX + $c60
ld bc, $40
ld a, BANK(MobileAdapterGFX)
@@ -583,7 +583,7 @@
Function89455: ; 89455 (22:5455)
ld hl, MobileAdapterGFX + $7d0
- ld de, VTiles2 tile $0c
+ ld de, vTiles2 tile $0c
ld bc, $490
ld a, BANK(MobileAdapterGFX)
call FarCopyBytes
@@ -591,12 +591,12 @@
Function89464: ; 89464
ld hl, MobileAdapterGFX
- ld de, VTiles2
+ ld de, vTiles2
ld bc, $200
ld a, BANK(MobileAdapterGFX)
call FarCopyBytes
ld hl, MobileAdapterGFX + $660
- ld de, VTiles2 tile $20
+ ld de, vTiles2 tile $20
ld bc, $170
ld a, BANK(MobileAdapterGFX)
call FarCopyBytes
@@ -1227,7 +1227,7 @@
ld [TrainerClass], a
xor a
ld [CurPartySpecies], a
- ld de, VTiles2 tile $37
+ ld de, vTiles2 tile $37
farcall GetTrainerPic
pop bc
ret
@@ -1275,7 +1275,7 @@
ld hl, MobileAdapterGFX + $200 + $230
.asm_89814
call DisableLCD
- ld de, VTiles2 tile $37
+ ld de, vTiles2 tile $37
ld bc, $230
ld a, BANK(MobileAdapterGFX)
call FarCopyBytes
--- a/mobile/mobile_22_2.asm
+++ b/mobile/mobile_22_2.asm
@@ -597,17 +597,17 @@
Function8b690: ; 8b690
ld hl, GFX_17afa5 + $514
- ld de, VTiles2
+ ld de, vTiles2
ld bc, $160
ld a, BANK(GFX_17afa5)
call FarCopyBytes
ld hl, GFX_17afa5 + $514 + $160 - $10
- ld de, VTiles2 tile $61
+ ld de, vTiles2 tile $61
ld bc, $10
ld a, BANK(GFX_17afa5)
call FarCopyBytes
ld hl, GFX_17afa5 + $514 + $160
- ld de, VTiles1 tile $6e
+ ld de, vTiles1 tile $6e
ld bc, $10
ld a, BANK(GFX_17afa5)
call FarCopyBytes
--- a/mobile/mobile_40.asm
+++ b/mobile/mobile_40.asm
@@ -6843,7 +6843,7 @@
Function102dd3: ; 102dd3
call DisableLCD
ld de, GFX_1032a2
- ld hl, VTiles0
+ ld hl, vTiles0
lb bc, BANK(GFX_1032a2), 4
call Get2bpp
farcall __LoadTradeScreenBorder
--- a/mobile/mobile_41.asm
+++ b/mobile/mobile_41.asm
@@ -1011,20 +1011,20 @@
Function106464:: ; 106464
ld de, MobilePhoneTilesGFX
- ld hl, VTiles2 tile $60
+ ld hl, vTiles2 tile $60
lb bc, BANK(MobilePhoneTilesGFX), 1
call Get2bpp
ld de, FontsExtra2_UpArrowGFX
- ld hl, VTiles2 tile $61
+ ld hl, vTiles2 tile $61
lb bc, BANK(FontsExtra2_UpArrowGFX), 1
call Get2bpp
ld de, GFX_106514
- ld hl, VTiles2 tile $62
+ ld hl, vTiles2 tile $62
ld c, 9
ld b, BANK(GFX_106514)
call Get2bpp
ld de, $40b0
- ld hl, VTiles2 tile $6b
+ ld hl, vTiles2 tile $6b
ld b, $f ; XXX no graphics at 0f:40b0
call Get2bpp
farcall LoadFrame
@@ -1039,11 +1039,11 @@
call AddNTimes
ld d, h
ld e, l
- ld hl, VTiles2 tile $79
+ ld hl, vTiles2 tile $79
ld c, 6
ld b, BANK(Frames)
call Function1064c3
- ld hl, VTiles2 tile $7f
+ ld hl, vTiles2 tile $7f
ld de, TextBoxSpaceGFX
ld c, 1
ld b, BANK(TextBoxSpaceGFX)
--- a/mobile/mobile_42.asm
+++ b/mobile/mobile_42.asm
@@ -149,7 +149,7 @@
call ClearSprites
call ClearTileMap
call DisableLCD
- call MobileTradeAnim_ClearVTiles
+ call MobileTradeAnim_ClearTiles
call MobileTradeAnim_ClearBGMap
call LoadStandardFont
call LoadFontsBattleExtra
@@ -157,13 +157,13 @@
ld a, $1
ld [rVBK], a
ld hl, LZ_108da7
- ld de, VTiles2
+ ld de, vTiles2
call Decompress
ld a, $0
ld [rVBK], a
ld hl, LZ_108d27
- ld de, VTiles0 tile $20
+ ld de, vTiles0 tile $20
call Decompress
call EnableLCD
@@ -180,12 +180,12 @@
call DelayFrame
ld de, TradeBallGFX
- ld hl, VTiles0
+ ld hl, vTiles0
lb bc, BANK(TradeBallGFX), $06
call Request2bpp
ld de, TradePoofGFX
- ld hl, VTiles0 tile $06
+ ld hl, vTiles0 tile $06
lb bc, BANK(TradePoofGFX), $0c
call Request2bpp
@@ -196,12 +196,12 @@
ld a, [wPlayerTrademonSpecies]
ld hl, wPlayerTrademonDVs
- ld de, VTiles0 tile $30
+ ld de, vTiles0 tile $30
call MobileTradeAnim_GetFrontpic
ld a, [wOTTrademonSpecies]
ld hl, wOTTrademonDVs
- ld de, VTiles2 tile $31
+ ld de, vTiles2 tile $31
call MobileTradeAnim_GetFrontpic
ld a, [wPlayerTrademonSpecies]
@@ -225,7 +225,7 @@
call ClearSprites
call ClearTileMap
call DisableLCD
- call MobileTradeAnim_ClearVTiles
+ call MobileTradeAnim_ClearTiles
call MobileTradeAnim_ClearBGMap
call LoadStandardFont
call LoadFontsBattleExtra
@@ -255,16 +255,16 @@
ret
; 1081ad
-MobileTradeAnim_ClearVTiles: ; 1081ad
+MobileTradeAnim_ClearTiles: ; 1081ad
ld a, $1
ld [rVBK], a
- ld hl, VTiles0
+ ld hl, vTiles0
ld bc, 3 * $80 tiles
xor a
call ByteFill
ld a, $0
ld [rVBK], a
- ld hl, VTiles0
+ ld hl, vTiles0
ld bc, 3 * $80 tiles
xor a
call ByteFill
@@ -549,7 +549,7 @@
ld a, [wOTTrademonSpecies]
ld [CurPartySpecies], a
ld hl, wOTTrademonDVs
- ld de, VTiles2
+ ld de, vTiles2
call Function108201
call EnableLCD
farcall DeinitializeAllSprites
@@ -616,11 +616,11 @@
call Function10898a
call DelayFrame
ld de, TradeBallGFX
- ld hl, VTiles0
+ ld hl, vTiles0
lb bc, BANK(TradeBallGFX), $06
call Request2bpp
ld de, TradePoofGFX
- ld hl, VTiles0 tile $06
+ ld hl, vTiles0 tile $06
lb bc, BANK(TradePoofGFX), $0c
call Request2bpp
ld a, [wPlayerTrademonDVs]
@@ -684,17 +684,17 @@
ld a, [wOTTrademonSpecies]
ld [CurPartySpecies], a
ld hl, wOTTrademonDVs
- ld de, VTiles2
+ ld de, vTiles2
call Function108201
call EnableLCD
farcall DeinitializeAllSprites
call DelayFrame
ld de, TradeBallGFX
- ld hl, VTiles0
+ ld hl, vTiles0
lb bc, BANK(TradeBallGFX), $06
call Request2bpp
ld de, TradePoofGFX
- ld hl, VTiles0 tile $06
+ ld hl, vTiles0 tile $06
lb bc, BANK(TradePoofGFX), $0c
call Request2bpp
xor a
@@ -753,17 +753,17 @@
ld a, [wOTTrademonSpecies]
ld [CurPartySpecies], a
ld hl, wOTTrademonDVs
- ld de, VTiles2
+ ld de, vTiles2
call Function108201
call EnableLCD
farcall DeinitializeAllSprites
call DelayFrame
ld de, TradeBallGFX
- ld hl, VTiles0
+ ld hl, vTiles0
lb bc, BANK(TradeBallGFX), $06
call Request2bpp
ld de, TradePoofGFX
- ld hl, VTiles0 tile $06
+ ld hl, vTiles0 tile $06
lb bc, BANK(TradePoofGFX), $0c
call Request2bpp
xor a
@@ -860,12 +860,12 @@
ld a, $1
ld [rVBK], a
ld hl, LZ_108da7
- ld de, VTiles2
+ ld de, vTiles2
call Decompress
ld a, $0
ld [rVBK], a
ld hl, LZ_108d27
- ld de, VTiles0 tile $20
+ ld de, vTiles0 tile $20
call Decompress
call Function108c80
call Function108c6d
@@ -904,12 +904,12 @@
ld a, $1
ld [rVBK], a
ld hl, LZ_108da7
- ld de, VTiles2
+ ld de, vTiles2
call Decompress
ld a, $0
ld [rVBK], a
ld hl, LZ_108d27
- ld de, VTiles0 tile $20
+ ld de, vTiles0 tile $20
call Decompress
call Function108c80
call Function108c6d
@@ -1194,7 +1194,7 @@
call ClearSprites
call ClearTileMap
call DisableLCD
- call MobileTradeAnim_ClearVTiles
+ call MobileTradeAnim_ClearTiles
call MobileTradeAnim_ClearBGMap
call EnableLCD
call GetMobileTradeAnimByte
@@ -1223,14 +1223,14 @@
; 10895e
Function10895e: ; 10895e
- ld de, VTiles0 tile $30
+ ld de, vTiles0 tile $30
jr asm_108966
Function108963:
- ld de, VTiles2 tile $31
+ ld de, vTiles2 tile $31
asm_108966
call DelayFrame
- ld hl, VTiles2
+ ld hl, vTiles2
lb bc, $a, $31 ; $a is the bank of ?????
call Request2bpp
call WaitTop
@@ -1245,7 +1245,7 @@
; 10898a
Function10898a: ; 10898a
- ld de, VTiles2
+ ld de, vTiles2
call MobileTradeAnim_GetFrontpic
call WaitTop
call MobileTradeAnim_ClearTilemap
@@ -1297,7 +1297,7 @@
MobileTradeAnim_DisplayEggData
call WaitTop
call MobileTradeAnim_ClearTilemap
- ld a, HIGH(VBGMap1)
+ ld a, HIGH(vBGMap1)
ld [hBGMapAddress + 1], a
hlcoord 5, 0
ld b, 6
@@ -1320,7 +1320,7 @@
Function108a33: ; 108a33
call WaitTop
call MobileTradeAnim_ClearTilemap
- ld a, HIGH(VBGMap1)
+ ld a, HIGH(vBGMap1)
ld [hBGMapAddress + 1], a
hlcoord 5, 0
ld b, 6
@@ -1340,7 +1340,7 @@
MobileTradeAnim_LoadMonTemplate: ; 108a5b
call WaitTop
call MobileTradeAnim_ClearTilemap
- ld a, HIGH(VBGMap1)
+ ld a, HIGH(vBGMap1)
ld [hBGMapAddress + 1], a
hlcoord 4, 0
ld b, 6
@@ -1363,7 +1363,7 @@
MobileTradeAnim_MonDisplay_UpdateBGMap: ; 108a87
call WaitBGMap
call WaitTop
- ld a, HIGH(VBGMap0)
+ ld a, HIGH(vBGMap0)
ld [hBGMapAddress + 1], a
ret
; 108a92
@@ -1432,7 +1432,7 @@
.asm_108adf
ld a, $1
ld [rVBK], a
- ld hl, VTiles2 tile $4a
+ ld hl, vTiles2 tile $4a
lb bc, BANK(GFX_1092c7), 16
call Get2bpp_2
call DelayFrame
@@ -1698,7 +1698,7 @@
debgcoord 0, 0
call Decompress
ld hl, LZ_108fe7
- debgcoord 0, 0, VBGMap1
+ debgcoord 0, 0, vBGMap1
call Decompress
ret
; 108c80
@@ -1710,7 +1710,7 @@
debgcoord 0, 0
call Decompress
ld hl, LZ_1090a7
- debgcoord 0, 0, VBGMap1
+ debgcoord 0, 0, vBGMap1
call Decompress
ld a, $0
ld [rVBK], a
--- a/mobile/mobile_45_sprite_engine.asm
+++ b/mobile/mobile_45_sprite_engine.asm
@@ -1,6 +1,6 @@
Function115d99: ; 115d99
ld de, GFX_11601a
- ld hl, VTiles0 tile $60
+ ld hl, vTiles0 tile $60
lb bc, BANK(GFX_11601a), $14
call Get2bpp
xor a
--- a/mobile/mobile_5b.asm
+++ b/mobile/mobile_5b.asm
@@ -170,7 +170,7 @@
MobileSystemSplashScreen_InitGFX: ; 16c108
call DisableLCD
- ld hl, VTiles2
+ ld hl, vTiles2
ld de, .Tiles
lb bc, BANK(.Tiles), $68
call Get2bpp
@@ -708,7 +708,7 @@
; 16cc18
Function16cc18: ; 16cc18
- ld hl, VTiles1
+ ld hl, vTiles1
ld de, GFX_16cca3
lb bc, BANK(GFX_16cca3), $2e
call Get2bpp
@@ -763,7 +763,7 @@
; 16cc6e
Function16cc6e: ; 16cc6e
- hlbgcoord 0, 0, VBGMap1
+ hlbgcoord 0, 0, vBGMap1
jr Function16cc73
Function16cc73:
--- a/mobile/mobile_5c.asm
+++ b/mobile/mobile_5c.asm
@@ -273,7 +273,7 @@
ld a, $1
ld [rVBK], a
ld de, wd000
- ld hl, VTiles0
+ ld hl, vTiles0
lb bc, $6, $c1
call Get2bpp
xor a
@@ -282,7 +282,7 @@
ld de, wd000
call Decompress
ld de, UnknBGPals
- ld hl, VTiles0
+ ld hl, vTiles0
lb bc, $6, $53
call Get2bpp
pop af
@@ -295,7 +295,7 @@
ld a, $1
ld [rVBK], a
ld de, GFX_171848
- ld hl, VTiles1 tile $41
+ ld hl, vTiles1 tile $41
lb bc, BANK(GFX_171848), $18
call Get2bpp
xor a
@@ -687,11 +687,11 @@
Function171c87: ; 171c87 (5c:5c87)
call DisableLCD
ld hl, GFX_171db1
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
ld bc, $6e0
call CopyBytes
ld hl, LZ_172abd
- ld de, VTiles0 tile $00
+ ld de, vTiles0 tile $00
call Decompress
call EnableLCD
ld hl, Tilemap_172491
@@ -759,11 +759,11 @@
Function171d2b: ; 171d2b (5c:5d2b)
call DisableLCD
ld hl, GFX_171db1
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
ld bc, $6e0
call CopyBytes
ld hl, LZ_172abd
- ld de, VTiles0 tile $00
+ ld de, vTiles0 tile $00
call Decompress
call EnableLCD
ld hl, Tilemap_172685
@@ -862,7 +862,7 @@
call ByteFill
call DisableLCD
ld hl, GameBoyN64GFX
- ld de, VTiles2 tile $00
+ ld de, vTiles2 tile $00
ld bc, $610
call CopyBytes
call EnableLCD
--- a/mobile/mobile_5e.asm
+++ b/mobile/mobile_5e.asm
@@ -738,7 +738,7 @@
ld a, $1
ld [rVBK], a
- ld hl, VTiles5 tile $00
+ ld hl, vTiles5 tile $00
ld de, GFX_17afa5
lb bc, BANK(GFX_17afa5), $80
call Get2bpp
@@ -746,12 +746,12 @@
pop af
ld [rVBK], a
- ld hl, VTiles0 tile $00
+ ld hl, vTiles0 tile $00
ld de, GFX_17afa5 + $4c0
lb bc, BANK(GFX_17afa5), 5
call Get2bpp
- ld hl, VTiles0 tile $05
+ ld hl, vTiles0 tile $05
ld de, GFX_11601a
lb bc, BANK(GFX_11601a), 4
call Get2bpp
--- a/mobile/mobile_5f.asm
+++ b/mobile/mobile_5f.asm
@@ -1,7 +1,7 @@
Function17c000: ; 17c000
call DisableLCD
- ld hl, VTiles2
+ ld hl, vTiles2
ld bc, $31 tiles
xor a
call ByteFill
@@ -56,7 +56,7 @@
ld [rSVBK], a
ld hl, MobileSelectGFX
- ld de, VTiles0 tile $30
+ ld de, vTiles0 tile $30
ld bc, $20 tiles
call CopyBytes
@@ -64,12 +64,12 @@
ld [rVBK], a
ld hl, HaveWantGFX
- ld de, VTiles2
+ ld de, vTiles2
ld bc, $80 tiles
call CopyBytes
ld hl, HaveWantGFX + $800
- ld de, VTiles1
+ ld de, vTiles1
ld bc, $10 tiles
call CopyBytes
@@ -629,7 +629,7 @@
call ClearScreen
farcall ReloadMapPart
call DisableLCD
- ld hl, VTiles1 tile $6e
+ ld hl, vTiles1 tile $6e
ld de, $c608
ld bc, 1 tiles
call CopyBytes
@@ -636,21 +636,21 @@
ld a, $1
ld [rVBK], a
ld hl, PokemonNewsGFX
- ld de, VTiles1
+ ld de, vTiles1
ld bc, $48 tiles
call CopyBytes
xor a
- ld hl, VTiles2 tile $7f
+ ld hl, vTiles2 tile $7f
ld bc, 1 tiles
call ByteFill
ld hl, $c608
- ld de, VTiles1 tile $6e
+ ld de, vTiles1 tile $6e
ld bc, 1 tiles
call CopyBytes
xor a
ld [rVBK], a
ld hl, GFX_17eb7e
- ld de, VTiles2 tile $60
+ ld de, vTiles2 tile $60
ld bc, 1 tiles
call CopyBytes
call EnableLCD
@@ -677,7 +677,7 @@
Function17d405:
call DisableLCD
- ld hl, VTiles1 tile $6e
+ ld hl, vTiles1 tile $6e
ld de, $c608
ld bc, 1 tiles
call CopyBytes
@@ -684,15 +684,15 @@
ld a, $1
ld [rVBK], a
ld hl, PokemonNewsGFX
- ld de, VTiles1
+ ld de, vTiles1
ld bc, $48 tiles
call CopyBytes
xor a
- ld hl, VTiles2 tile $7f
+ ld hl, vTiles2 tile $7f
ld bc, 1 tiles
call ByteFill
ld hl, $c608
- ld de, VTiles1 tile $6e
+ ld de, vTiles1 tile $6e
ld bc, 1 tiles
call CopyBytes
xor a
@@ -1531,7 +1531,7 @@
ld a, [$c709]
ld d, a
push de
- ld de, VTiles2
+ ld de, vTiles2
farcall GetTrainerPic
pop hl
decoord 0, 0
@@ -2952,7 +2952,7 @@
ld [wcf66], a
farcall Function118233
ld de, GFX_17eb7e
- ld hl, VTiles2 tile $60
+ ld hl, vTiles2 tile $60
lb bc, BANK(GFX_17eb7e), 1
call Get2bpp
ld a, [wc300]
--- a/mobile/mobile_menu.asm
+++ b/mobile/mobile_menu.asm
@@ -628,7 +628,7 @@
Function4a485: ; 4a485 (12:6485)
ld de, GFX_49c0c
- ld hl, VTiles2 tile $00
+ ld hl, vTiles2 tile $00
lb bc, BANK(GFX_49c0c), 13
call Get2bpp
ret
--- a/tilesets/animations.asm
+++ b/tilesets/animations.asm
@@ -37,7 +37,7 @@
Tileset0Anim: ; 0xfc01b
TilesetJohto2Anim: ; 0xfc01b
TilesetKantoAnim: ; 0xfc01b
- dw VTiles2 tile $14, AnimateWaterTile
+ dw vTiles2 tile $14, AnimateWaterTile
dw NULL, WaitTileAnimation
dw NULL, WaitTileAnimation
dw NULL, WaitTileAnimation
@@ -51,9 +51,9 @@
; 0xfc047
TilesetParkAnim: ; 0xfc047
- dw VTiles2 tile $14, AnimateWaterTile
+ dw vTiles2 tile $14, AnimateWaterTile
dw NULL, WaitTileAnimation
- dw VTiles2 tile $5f, AnimateFountain
+ dw vTiles2 tile $5f, AnimateFountain
dw NULL, WaitTileAnimation
dw NULL, TileAnimationPalette
dw NULL, WaitTileAnimation
@@ -73,7 +73,7 @@
dw NULL, ForestTreeLeftAnimation2
dw NULL, ForestTreeRightAnimation2
dw NULL, AnimateFlowerTile
- dw VTiles2 tile $14, AnimateWaterTile
+ dw vTiles2 tile $14, AnimateWaterTile
dw NULL, TileAnimationPalette
dw NULL, StandingTileFrame8
dw NULL, DoneTileAnimation
@@ -80,7 +80,7 @@
; 0xfc0a3
TilesetJohto1Anim: ; 0xfc0a3
- dw VTiles2 tile $14, AnimateWaterTile
+ dw vTiles2 tile $14, AnimateWaterTile
dw NULL, WaitTileAnimation
dw NULL, WaitTileAnimation
dw NULL, TileAnimationPalette
@@ -96,9 +96,9 @@
; 0xfc0d7
TilesetAnimfc0d7: ; 0xfc0d7
- dw VTiles2 tile $03, WriteTileToBuffer
+ dw vTiles2 tile $03, WriteTileToBuffer
dw wTileAnimBuffer, ScrollTileRightLeft
- dw VTiles2 tile $03, WriteTileFromBuffer
+ dw vTiles2 tile $03, WriteTileFromBuffer
dw NULL, WaitTileAnimation
dw NULL, WaitTileAnimation
dw NULL, WaitTileAnimation
@@ -110,9 +110,9 @@
; 0xfc103
TilesetAnimfc103: ; 0xfc103
- dw VTiles2 tile $14, WriteTileToBuffer
+ dw vTiles2 tile $14, WriteTileToBuffer
dw wTileAnimBuffer, ScrollTileRightLeft
- dw VTiles2 tile $14, WriteTileFromBuffer
+ dw vTiles2 tile $14, WriteTileFromBuffer
dw NULL, WaitTileAnimation
dw NULL, WaitTileAnimation
dw NULL, WaitTileAnimation
@@ -124,7 +124,7 @@
; 0xfc12f
TilesetPortAnim: ; 0xfc12f
- dw VTiles2 tile $14, AnimateWaterTile
+ dw vTiles2 tile $14, AnimateWaterTile
dw NULL, WaitTileAnimation
dw NULL, WaitTileAnimation
dw NULL, WaitTileAnimation
@@ -150,48 +150,48 @@
; 0xfc17f
TilesetAnimfc17f: ; 0xfc17f
- dw VTiles2 tile $53, WriteTileToBuffer
+ dw vTiles2 tile $53, WriteTileToBuffer
dw wTileAnimBuffer, ScrollTileDown
dw wTileAnimBuffer, ScrollTileDown
- dw VTiles2 tile $53, WriteTileFromBuffer
- dw VTiles2 tile $03, WriteTileToBuffer
+ dw vTiles2 tile $53, WriteTileFromBuffer
+ dw vTiles2 tile $03, WriteTileToBuffer
dw wTileAnimBuffer, ScrollTileRightLeft
- dw VTiles2 tile $03, WriteTileFromBuffer
- dw VTiles2 tile $53, WriteTileToBuffer
+ dw vTiles2 tile $03, WriteTileFromBuffer
+ dw vTiles2 tile $53, WriteTileToBuffer
dw wTileAnimBuffer, ScrollTileDown
dw wTileAnimBuffer, ScrollTileDown
- dw VTiles2 tile $53, WriteTileFromBuffer
+ dw vTiles2 tile $53, WriteTileFromBuffer
dw NULL, DoneTileAnimation
; 0xfc1af
TilesetAnimfc1af: ; 0xfc1af
- dw VTiles2 tile $54, WriteTileToBuffer
+ dw vTiles2 tile $54, WriteTileToBuffer
dw wTileAnimBuffer, ScrollTileDown
dw wTileAnimBuffer, ScrollTileDown
- dw VTiles2 tile $54, WriteTileFromBuffer
+ dw vTiles2 tile $54, WriteTileFromBuffer
dw NULL, WaitTileAnimation
- dw VTiles2 tile $03, WriteTileToBuffer
+ dw vTiles2 tile $03, WriteTileToBuffer
dw wTileAnimBuffer, ScrollTileRightLeft
- dw VTiles2 tile $03, WriteTileFromBuffer
+ dw vTiles2 tile $03, WriteTileFromBuffer
dw NULL, WaitTileAnimation
- dw VTiles2 tile $54, WriteTileToBuffer
+ dw vTiles2 tile $54, WriteTileToBuffer
dw wTileAnimBuffer, ScrollTileDown
dw wTileAnimBuffer, ScrollTileDown
- dw VTiles2 tile $54, WriteTileFromBuffer
+ dw vTiles2 tile $54, WriteTileFromBuffer
dw NULL, DoneTileAnimation
; 0xfc1e7
TilesetCaveAnim: ; 0xfc1e7
TilesetWhirlIslandsAnim: ; 0xfc1e7
- dw VTiles2 tile $14, WriteTileToBuffer
+ dw vTiles2 tile $14, WriteTileToBuffer
dw NULL, FlickeringCaveEntrancePalette
dw wTileAnimBuffer, ScrollTileRightLeft
dw NULL, FlickeringCaveEntrancePalette
- dw VTiles2 tile $14, WriteTileFromBuffer
+ dw vTiles2 tile $14, WriteTileFromBuffer
dw NULL, FlickeringCaveEntrancePalette
dw NULL, TileAnimationPalette
dw NULL, FlickeringCaveEntrancePalette
- dw VTiles2 tile $40, WriteTileToBuffer
+ dw vTiles2 tile $40, WriteTileToBuffer
dw NULL, FlickeringCaveEntrancePalette
dw wTileAnimBuffer, ScrollTileDown
dw NULL, FlickeringCaveEntrancePalette
@@ -199,21 +199,21 @@
dw NULL, FlickeringCaveEntrancePalette
dw wTileAnimBuffer, ScrollTileDown
dw NULL, FlickeringCaveEntrancePalette
- dw VTiles2 tile $40, WriteTileFromBuffer
+ dw vTiles2 tile $40, WriteTileFromBuffer
dw NULL, FlickeringCaveEntrancePalette
dw NULL, DoneTileAnimation
; 0xfc233
TilesetIcePathAnim: ; 0xfc233
- dw VTiles2 tile $35, WriteTileToBuffer
+ dw vTiles2 tile $35, WriteTileToBuffer
dw NULL, FlickeringCaveEntrancePalette
dw wTileAnimBuffer, ScrollTileRightLeft
dw NULL, FlickeringCaveEntrancePalette
- dw VTiles2 tile $35, WriteTileFromBuffer
+ dw vTiles2 tile $35, WriteTileFromBuffer
dw NULL, FlickeringCaveEntrancePalette
dw NULL, TileAnimationPalette
dw NULL, FlickeringCaveEntrancePalette
- dw VTiles2 tile $31, WriteTileToBuffer
+ dw vTiles2 tile $31, WriteTileToBuffer
dw NULL, FlickeringCaveEntrancePalette
dw wTileAnimBuffer, ScrollTileDown
dw NULL, FlickeringCaveEntrancePalette
@@ -221,7 +221,7 @@
dw NULL, FlickeringCaveEntrancePalette
dw wTileAnimBuffer, ScrollTileDown
dw NULL, FlickeringCaveEntrancePalette
- dw VTiles2 tile $31, WriteTileFromBuffer
+ dw vTiles2 tile $31, WriteTileFromBuffer
dw NULL, FlickeringCaveEntrancePalette
dw NULL, DoneTileAnimation
; 0xfc27f
@@ -246,9 +246,9 @@
; 0xfc2bf
TilesetAnimfc2bf: ; 0xfc2bf
- dw VTiles2 tile $4f, WriteTileToBuffer
+ dw vTiles2 tile $4f, WriteTileToBuffer
dw wTileAnimBuffer, ScrollTileRightLeft
- dw VTiles2 tile $4f, WriteTileFromBuffer
+ dw vTiles2 tile $4f, WriteTileFromBuffer
dw NULL, WaitTileAnimation
dw NULL, WaitTileAnimation
dw NULL, WaitTileAnimation
@@ -521,7 +521,7 @@
.asm_fc47d
ld sp, hl
- ld hl, VTiles2 tile $0c
+ ld hl, vTiles2 tile $0c
jp WriteTile
; fc484
@@ -567,7 +567,7 @@
.asm_fc4eb
ld sp, hl
- ld hl, VTiles2 tile $0f
+ ld hl, vTiles2 tile $0f
jp WriteTile
; fc4f2
@@ -599,7 +599,7 @@
.asm_fc515
ld sp, hl
- ld hl, VTiles2 tile $0c
+ ld hl, vTiles2 tile $0c
jp WriteTile
; fc51c
@@ -635,7 +635,7 @@
.asm_fc545
ld sp, hl
- ld hl, VTiles2 tile $0f
+ ld hl, vTiles2 tile $0f
jp WriteTile
; fc54c
@@ -691,7 +691,7 @@
add hl, de
ld sp, hl
- ld hl, VTiles2 + $30 ; tile 4
+ ld hl, vTiles2 + $30 ; tile 4
jp WriteTile
; fc58c
@@ -721,7 +721,7 @@
ld hl, SafariFountainFrames
add hl, de
ld sp, hl
- ld hl, VTiles2 tile $5b
+ ld hl, vTiles2 tile $5b
jp WriteTile
; fc5eb
@@ -741,7 +741,7 @@
ld hl, SafariFountainFrames
add hl, de
ld sp, hl
- ld hl, VTiles2 tile $38
+ ld hl, vTiles2 tile $38
jp WriteTile
; fc605
@@ -1025,16 +1025,16 @@
; fc750
-SproutPillarTilePointer1: dw VTiles2 tile $2d, SproutPillarTile1
-SproutPillarTilePointer2: dw VTiles2 tile $2f, SproutPillarTile2
-SproutPillarTilePointer3: dw VTiles2 tile $3d, SproutPillarTile3
-SproutPillarTilePointer4: dw VTiles2 tile $3f, SproutPillarTile4
-SproutPillarTilePointer5: dw VTiles2 tile $3c, SproutPillarTile5
-SproutPillarTilePointer6: dw VTiles2 tile $2c, SproutPillarTile6
-SproutPillarTilePointer7: dw VTiles2 tile $4d, SproutPillarTile7
-SproutPillarTilePointer8: dw VTiles2 tile $4f, SproutPillarTile8
-SproutPillarTilePointer9: dw VTiles2 tile $5d, SproutPillarTile9
-SproutPillarTilePointer10: dw VTiles2 tile $5f, SproutPillarTile10
+SproutPillarTilePointer1: dw vTiles2 tile $2d, SproutPillarTile1
+SproutPillarTilePointer2: dw vTiles2 tile $2f, SproutPillarTile2
+SproutPillarTilePointer3: dw vTiles2 tile $3d, SproutPillarTile3
+SproutPillarTilePointer4: dw vTiles2 tile $3f, SproutPillarTile4
+SproutPillarTilePointer5: dw vTiles2 tile $3c, SproutPillarTile5
+SproutPillarTilePointer6: dw vTiles2 tile $2c, SproutPillarTile6
+SproutPillarTilePointer7: dw vTiles2 tile $4d, SproutPillarTile7
+SproutPillarTilePointer8: dw vTiles2 tile $4f, SproutPillarTile8
+SproutPillarTilePointer9: dw vTiles2 tile $5d, SproutPillarTile9
+SproutPillarTilePointer10: dw vTiles2 tile $5f, SproutPillarTile10
SproutPillarTile1: INCBIN "gfx/tilesets/sprout-pillar/1.2bpp"
SproutPillarTile2: INCBIN "gfx/tilesets/sprout-pillar/2.2bpp"
@@ -1049,10 +1049,10 @@
; fca98
-WhirlpoolFrames1: dw VTiles2 tile $32, WhirlpoolTiles1
-WhirlpoolFrames2: dw VTiles2 tile $33, WhirlpoolTiles2
-WhirlpoolFrames3: dw VTiles2 tile $42, WhirlpoolTiles3
-WhirlpoolFrames4: dw VTiles2 tile $43, WhirlpoolTiles4
+WhirlpoolFrames1: dw vTiles2 tile $32, WhirlpoolTiles1
+WhirlpoolFrames2: dw vTiles2 tile $33, WhirlpoolTiles2
+WhirlpoolFrames3: dw vTiles2 tile $42, WhirlpoolTiles3
+WhirlpoolFrames4: dw vTiles2 tile $43, WhirlpoolTiles4
; fcaa8
WhirlpoolTiles1: INCBIN "gfx/tilesets/whirlpool/1.2bpp"
--- a/tilesets/roofs.asm
+++ b/tilesets/roofs.asm
@@ -10,7 +10,7 @@
ld hl, Roofs
ld bc, $90
call AddNTimes
- ld de, VTiles2 tile $0a
+ ld de, vTiles2 tile $0a
ld bc, $90
call CopyBytes
ret
--- a/vram.asm
+++ b/vram.asm
@@ -1,16 +1,16 @@
SECTION "VRAM0", VRAM
-VTiles0:: ds $800
-VTiles1:: ds $800
-VTiles2:: ds $800
-VBGMap0:: ds $400
-VBGMap1:: ds $400
+vTiles0:: ds $800
+vTiles1:: ds $800
+vTiles2:: ds $800
+vBGMap0:: ds $400
+vBGMap1:: ds $400
SECTION "VRAM1", VRAM
-VTiles3:: ds $800
-VTiles4:: ds $800
-VTiles5:: ds $800
-VBGMap2:: ds $400
-VBGMap3:: ds $400
+vTiles3:: ds $800
+vTiles4:: ds $800
+vTiles5:: ds $800
+vBGMap2:: ds $400
+vBGMap3:: ds $400
--- a/wram.asm
+++ b/wram.asm
@@ -212,7 +212,7 @@
UNION ; c300
; wSpriteAnimDict is a 10x2 dictionary
; keys: taken from third column of SpriteAnimSeqData
-; values: VTiles
+; values: vTiles
wSpriteAnimDict:: ds 10 * 2
wSpriteAnimationStructs::