summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/battle/battle_transition.asm2
-rw-r--r--engine/battle_anims/anim_commands.asm4
-rw-r--r--engine/battle_anims/bg_effects.asm4
-rw-r--r--engine/debug/color_picker.asm4
-rw-r--r--engine/events/heal_machine_anim.asm4
-rw-r--r--engine/events/poisonstep_pals.asm2
-rw-r--r--engine/gfx/cgb_layouts.asm32
-rw-r--r--engine/gfx/color.asm4
-rw-r--r--engine/gfx/crystal_layouts.asm2
-rw-r--r--engine/movie/intro.asm14
-rw-r--r--engine/movie/title.asm2
-rw-r--r--engine/movie/unused_title.asm2
-rw-r--r--engine/overworld/init_map.asm2
-rw-r--r--home/palettes.asm10
-rw-r--r--home/tilemap.asm2
-rw-r--r--mobile/mobile_40.asm4
-rw-r--r--mobile/mobile_42.asm4
-rw-r--r--mobile/mobile_5b.asm2
18 files changed, 50 insertions, 50 deletions
diff --git a/engine/battle/battle_transition.asm b/engine/battle/battle_transition.asm
index a36927820..89760611b 100644
--- a/engine/battle/battle_transition.asm
+++ b/engine/battle/battle_transition.asm
@@ -673,7 +673,7 @@ StartTrainerBattle_LoadPokeBallGraphics:
call CopyBytes
pop af
ldh [rSVBK], a
- ld a, 1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
call DelayFrame
call BattleStart_CopyTilemapAtOnce
diff --git a/engine/battle_anims/anim_commands.asm b/engine/battle_anims/anim_commands.asm
index 76a85a76a..4897ae6c4 100644
--- a/engine/battle_anims/anim_commands.asm
+++ b/engine/battle_anims/anim_commands.asm
@@ -1417,7 +1417,7 @@ BattleAnim_SetBGPals:
call CopyPals
pop af
ldh [rSVBK], a
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -1438,7 +1438,7 @@ BattleAnim_SetOBPals:
call CopyPals
pop af
ldh [rSVBK], a
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
diff --git a/engine/battle_anims/bg_effects.asm b/engine/battle_anims/bg_effects.asm
index 63c610850..bdb88d76c 100644
--- a/engine/battle_anims/bg_effects.asm
+++ b/engine/battle_anims/bg_effects.asm
@@ -2546,7 +2546,7 @@ BGEffects_LoadBGPal0_OBPal1:
pop bc
pop af
ldh [rSVBK], a
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -2573,7 +2573,7 @@ BGEffects_LoadBGPal1_OBPal0:
pop bc
pop af
ldh [rSVBK], a
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
diff --git a/engine/debug/color_picker.asm b/engine/debug/color_picker.asm
index 6062e71aa..310244c75 100644
--- a/engine/debug/color_picker.asm
+++ b/engine/debug/color_picker.asm
@@ -448,7 +448,7 @@ Function81c33:
hlcoord 15, 2
ld de, wc608 + 2
call Function81ca7
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ld a, $3
ld [wJumptableIndex], a
@@ -1227,7 +1227,7 @@ Function822a3:
call Function81ca7
pop af
ldh [rSVBK], a
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
call DelayFrame
ret
diff --git a/engine/events/heal_machine_anim.asm b/engine/events/heal_machine_anim.asm
index 2259752b3..38ccbf12c 100644
--- a/engine/events/heal_machine_anim.asm
+++ b/engine/events/heal_machine_anim.asm
@@ -167,7 +167,7 @@ INCBIN "gfx/overworld/heal_machine.2bpp"
ld bc, 1 palettes
ld a, BANK(wOBPals2)
call FarCopyWRAM
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -231,7 +231,7 @@ INCLUDE "gfx/overworld/heal_machine.pal"
pop af
ldh [rSVBK], a
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
diff --git a/engine/events/poisonstep_pals.asm b/engine/events/poisonstep_pals.asm
index b2de25fa6..07bd246a1 100644
--- a/engine/events/poisonstep_pals.asm
+++ b/engine/events/poisonstep_pals.asm
@@ -39,7 +39,7 @@ LoadPoisonBGPals:
jr nz, .loop
pop af
ldh [rSVBK], a
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ld c, 4
call DelayFrames
diff --git a/engine/gfx/cgb_layouts.asm b/engine/gfx/cgb_layouts.asm
index a31c86ea0..c58b27cd9 100644
--- a/engine/gfx/cgb_layouts.asm
+++ b/engine/gfx/cgb_layouts.asm
@@ -189,7 +189,7 @@ _CGB_PokegearPals:
ld a, BANK(wBGPals1)
call FarCopyWRAM
call ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -243,7 +243,7 @@ _CGB_StatsScreenHPPals:
call ApplyAttrmap
call ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -282,7 +282,7 @@ _CGB_Pokedex:
call FarCopyWRAM
call ApplyAttrmap
call ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -317,7 +317,7 @@ _CGB_BillsPC:
call InitPartyMenuOBPals
call ApplyAttrmap
call ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -339,7 +339,7 @@ Function9009:
call InitPartyMenuOBPals
call ApplyAttrmap
call ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -362,7 +362,7 @@ _CGB_PokedexUnownMode:
call InitPartyMenuOBPals
call ApplyAttrmap
call ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -415,7 +415,7 @@ _CGB_SlotMachine:
call ByteFill
call ApplyAttrmap
call ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -433,7 +433,7 @@ _CGB_BetaTitleScreen:
call FillBoxCGB
call ApplyAttrmap
call ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -573,7 +573,7 @@ _CGB_Evolution:
call WipeAttrmap
call ApplyAttrmap
call ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -591,7 +591,7 @@ _CGB_GSTitleScreen:
ld a, SCGB_DIPLOMA
ld [wDefaultSGBLayout], a
call ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -725,7 +725,7 @@ _CGB_TrainerCard:
ld [hl], a
call ApplyAttrmap
call ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -749,7 +749,7 @@ _CGB_MoveList:
call FillBoxCGB
call ApplyAttrmap
call ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -759,7 +759,7 @@ _CGB_BetaPikachuMinigame:
call WipeAttrmap
call ApplyAttrmap
call ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -771,7 +771,7 @@ _CGB_PokedexSearchOption:
call WipeAttrmap
call ApplyAttrmap
call ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -819,7 +819,7 @@ _CGB_PackPals:
call FillBoxCGB
call ApplyAttrmap
call ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -877,7 +877,7 @@ _CGB_MagnetTrain:
call FillBoxCGB
call ApplyAttrmap
call ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
diff --git a/engine/gfx/color.asm b/engine/gfx/color.asm
index cece60834..530122bb3 100644
--- a/engine/gfx/color.asm
+++ b/engine/gfx/color.asm
@@ -150,7 +150,7 @@ Function8b07: ; unreferenced
call FarCopyWRAM
call ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -352,7 +352,7 @@ ApplyHPBarPals:
ld bc, 4
ld a, BANK(wBGPals2)
call FarCopyWRAM
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
diff --git a/engine/gfx/crystal_layouts.asm b/engine/gfx/crystal_layouts.asm
index dadf40e95..9c47797d1 100644
--- a/engine/gfx/crystal_layouts.asm
+++ b/engine/gfx/crystal_layouts.asm
@@ -157,7 +157,7 @@ MG_Mobile_Layout01:
.asm_49467
farcall ApplyAttrmap
farcall ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
diff --git a/engine/movie/intro.asm b/engine/movie/intro.asm
index b923f4862..c05d1202c 100644
--- a/engine/movie/intro.asm
+++ b/engine/movie/intro.asm
@@ -308,7 +308,7 @@ GameFreakLogoScene4:
ld [wOBPals2 + 13], a
pop af
ldh [rSVBK], a
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -1508,7 +1508,7 @@ Intro_Scene24_ApplyPaletteFade:
jr nz, .loop1
pop af
ldh [rSVBK], a
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -1632,7 +1632,7 @@ CrystalIntro_UnownFade:
pop af
ldh [rSVBK], a
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -1710,7 +1710,7 @@ Intro_Scene20_AppearUnown:
pop af
ldh [rSVBK], a
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -1773,7 +1773,7 @@ endr
pop af
ldh [rSVBK], a
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -1886,7 +1886,7 @@ Intro_RustleGrass:
dw IntroGrass2GFX
Intro_SetCGBPalUpdate:
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -1903,7 +1903,7 @@ Intro_ClearBGPals:
pop af
ldh [rSVBK], a
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
call DelayFrame
call DelayFrame
diff --git a/engine/movie/title.asm b/engine/movie/title.asm
index 982bd0873..ad06343c9 100644
--- a/engine/movie/title.asm
+++ b/engine/movie/title.asm
@@ -198,7 +198,7 @@ _TitleScreen:
ld a, -112
ldh [hWY], a
- ld a, 1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
; Update BG Map 0 (bank 0)
diff --git a/engine/movie/unused_title.asm b/engine/movie/unused_title.asm
index c086cf566..615d92d36 100644
--- a/engine/movie/unused_title.asm
+++ b/engine/movie/unused_title.asm
@@ -88,7 +88,7 @@ UnusedTitleScreen:
pop af
ldh [rSVBK], a
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ld de, MUSIC_TITLE
diff --git a/engine/overworld/init_map.asm b/engine/overworld/init_map.asm
index d2d6145c7..68cb3b265 100644
--- a/engine/overworld/init_map.asm
+++ b/engine/overworld/init_map.asm
@@ -33,7 +33,7 @@ ReanchorBGMap_NoOAMUpdate::
call _OpenAndCloseMenu_HDMATransferTilemapAndAttrmap
farcall LoadOW_BGPal7
farcall ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
xor a
ldh [hBGMapMode], a
diff --git a/home/palettes.asm b/home/palettes.asm
index 5940a0efe..de742b732 100644
--- a/home/palettes.asm
+++ b/home/palettes.asm
@@ -99,7 +99,7 @@ DmgToCgbBGPals::
ld c, 8
call CopyPals
; request pal update
- ld a, 1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
pop af
@@ -147,7 +147,7 @@ DmgToCgbObjPals::
ld c, 8
call CopyPals
; request pal update
- ld a, 1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
pop af
@@ -182,7 +182,7 @@ DmgToCgbObjPal0::
ld b, a
ld c, 1
call CopyPals
- ld a, 1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
pop af
@@ -219,7 +219,7 @@ DmgToCgbObjPal1::
ld b, a
ld c, 1
call CopyPals
- ld a, 1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
pop af
@@ -319,7 +319,7 @@ ReloadSpritesNoPalettes::
call ByteFill
pop af
ldh [rSVBK], a
- ld a, 1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
call DelayFrame
ret
diff --git a/home/tilemap.asm b/home/tilemap.asm
index 4c9e63c87..6338cd892 100644
--- a/home/tilemap.asm
+++ b/home/tilemap.asm
@@ -197,7 +197,7 @@ ClearPalettes::
ldh [rSVBK], a
; Request palette update
- ld a, 1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
diff --git a/mobile/mobile_40.asm b/mobile/mobile_40.asm
index 94deea219..4f603ab4c 100644
--- a/mobile/mobile_40.asm
+++ b/mobile/mobile_40.asm
@@ -409,7 +409,7 @@ Function1002dc:
Function1002ed:
farcall LoadOW_BGPal7
farcall ApplyPals
- ld a, $01
+ ld a, TRUE
ldh [hCGBPalUpdate], a
call DelayFrame
ret
@@ -2210,7 +2210,7 @@ Function100eca:
Function100ed4:
farcall ApplyPals
- ld a, $01
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
diff --git a/mobile/mobile_42.asm b/mobile/mobile_42.asm
index e71f785dc..b6c5a3e3d 100644
--- a/mobile/mobile_42.asm
+++ b/mobile/mobile_42.asm
@@ -1450,7 +1450,7 @@ Function108b5a:
jr nz, .loop
pop af
ldh [rSVBK], a
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
@@ -1474,7 +1474,7 @@ Function108b78:
ld [hld], a
pop af
ldh [rSVBK], a
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret
diff --git a/mobile/mobile_5b.asm b/mobile/mobile_5b.asm
index 2598fc39e..2002facb5 100644
--- a/mobile/mobile_5b.asm
+++ b/mobile/mobile_5b.asm
@@ -650,7 +650,7 @@ Function16cbd1:
ld a, $5
call FarCopyWRAM
farcall ApplyPals
- ld a, $1
+ ld a, TRUE
ldh [hCGBPalUpdate], a
ret