shithub: pokecrystal

Download patch

ref: cc460a17b0b99208592ca31de99f526fce2bf5ad
parent: be93ab33a752fe0360c3b23dd4f33e1b0a05bf0e
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Wed Jun 17 13:03:38 EDT 2020

Harmonize engine/{movie, pokemon} with pokegold (renames GetSRAMBank to OpenSRAM)

To do: engine/{menus, overworld}

--- a/docs/bugs_and_glitches.md
+++ b/docs/bugs_and_glitches.md
@@ -521,7 +521,7 @@
 ```diff
  ValidateSave:
  	ld a, BANK(sCheckValue1) ; aka BANK(sCheckValue2)
- 	call GetSRAMBank
+ 	call OpenSRAM
  	ld a, SAVE_CHECK_VALUE_1
  	ld [sCheckValue1], a
  	ld a, SAVE_CHECK_VALUE_2
@@ -530,7 +530,7 @@
 
 +InvalidateSave:
 +	ld a, BANK(sCheckValue1) ; aka BANK(sCheckValue2)
-+	call GetSRAMBank
++	call OpenSRAM
 +	xor a
 +	ld [sCheckValue1], a
 +	ld [sCheckValue2], a
@@ -540,7 +540,7 @@
 ```diff
  ValidateBackupSave:
  	ld a, BANK(sBackupCheckValue1) ; aka BANK(sBackupCheckValue2)
- 	call GetSRAMBank
+ 	call OpenSRAM
  	ld a, SAVE_CHECK_VALUE_1
  	ld [sBackupCheckValue1], a
  	ld a, SAVE_CHECK_VALUE_2
@@ -549,7 +549,7 @@
 
 +InvalidateBackupSave:
 +	ld a, BANK(sBackupCheckValue1) ; aka BANK(sBackupCheckValue2)
-+	call GetSRAMBank
++	call OpenSRAM
 +	xor a
 +	ld [sBackupCheckValue1], a
 +	ld [sBackupCheckValue2], a
@@ -1924,7 +1924,7 @@
      jr nz, .room_in_party
  
      ld a, BANK(sBoxCount)
-     call GetSRAMBank
+     call OpenSRAM
      ld a, [sBoxCount]
      cp MONS_PER_BOX
      call CloseSRAM
--- a/engine/battle/check_battle_scene.asm
+++ b/engine/battle/check_battle_scene.asm
@@ -20,7 +20,7 @@
 	jr nz, .from_wram
 
 	ld a, BANK(s4_a60c) ; MBC30 bank used by JP Crystal; inaccessible by MBC3
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s4_a60c]
 	ld c, a
 	call CloseSRAM
--- a/engine/battle/core.asm
+++ b/engine/battle/core.asm
@@ -231,7 +231,7 @@
 Stubbed_Function3c1bf:
 	ret
 	ld a, BANK(s5_a89b) ; MBC30 bank used by JP Crystal; inaccessible by MBC3
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, s5_a89b ; address of MBC30 bank
 	inc [hl]
 	jr nz, .finish
@@ -8398,7 +8398,7 @@
 	call DelayFrames
 
 	ld a, BANK(sLinkBattleStats)
-	call GetSRAMBank
+	call OpenSRAM
 
 	call AddLastLinkBattleToLinkRecord
 	call ReadAndPrintLinkBattleRecord
@@ -8446,7 +8446,7 @@
 
 _DisplayLinkRecord:
 	ld a, BANK(sLinkBattleStats)
-	call GetSRAMBank
+	call OpenSRAM
 
 	call ReadAndPrintLinkBattleRecord
 
--- a/engine/battle/read_trainer_party.asm
+++ b/engine/battle/read_trainer_party.asm
@@ -74,7 +74,7 @@
 
 .cal2
 	ld a, BANK(sMysteryGiftTrainer)
-	call GetSRAMBank
+	call OpenSRAM
 	ld de, sMysteryGiftTrainer
 	call TrainerType2
 	call CloseSRAM
@@ -338,7 +338,7 @@
 	jr nz, .not_cal2
 
 	ld a, BANK(sMysteryGiftTrainerHouseFlag)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sMysteryGiftTrainerHouseFlag]
 	and a
 	call CloseSRAM
@@ -345,7 +345,7 @@
 	jr z, .not_cal2
 
 	ld a, BANK(sMysteryGiftPartnerName)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sMysteryGiftPartnerName
 	call CopyTrainerName
 	jp CloseSRAM
--- a/engine/battle_anims/anim_commands.asm
+++ b/engine/battle_anims/anim_commands.asm
@@ -950,7 +950,7 @@
 	ldh [rSVBK], a
 
 	xor a ; BANK(sScratch)
-	call GetSRAMBank
+	call OpenSRAM
 
 GetSubstitutePic: ; used only for BANK(GetSubstitutePic)
 	ld hl, sScratch
@@ -1025,7 +1025,7 @@
 	ldh [rSVBK], a
 
 	xor a ; BANK(sScratch)
-	call GetSRAMBank
+	call OpenSRAM
 	call GetMinimizePic
 	call Request2bpp
 	call CloseSRAM
@@ -1081,7 +1081,7 @@
 	ldh [rSVBK], a
 
 	xor a ; BANK(sScratch)
-	call GetSRAMBank
+	call OpenSRAM
 	call GetMinimizePic
 	ld hl, vTiles0 tile $00
 	call Request2bpp
--- a/engine/events/battle_tower/battle_tower.asm
+++ b/engine/events/battle_tower/battle_tower.asm
@@ -18,7 +18,7 @@
 	call Function17042c
 
 	ld a, BANK(s5_be45) ; aka BANK(s5_be46), BANK(s5_aa41), and BANK(s5_aa5d)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, 1
 	ld [s5_be45], a
 	xor a
@@ -58,7 +58,7 @@
 
 .Function170121:
 	ld a, BANK(s5_a948)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, s5_a948
 	ld de, wc608
 	ld bc, 246
@@ -70,7 +70,7 @@
 Function170139:
 ; Convert the 4-digit decimal number at 5:aa41 into binary
 	ld a, BANK(s5_aa41)
-	call GetSRAMBank
+	call OpenSRAM
 	ld de, s5_aa41
 	ld h, 0
 	ld l, h
@@ -147,7 +147,7 @@
 	jr nz, .CopyLoop
 
 	ld a, BANK(s4_a013)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, s4_a013
 	ld bc, 36
 	call CopyBytes
@@ -154,7 +154,7 @@
 	call CloseSRAM
 
 	ld a, BANK(s5_a894) ; aka BANK(s5_a948)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, s5_a894
 	ld bc, NAME_LENGTH_JAPANESE
 	call CopyBytes
@@ -246,7 +246,7 @@
 	and a ; WIN?
 	jr nz, .lost
 	ld a, BANK(sNrOfBeatenBattleTowerTrainers)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sNrOfBeatenBattleTowerTrainers]
 	ld [wNrOfBeatenBattleTowerTrainers], a
 	call CloseSRAM
@@ -410,7 +410,7 @@
 	ld [wCurSpecies], a
 	call GetBaseData
 	ld a, BANK(s5_b2fb)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s5_b2fb] ; s5_b2fb ; max level?
 	call CloseSRAM
 	ld e, a
@@ -572,7 +572,7 @@
 	ldh [rSVBK], a
 
 	ld a, BANK(sBattleTowerChallengeState)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, BATTLETOWER_CHALLENGE_IN_PROGESS
 	ld [sBattleTowerChallengeState], a
 	ld hl, sNrOfBeatenBattleTowerTrainers
@@ -643,7 +643,7 @@
 
 .Jumptable_0:
 	ld a, BANK(s5_a89c)
-	call GetSRAMBank
+	call OpenSRAM
 
 	ld hl, s5_a89c
 	ld de, wStringBuffer3
@@ -917,7 +917,7 @@
 ; Reset the save memory for BattleTower-Trainers (Counter and all 7 TrainerBytes)
 ResetBattleTowerTrainersSRAM:
 	ld a, BANK(sBTTrainers)
-	call GetSRAMBank
+	call OpenSRAM
 
 	ld a, $ff
 	ld hl, sBTTrainers
@@ -933,7 +933,7 @@
 
 BattleTower_GiveReward:
 	ld a, BANK(sBattleTowerReward)
-	call GetSRAMBank
+	call OpenSRAM
 
 	ld a, [sBattleTowerReward]
 	call CloseSRAM
@@ -962,7 +962,7 @@
 
 Function17071b:
 	ld a, BANK(sBattleTowerChallengeState)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, BATTLETOWER_WON_CHALLENGE
 	ld [sBattleTowerChallengeState], a
 	call CloseSRAM
@@ -970,7 +970,7 @@
 
 Function170729:
 	ld a, BANK(sBattleTowerChallengeState)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, BATTLETOWER_RECEIVED_REWARD
 	ld [sBattleTowerChallengeState], a
 	call CloseSRAM
@@ -995,7 +995,7 @@
 	jr z, .loop
 	push af
 	ld a, BANK(sBattleTowerReward)
-	call GetSRAMBank
+	call OpenSRAM
 	pop af
 	ld [sBattleTowerReward], a
 	call CloseSRAM
@@ -1008,7 +1008,7 @@
 	ret z
 
 	ld a, BANK(sBattleTowerSaveFileFlags)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sBattleTowerSaveFileFlags]
 	and 2
 	ld [wScriptVar], a
@@ -1018,7 +1018,7 @@
 BattleTowerAction_GetChallengeState:
 	ld hl, sBattleTowerChallengeState
 	ld a, BANK(sBattleTowerChallengeState)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [hl]
 	ld [wScriptVar], a
 	call CloseSRAM
@@ -1026,7 +1026,7 @@
 
 BattleTowerAction_SetExplanationRead:
 	ld a, BANK(sBattleTowerSaveFileFlags)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sBattleTowerSaveFileFlags]
 	or 2
 	ld [sBattleTowerSaveFileFlags], a
@@ -1041,7 +1041,7 @@
 	ld c, BATTLETOWER_NO_CHALLENGE
 asm_17079f:
 	ld a, BANK(sBattleTowerChallengeState)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, c
 	ld [sBattleTowerChallengeState], a
 	call CloseSRAM
@@ -1049,7 +1049,7 @@
 
 Function1707ac:
 	ld a, BANK(s5_aa8c) ; aka BANK(s5_be46)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s5_aa8c]
 	ld b, a
 	ld a, [s5_be46]
@@ -1064,7 +1064,7 @@
 	call UpdateTime
 	pop bc
 	ld a, BANK(s5_aa8c)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s5_aa8b]
 	call CloseSRAM
 	ld c, a
@@ -1090,7 +1090,7 @@
 
 Function1707f4:
 	ld a, BANK(s5_be46) ; aka BANK(s5_aa8b) and BANK(s5_aa8c)
-	call GetSRAMBank
+	call OpenSRAM
 	xor a
 	ld [s5_be46], a
 	ld [s5_aa8b], a
@@ -1101,7 +1101,7 @@
 Function170807:
 	call UpdateTime
 	ld a, BANK(s5_b2f9) ; aka BANK(s5_b2fa)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [wCurDay]
 	ld [s5_b2f9], a
 	xor a
@@ -1113,7 +1113,7 @@
 	xor a
 	ld [wScriptVar], a
 	ld a, BANK(s5_b2f9) ; aka BANK(s5_b2fa)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s5_b2f9]
 	ld c, a
 	ld a, [s5_b2fa]
@@ -1145,7 +1145,7 @@
 	ld a, 1
 	ld [wScriptVar], a
 	ld a, BANK(s5_b2f9) ; aka BANK(s5_b2fa)
-	call GetSRAMBank
+	call OpenSRAM
 	xor a
 	ld [s5_b2f9], a
 	ld [s5_b2fa], a
@@ -1154,7 +1154,7 @@
 
 SaveBattleTowerLevelGroup:
 	ld a, BANK(sBTChoiceOfLevelGroup)
-	call GetSRAMBank
+	call OpenSRAM
 	ldh a, [rSVBK]
 	push af
 	ld a, BANK(wBTChoiceOfLvlGroup)
@@ -1168,7 +1168,7 @@
 
 LoadBattleTowerLevelGroup: ; Load level group choice
 	ld a, BANK(sBTChoiceOfLevelGroup)
-	call GetSRAMBank
+	call OpenSRAM
 	ldh a, [rSVBK]
 	push af
 	ld a, BANK(wBTChoiceOfLvlGroup)
@@ -1204,7 +1204,7 @@
 
 CheckMobileEventIndex: ; BattleTowerAction $0b something to do with GS Ball
 	ld a, BANK(sMobileEventIndex)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sMobileEventIndex]
 	ld [wScriptVar], a
 	call CloseSRAM
@@ -1213,7 +1213,7 @@
 Function1708c8: ; BattleTowerAction $0c
 	call UpdateTime
 	ld a, BANK(s5_aa8b) ; aka BANK(s5_aa8c), BANK(s5_aa5d), BANK(s5_aa48), and BANK(s5_aa47)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [wCurDay]
 	ld [s5_aa8b], a
 	xor a
@@ -1234,7 +1234,7 @@
 	ld [wScriptVar], a
 	call UpdateTime
 	ld a, BANK(s5_aa48) ; aka BANK(s5_aa47)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s5_aa48]
 	ld c, a
 	ld a, [s5_aa47]
@@ -1246,7 +1246,7 @@
 	cp [hl]
 	jr nz, Function170923
 	ld a, BANK(s5_aa5d)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s5_aa5d]
 	call CloseSRAM
 	cp 5
@@ -1257,7 +1257,7 @@
 
 Function170923:
 	ld a, BANK(s5_aa48) ; aka BANK(s5_aa47) and BANK(s5_aa5d)
-	call GetSRAMBank
+	call OpenSRAM
 	xor a
 	ld [s5_aa48], a
 	ld [s5_aa47], a
@@ -1352,7 +1352,7 @@
 	xor a ; FALSE
 	ld [wScriptVar], a
 	ld a, BANK(s5_a800)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s5_a800]
 	call CloseSRAM
 	cp 6
@@ -1369,7 +1369,7 @@
 
 .invalid
 	ld a, BANK(s5_a800)
-	call GetSRAMBank
+	call OpenSRAM
 	xor a
 	ld [s5_a800], a
 	call CloseSRAM
@@ -1385,7 +1385,7 @@
 
 .DoAction1:
 	ld a, BANK(s5_a800)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, 1
 	ld [s5_a800], a
 	call CloseSRAM
@@ -1395,7 +1395,7 @@
 
 .Action4:
 	ld a, BANK(s5_b023) ; aka BANK(s5_a825) and BANK(s5_a826)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, s5_b023
 	ld de, wc608
 	ld bc, 105
@@ -1413,7 +1413,7 @@
 
 .Action5:
 	ld a, 0 ; ???
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wRTC
 	ld de, wc608
 	ld bc, 4
@@ -1420,7 +1420,7 @@
 	call CopyBytes
 	call CloseSRAM
 	ld a, BANK(s5_b08c)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, s5_b08c
 	ld de, wc608
 	ld c, 4
@@ -1453,7 +1453,7 @@
 .different
 	call CloseSRAM
 	ld a, BANK(s5_a800)
-	call GetSRAMBank
+	call OpenSRAM
 	xor a
 	ld [s5_a800], a
 	call CloseSRAM
@@ -1480,7 +1480,7 @@
 	ld c, TRUE
 asm_170aa2:
 	ld a, BANK(s5_aa8d)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, c
 	ld [s5_aa8d], a
 	call CloseSRAM
@@ -1488,7 +1488,7 @@
 
 Function170aaf:
 	ld a, BANK(s5_aa8d)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s5_aa8d]
 	ld [wScriptVar], a
 	call CloseSRAM
@@ -1501,7 +1501,7 @@
 	ret z
 
 	ld a, BANK(sBattleTowerSaveFileFlags)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sBattleTowerSaveFileFlags]
 	and 1
 	ld [wScriptVar], a
@@ -1510,7 +1510,7 @@
 
 Function170ad7:
 	ld a, BANK(sBattleTowerSaveFileFlags)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sBattleTowerSaveFileFlags]
 	or 1
 	ld [sBattleTowerSaveFileFlags], a
@@ -1519,7 +1519,7 @@
 
 BattleTowerAction_LevelCheck:
 	ld a, BANK(s5_b2fb)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s5_b2fb]
 	call CloseSRAM
 	ld c, 10
@@ -1531,7 +1531,7 @@
 	farcall BattleTower_LevelCheck
 	ret nc
 	ld a, BANK(s5_b2fb)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s5_b2fb]
 	call CloseSRAM
 	ld [wScriptVar], a
@@ -1539,7 +1539,7 @@
 
 BattleTowerAction_UbersCheck:
 	ld a, BANK(s5_b2fb)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s5_b2fb]
 	call CloseSRAM
 	ld c, 10
@@ -1551,7 +1551,7 @@
 	farcall BattleTower_UbersCheck
 	ret nc
 	ld a, BANK(s5_b2fb)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s5_b2fb]
 	call CloseSRAM
 	ld [wScriptVar], a
--- a/engine/events/battle_tower/load_trainer.asm
+++ b/engine/events/battle_tower/load_trainer.asm
@@ -39,7 +39,7 @@
 	ld b, a
 
 	ld a, BANK(sBTTrainers)
-	call GetSRAMBank
+	call OpenSRAM
 
 	ld c, BATTLETOWER_STREAK_LENGTH
 	ld hl, sBTTrainers
@@ -96,7 +96,7 @@
 .loop
 	push bc
 	ld a, BANK(sBTMonPrevTrainer1)
-	call GetSRAMBank
+	call OpenSRAM
 
 .FindARandomBattleTowerMon:
 	; From Which LevelGroup are the mon loaded
--- a/engine/events/checksave.asm
+++ b/engine/events/checksave.asm
@@ -1,6 +1,6 @@
 CheckSave::
 	ld a, BANK(sCheckValue1) ; aka BANK(sCheckValue2)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sCheckValue1]
 	ld b, a
 	ld a, [sCheckValue2]
--- a/engine/events/halloffame.asm
+++ b/engine/events/halloffame.asm
@@ -412,7 +412,7 @@
 	ld bc, wHallOfFameTempEnd - wHallOfFameTemp + 1
 	call AddNTimes
 	ld a, BANK(sHallOfFame)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [hl]
 	and a
 	jr z, .absent
--- a/engine/events/lucky_number.asm
+++ b/engine/events/lucky_number.asm
@@ -20,7 +20,7 @@
 	dec d
 	jr nz, .PartyLoop
 	ld a, BANK(sBox)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sBoxCount]
 	and a
 	jr z, .SkipOpenBox
@@ -59,7 +59,7 @@
 	add hl, bc
 	add hl, bc
 	ld a, [hli]
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [hli]
 	ld h, [hl]
 	ld l, a ; hl now contains the address of the loaded box in SRAM
--- a/engine/events/print_unown.asm
+++ b/engine/events/print_unown.asm
@@ -159,7 +159,7 @@
 	ldh [rSVBK], a
 
 	ld a, BANK(sScratch)
-	call GetSRAMBank
+	call OpenSRAM
 	ld de, wDecompressScratch
 	ld hl, sScratch
 	ldh a, [hROMBank]
@@ -180,7 +180,7 @@
 	ld de, UnownDexVacantString
 	call PlaceString
 	xor a ; sScratch
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sScratch
 	ld bc, $31 tiles
 	xor a
--- a/engine/events/print_unown_2.asm
+++ b/engine/events/print_unown_2.asm
@@ -2,7 +2,7 @@
 ; something to do with Unown printer
 	push de
 	xor a ; BANK(sScratch)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sScratch
 	ld bc, 0
 .loop
--- a/engine/events/specials.asm
+++ b/engine/events/specials.asm
@@ -128,7 +128,7 @@
 
 CheckMysteryGift:
 	ld a, BANK(sMysteryGiftItem)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sMysteryGiftItem]
 	and a
 	jr z, .no
@@ -141,7 +141,7 @@
 
 GetMysteryGiftItem:
 	ld a, BANK(sMysteryGiftItem)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sMysteryGiftItem]
 	ld [wCurItem], a
 	ld a, 1
@@ -420,7 +420,7 @@
 
 TrainerHouse:
 	ld a, BANK(sMysteryGiftTrainerHouseFlag)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sMysteryGiftTrainerHouseFlag]
 	ld [wScriptVar], a
 	jp CloseSRAM
--- a/engine/gfx/sprite_anims.asm
+++ b/engine/gfx/sprite_anims.asm
@@ -221,7 +221,7 @@
 	ret
 
 .GameFreakLogo:
-	callfar GameFreakLogoJumper
+	callfar PlaceGameFreakLogo
 	ret
 
 .GSIntroStar
--- a/engine/items/item_effects.asm
+++ b/engine/items/item_effects.asm
@@ -203,7 +203,7 @@
 	jr nz, .room_in_party
 
 	ld a, BANK(sBoxCount)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sBoxCount]
 	cp MONS_PER_BOX
 	call CloseSRAM
@@ -605,7 +605,7 @@
 	farcall SetBoxMonCaughtData
 
 	ld a, BANK(sBoxCount)
-	call GetSRAMBank
+	call OpenSRAM
 
 	ld a, [sBoxCount]
 	cp MONS_PER_BOX
@@ -641,7 +641,7 @@
 	farcall NamingScreen
 
 	ld a, BANK(sBoxMonNicknames)
-	call GetSRAMBank
+	call OpenSRAM
 
 	ld hl, wMonOrItemNameBuffer
 	ld de, sBoxMonNicknames
@@ -656,7 +656,7 @@
 
 .SkipBoxMonNickname:
 	ld a, BANK(sBoxMonNicknames)
-	call GetSRAMBank
+	call OpenSRAM
 
 	ld hl, sBoxMonNicknames
 	ld de, wMonOrItemNameBuffer
--- a/engine/link/link.asm
+++ b/engine/link/link.asm
@@ -835,7 +835,7 @@
 
 ; Copy all the mail messages to wc9f9
 	ld a, BANK(sPartyMail)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sPartyMail
 	ld b, PARTY_LENGTH
 .loop2
@@ -1706,7 +1706,7 @@
 	ld bc, MAIL_STRUCT_LENGTH
 	call AddNTimes
 	ld a, BANK(sPartyMail)
-	call GetSRAMBank
+	call OpenSRAM
 	ld d, h
 	ld e, l
 	ld bc, MAIL_STRUCT_LENGTH
@@ -2508,7 +2508,7 @@
 
 Unreferenced_Function29fe4:
 	ld a, BANK(sPartyMail)
-	call GetSRAMBank
+	call OpenSRAM
 	ld d, FALSE
 	ld b, CHECK_FLAG
 	predef SmallFarFlagAction
--- a/engine/link/mystery_gift.asm
+++ b/engine/link/mystery_gift.asm
@@ -1202,7 +1202,7 @@
 
 GetMysteryGiftBank:
 	ld a, BANK(sBackupMysteryGiftItem)
-	jp GetSRAMBank
+	jp OpenSRAM
 
 StagePartyDataForMysteryGift:
 ; You will be sending this data to your mystery gift partner.
@@ -1209,7 +1209,7 @@
 ; Structure is the same as a trainer with species and moves
 ; defined.
 	ld a, BANK(sPokemonData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld de, wMysteryGiftStaging
 	ld bc, sPokemonData + wPartyMons - wPokemonData
 	ld hl, sPokemonData + wPartySpecies - wPokemonData
@@ -1521,7 +1521,7 @@
 Function10578c:
 	ld de, wLinkData
 	ld a, BANK(sPlayerData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sPlayerData + wPlayerName - wPlayerData
 	ld bc, NAME_LENGTH
 	call CopyBytes
@@ -1533,12 +1533,12 @@
 	call CopyBytes
 	call CloseSRAM
 	ld a, BANK(sCrystalData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sCrystalData + 0]
 	ld [de], a
 	inc de
 	ld a, BANK(s4_a603) ; aka BANK(s4_a007) ; MBC30 bank used by JP Crystal; inaccessible by MBC3
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, s4_a603 ; address of MBC30 bank
 	ld bc, $8
 	call CopyBytes
--- a/engine/link/mystery_gift_2.asm
+++ b/engine/link/mystery_gift_2.asm
@@ -4,7 +4,7 @@
 	ld [de], a
 	inc de ; wc801
 	ld a, BANK(sGameData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sPlayerData + wPlayerID - wPlayerData
 	ld a, [hli]
 	ld [de], a
@@ -42,7 +42,7 @@
 	ld [de], a
 	inc de ; wc812
 	ld a, BANK(sBackupMysteryGiftItem)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sBackupMysteryGiftItem]
 	ld [de], a
 	inc de
--- a/engine/menus/empty_sram.asm
+++ b/engine/menus/empty_sram.asm
@@ -10,7 +10,7 @@
 	ret
 
 .EmptyBank:
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, SRAM_Begin
 	ld bc, SRAM_End - SRAM_Begin
 	xor a
--- a/engine/menus/intro_menu.asm
+++ b/engine/menus/intro_menu.asm
@@ -137,7 +137,7 @@
 	call SetDefaultBoxNames
 
 	ld a, BANK(sBoxCount)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBoxCount
 	call .InitList
 	call CloseSRAM
@@ -167,7 +167,7 @@
 	ld [wRoamMon3MapNumber], a
 
 	ld a, BANK(sMysteryGiftItem)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sMysteryGiftItem
 	xor a
 	ld [hli], a
@@ -304,7 +304,7 @@
 
 LoadOrRegenerateLuckyIDNumber:
 	ld a, BANK(sLuckyIDNumber)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [wCurDay]
 	inc a
 	ld b, a
@@ -953,7 +953,7 @@
 	db 10 * 8 + 4, 10 * 8, 3
 
 CrystalIntroSequence:
-	callfar Copyright_GFPresents
+	callfar Copyright_GameFreakPresents
 	jr c, StartTitleScreen
 	farcall CrystalIntro
 
--- a/engine/menus/main_menu.asm
+++ b/engine/menus/main_menu.asm
@@ -155,7 +155,7 @@
 	ld a, $1
 	ret nz
 	ld a, BANK(sNumDailyMysteryGiftPartnerIDs)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sNumDailyMysteryGiftPartnerIDs]
 	cp -1
 	call CloseSRAM
--- a/engine/menus/menu.asm
+++ b/engine/menus/menu.asm
@@ -697,7 +697,7 @@
 	bit 0, a
 	ret z
 	xor a ; sScratch
-	call GetSRAMBank
+	call OpenSRAM
 	hlcoord 0, 0
 	ld de, sScratch
 	ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
@@ -705,7 +705,7 @@
 	call CloseSRAM
 	call OverworldTextModeSwitch
 	xor a ; sScratch
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sScratch
 	decoord 0, 0
 	ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
--- a/engine/menus/save.asm
+++ b/engine/menus/save.asm
@@ -144,7 +144,7 @@
 
 AddHallOfFameEntry:
 	ld a, BANK(sHallOfFame)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sHallOfFame + HOF_LENGTH * (NUM_HOF_TEAMS - 1) - 1
 	ld de, sHallOfFame + HOF_LENGTH * NUM_HOF_TEAMS - 1
 	ld bc, HOF_LENGTH * (NUM_HOF_TEAMS - 1)
@@ -212,7 +212,7 @@
 
 CompareLoadedAndSavedPlayerID:
 	ld a, BANK(sPlayerData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sPlayerData + (wPlayerID - wPlayerData)
 	ld a, [hli]
 	ld c, [hl]
@@ -273,7 +273,7 @@
 	farcall BackupMobileEventIndex
 	farcall SaveRTC
 	ld a, BANK(sBattleTowerChallengeState)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sBattleTowerChallengeState]
 	cp BATTLETOWER_RECEIVED_REWARD
 	jr nz, .ok
@@ -288,7 +288,7 @@
 ; It could have been used to debug stack overflow during saving.
 	call FindStackTop
 	ld a, BANK(sStackTop)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sStackTop + 0]
 	ld e, a
 	ld a, [sStackTop + 1]
@@ -354,7 +354,7 @@
 	call SaveData
 	call EraseBattleTowerStatus
 	ld a, BANK(sStackTop)
-	call GetSRAMBank
+	call OpenSRAM
 	xor a
 	ld [sStackTop + 0], a
 	ld [sStackTop + 1], a
@@ -365,7 +365,7 @@
 
 EraseLinkBattleStats:
 	ld a, BANK(sLinkBattleStats)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sLinkBattleStats
 	ld bc, sLinkBattleStatsEnd - sLinkBattleStats
 	xor a
@@ -374,7 +374,7 @@
 
 EraseMysteryGift:
 	ld a, BANK(sBackupMysteryGiftItem)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBackupMysteryGiftItem
 	ld bc, sBackupMysteryGiftItemEnd - sBackupMysteryGiftItem
 	xor a
@@ -383,7 +383,7 @@
 
 EraseHallOfFame:
 	ld a, BANK(sHallOfFame)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sHallOfFame
 	ld bc, sHallOfFameEnd - sHallOfFame
 	xor a
@@ -392,7 +392,7 @@
 
 Unreferenced_Function14d18:
 	ld a, BANK(s4_a007)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, .Data
 	ld de, s4_a007
 	ld bc, .DataEnd - .Data
@@ -412,7 +412,7 @@
 
 EraseBattleTowerStatus:
 	ld a, BANK(sBattleTowerChallengeState)
-	call GetSRAMBank
+	call OpenSRAM
 	xor a
 	ld [sBattleTowerChallengeState], a
 	jp CloseSRAM
@@ -423,7 +423,7 @@
 
 Unreferenced_Function14d6c:
 	ld a, BANK(s4_a60b) ; MBC30 bank used by JP Crystal; inaccessible by MBC3
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s4_a60b] ; address of MBC30 bank
 	ld b, $0
 	and a
@@ -438,7 +438,7 @@
 
 Unreferenced_Function14d83:
 	ld a, BANK(s4_a60c) ; aka BANK(s4_a60d) ; MBC30 bank used by JP Crystal; inaccessible by MBC3
-	call GetSRAMBank
+	call OpenSRAM
 	xor a
 	ld [s4_a60c], a ; address of MBC30 bank
 	ld [s4_a60d], a ; address of MBC30 bank
@@ -447,7 +447,7 @@
 
 Unreferenced_Function14d93:
 	ld a, BANK(s7_a000) ; MBC30 bank used by JP Crystal; inaccessible by MBC3
-	call GetSRAMBank
+	call OpenSRAM
 	xor a
 	ld [s7_a000], a ; address of MBC30 bank
 	call CloseSRAM
@@ -462,7 +462,7 @@
 
 ValidateSave:
 	ld a, BANK(sCheckValue1) ; aka BANK(sCheckValue2)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, SAVE_CHECK_VALUE_1
 	ld [sCheckValue1], a
 	ld a, SAVE_CHECK_VALUE_2
@@ -471,7 +471,7 @@
 
 SaveOptions:
 	ld a, BANK(sOptions)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wOptions
 	ld de, sOptions
 	ld bc, wOptionsEnd - wOptions
@@ -483,7 +483,7 @@
 
 SavePlayerData:
 	ld a, BANK(sPlayerData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wPlayerData
 	ld de, sPlayerData
 	ld bc, wPlayerDataEnd - wPlayerData
@@ -496,7 +496,7 @@
 
 SavePokemonData:
 	ld a, BANK(sPokemonData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wPokemonData
 	ld de, sPokemonData
 	ld bc, wPokemonDataEnd - wPokemonData
@@ -513,7 +513,7 @@
 	ld hl, sGameData
 	ld bc, sGameDataEnd - sGameData
 	ld a, BANK(sGameData)
-	call GetSRAMBank
+	call OpenSRAM
 	call Checksum
 	ld a, e
 	ld [sChecksum + 0], a
@@ -524,7 +524,7 @@
 
 ValidateBackupSave:
 	ld a, BANK(sBackupCheckValue1) ; aka BANK(sBackupCheckValue2)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, SAVE_CHECK_VALUE_1
 	ld [sBackupCheckValue1], a
 	ld a, SAVE_CHECK_VALUE_2
@@ -534,7 +534,7 @@
 
 SaveBackupOptions:
 	ld a, BANK(sBackupOptions)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wOptions
 	ld de, sBackupOptions
 	ld bc, wOptionsEnd - wOptions
@@ -544,7 +544,7 @@
 
 SaveBackupPlayerData:
 	ld a, BANK(sBackupPlayerData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wPlayerData
 	ld de, sBackupPlayerData
 	ld bc, wPlayerDataEnd - wPlayerData
@@ -558,7 +558,7 @@
 
 SaveBackupPokemonData:
 	ld a, BANK(sBackupPokemonData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wPokemonData
 	ld de, sBackupPokemonData
 	ld bc, wPokemonDataEnd - wPokemonData
@@ -570,7 +570,7 @@
 	ld hl, sBackupGameData
 	ld bc, sBackupGameDataEnd - sBackupGameData
 	ld a, BANK(sBackupGameData)
-	call GetSRAMBank
+	call OpenSRAM
 	call Checksum
 	ld a, e
 	ld [sBackupChecksum + 0], a
@@ -634,7 +634,7 @@
 	jr z, .backup
 
 	ld a, BANK(sPlayerData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sPlayerData + wStartDay - wPlayerData
 	ld de, wStartDay
 	ld bc, 8
@@ -653,7 +653,7 @@
 	jr z, .corrupt
 
 	ld a, BANK(sBackupPlayerData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBackupPlayerData + wStartDay - wPlayerData
 	ld de, wStartDay
 	ld bc, 8
@@ -677,7 +677,7 @@
 
 CheckPrimarySaveFile:
 	ld a, BANK(sCheckValue1) ; aka BANK(sCheckValue2)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sCheckValue1]
 	cp SAVE_CHECK_VALUE_1
 	jr nz, .nope
@@ -698,7 +698,7 @@
 
 CheckBackupSaveFile:
 	ld a, BANK(sBackupCheckValue1) ; aka BANK(sBackupCheckValue2)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sBackupCheckValue1]
 	cp SAVE_CHECK_VALUE_1
 	jr nz, .nope
@@ -718,7 +718,7 @@
 
 LoadPlayerData:
 	ld a, BANK(sPlayerData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sPlayerData
 	ld de, wPlayerData
 	ld bc, wPlayerDataEnd - wPlayerData
@@ -729,7 +729,7 @@
 	call CopyBytes
 	call CloseSRAM
 	ld a, BANK(sBattleTowerChallengeState)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sBattleTowerChallengeState]
 	cp BATTLETOWER_RECEIVED_REWARD
 	jr nz, .not_4
@@ -741,7 +741,7 @@
 
 LoadPokemonData:
 	ld a, BANK(sPokemonData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sPokemonData
 	ld de, wPokemonData
 	ld bc, wPokemonDataEnd - wPokemonData
@@ -758,7 +758,7 @@
 	ld hl, sGameData
 	ld bc, sGameDataEnd - sGameData
 	ld a, BANK(sGameData)
-	call GetSRAMBank
+	call OpenSRAM
 	call Checksum
 	ld a, [sChecksum + 0]
 	cp e
@@ -773,7 +773,7 @@
 
 LoadBackupPlayerData:
 	ld a, BANK(sBackupPlayerData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBackupPlayerData
 	ld de, wPlayerData
 	ld bc, wPlayerDataEnd - wPlayerData
@@ -787,7 +787,7 @@
 
 LoadBackupPokemonData:
 	ld a, BANK(sBackupPokemonData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBackupPokemonData
 	ld de, wPokemonData
 	ld bc, wPokemonDataEnd - wPokemonData
@@ -799,7 +799,7 @@
 	ld hl, sBackupGameData
 	ld bc, sBackupGameDataEnd - sBackupGameData
 	ld a, BANK(sBackupGameData)
-	call GetSRAMBank
+	call OpenSRAM
 	call Checksum
 	ld a, [sBackupChecksum + 0]
 	cp e
@@ -819,7 +819,7 @@
 	; It is not part of a regular save.
 
 	ld a, BANK(sCrystalData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wCrystalData
 	ld de, sCrystalData
 	ld bc, wCrystalDataEnd - wCrystalData
@@ -840,7 +840,7 @@
 
 _LoadData:
 	ld a, BANK(sCrystalData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sCrystalData
 	ld de, wCrystalData
 	ld bc, wCrystalDataEnd - wCrystalData
@@ -892,7 +892,7 @@
 	push af
 	push de
 	ld a, BANK(sBox)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBox
 	ld de, wBoxPartialData
 	ld bc, (wBoxPartialDataEnd - wBoxPartialData)
@@ -903,7 +903,7 @@
 ; Save it to the target box.
 	push af
 	push de
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wBoxPartialData
 	ld bc, (wBoxPartialDataEnd - wBoxPartialData)
 	call CopyBytes
@@ -911,7 +911,7 @@
 
 ; Load the second part of the active box.
 	ld a, BANK(sBox)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBox + (wBoxPartialDataEnd - wBoxPartialData)
 	ld de, wBoxPartialData
 	ld bc, (wBoxPartialDataEnd - wBoxPartialData)
@@ -927,7 +927,7 @@
 ; Save it to the next part of the target box.
 	push af
 	push de
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wBoxPartialData
 	ld bc, (wBoxPartialDataEnd - wBoxPartialData)
 	call CopyBytes
@@ -935,7 +935,7 @@
 
 ; Load the third and final part of the active box.
 	ld a, BANK(sBox)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBox + (wBoxPartialDataEnd - wBoxPartialData) * 2
 	ld de, wBoxPartialData
 	ld bc, sBoxEnd - (sBox + (wBoxPartialDataEnd - wBoxPartialData) * 2) ; $8e
@@ -949,7 +949,7 @@
 	ld e, l
 	ld d, h
 ; Save it to the final part of the target box.
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wBoxPartialData
 	ld bc, sBoxEnd - (sBox + (wBoxPartialDataEnd - wBoxPartialData) * 2) ; $8e
 	call CopyBytes
@@ -968,13 +968,13 @@
 ; Load part 1
 	push af
 	push hl
-	call GetSRAMBank
+	call OpenSRAM
 	ld de, wBoxPartialData
 	ld bc, (wBoxPartialDataEnd - wBoxPartialData)
 	call CopyBytes
 	call CloseSRAM
 	ld a, BANK(sBox)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wBoxPartialData
 	ld de, sBox
 	ld bc, (wBoxPartialDataEnd - wBoxPartialData)
@@ -988,13 +988,13 @@
 ; Load part 2
 	push af
 	push hl
-	call GetSRAMBank
+	call OpenSRAM
 	ld de, wBoxPartialData
 	ld bc, (wBoxPartialDataEnd - wBoxPartialData)
 	call CopyBytes
 	call CloseSRAM
 	ld a, BANK(sBox)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wBoxPartialData
 	ld de, sBox + (wBoxPartialDataEnd - wBoxPartialData)
 	ld bc, (wBoxPartialDataEnd - wBoxPartialData)
@@ -1005,13 +1005,13 @@
 ; Load part 3
 	ld de, (wBoxPartialDataEnd - wBoxPartialData)
 	add hl, de
-	call GetSRAMBank
+	call OpenSRAM
 	ld de, wBoxPartialData
 	ld bc, sBoxEnd - (sBox + (wBoxPartialDataEnd - wBoxPartialData) * 2) ; $8e
 	call CopyBytes
 	call CloseSRAM
 	ld a, BANK(sBox)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wBoxPartialData
 	ld de, sBox + (wBoxPartialDataEnd - wBoxPartialData) * 2
 	ld bc, sBoxEnd - (sBox + (wBoxPartialDataEnd - wBoxPartialData) * 2) ; $8e
@@ -1027,7 +1027,7 @@
 .next
 	push bc
 	ld a, [hli]
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [hli]
 	ld e, a
 	ld a, [hli]
--- a/engine/movie/credits.asm
+++ b/engine/movie/credits.asm
@@ -80,7 +80,7 @@
 	push af
 	ld a, $5
 	ldh [hVBlank], a
-	ld a, $1
+	ld a, TRUE
 	ldh [hInMenu], a
 	xor a
 	ldh [hBGMapMode], a
@@ -198,7 +198,7 @@
 Credits_RequestGFX:
 	xor a
 	ldh [hBGMapMode], a
-	ld a, $8
+	ld a, 8
 	ld [wRequested2bpp], a
 	jp Credits_Next
 
@@ -572,14 +572,17 @@
 	dw CreditsPichuGFX     + 16 tiles
 	dw CreditsPichuGFX     + 32 tiles
 	dw CreditsPichuGFX     + 48 tiles
+
 	dw CreditsSmoochumGFX
 	dw CreditsSmoochumGFX  + 16 tiles
 	dw CreditsSmoochumGFX  + 32 tiles
 	dw CreditsSmoochumGFX  + 48 tiles
+
 	dw CreditsDittoGFX
 	dw CreditsDittoGFX     + 16 tiles
 	dw CreditsDittoGFX     + 32 tiles
 	dw CreditsDittoGFX     + 48 tiles
+
 	dw CreditsIgglybuffGFX
 	dw CreditsIgglybuffGFX + 16 tiles
 	dw CreditsIgglybuffGFX + 32 tiles
--- a/engine/movie/evolution_animation.asm
+++ b/engine/movie/evolution_animation.asm
@@ -47,11 +47,13 @@
 	call WaitBGMap
 	xor a
 	ldh [hBGMapMode], a
+
 	ld a, [wEvolutionOldSpecies]
 	ld [wPlayerHPPal], a
 
-	ld c, $0
+	ld c, FALSE
 	call .GetSGBLayout
+
 	ld a, [wEvolutionOldSpecies]
 	ld [wCurPartySpecies], a
 	ld [wCurSpecies], a
@@ -69,19 +71,20 @@
 	ld [wCurPartySpecies], a
 	ld [wCurSpecies], a
 	call .LoadFrontpic
+
 	ld a, [wEvolutionOldSpecies]
 	ld [wCurPartySpecies], a
 	ld [wCurSpecies], a
 
-	ld a, $1
+	ld a, 1
 	ldh [hBGMapMode], a
+
 	call .check_statused
 	jr c, .skip_cry
-
 	ld a, [wEvolutionOldSpecies]
 	call PlayMonCry
-
 .skip_cry
+
 	ld de, MUSIC_EVOLUTION
 	call PlayMusic
 
@@ -88,8 +91,9 @@
 	ld c, 80
 	call DelayFrames
 
-	ld c, $1
+	ld c, TRUE
 	call .GetSGBLayout
+
 	call .AnimationSequence
 	jr c, .cancel_evo
 
@@ -96,6 +100,7 @@
 	ld a, -7 * 7
 	ld [wEvolutionPicOffset], a
 	call .ReplaceFrontpic
+
 	xor a
 	ld [wEvolutionCanceled], a
 
@@ -102,8 +107,9 @@
 	ld a, [wEvolutionNewSpecies]
 	ld [wPlayerHPPal], a
 
-	ld c, $0
+	ld c, FALSE
 	call .GetSGBLayout
+
 	call .PlayEvolvedSFX
 	farcall ClearSpriteAnims
 	call .check_statused
@@ -133,14 +139,15 @@
 	ret
 
 .cancel_evo
-	ld a, $1
+	ld a, TRUE
 	ld [wEvolutionCanceled], a
 
 	ld a, [wEvolutionOldSpecies]
 	ld [wPlayerHPPal], a
 
-	ld c, $0
+	ld c, FALSE
 	call .GetSGBLayout
+
 	call .PlayEvolvedSFX
 	farcall ClearSpriteAnims
 	call .check_statused
--- a/engine/movie/intro.asm
+++ b/engine/movie/intro.asm
@@ -1,4 +1,4 @@
-Copyright_GFPresents:
+Copyright_GameFreakPresents:
 ; Play the copyright screen and GameFreak Presents sequence.
 ; Return carry if user cancels animation by pressing a button.
 
@@ -13,7 +13,7 @@
 	ldh [hJoyDown], a
 	ldh [hSCX], a
 	ldh [hSCY], a
-	ld a, $90
+	ld a, SCREEN_HEIGHT_PX
 	ldh [hWY], a
 	call WaitBGMap
 	ld b, SCGB_GAMEFREAK_LOGO
@@ -116,32 +116,23 @@
 	ret
 
 PlaceGameFreakPresents:
-	ld a, [wJumptableIndex]
-	ld e, a
-	ld d, 0
-	ld hl, .dw
-	add hl, de
-	add hl, de
-	ld a, [hli]
-	ld h, [hl]
-	ld l, a
-	jp hl
+	jumptable .scenes, wJumptableIndex
 
-.dw
-	dw PlaceGameFreakPresents_0
-	dw PlaceGameFreakPresents_1
-	dw PlaceGameFreakPresents_2
-	dw PlaceGameFreakPresents_3
+.scenes
+	dw GameFreakPresentsScene0
+	dw GameFreakPresentsScene1
+	dw GameFreakPresentsScene2
+	dw GameFreakPresentsScene3
 
-PlaceGameFreakPresents_AdvanceIndex:
+PlaceGameFreakPresents_NextScene:
 	ld hl, wJumptableIndex
 	inc [hl]
 	ret
 
-PlaceGameFreakPresents_0:
+GameFreakPresentsScene0:
 	ret
 
-PlaceGameFreakPresents_1:
+GameFreakPresentsScene1:
 	ld hl, wIntroSceneTimer
 	ld a, [hl]
 	cp $20
@@ -155,7 +146,7 @@
 	decoord 5, 10
 	ld bc, .end - .GAME_FREAK
 	call CopyBytes
-	call PlaceGameFreakPresents_AdvanceIndex
+	call PlaceGameFreakPresents_NextScene
 	ld de, SFX_GAME_FREAK_PRESENTS
 	call PlaySFX
 	ret
@@ -166,7 +157,7 @@
 .end
 	db "@"
 
-PlaceGameFreakPresents_2:
+GameFreakPresentsScene2:
 	ld hl, wIntroSceneTimer
 	ld a, [hl]
 	cp $40
@@ -180,7 +171,7 @@
 	decoord 7, 11
 	ld bc, .end - .presents
 	call CopyBytes
-	call PlaceGameFreakPresents_AdvanceIndex
+	call PlaceGameFreakPresents_NextScene
 	ret
 
 .presents
@@ -188,7 +179,7 @@
 .end
 	db "@"
 
-PlaceGameFreakPresents_3:
+GameFreakPresentsScene3:
 	ld hl, wIntroSceneTimer
 	ld a, [hl]
 	cp $80
@@ -201,12 +192,12 @@
 	set 7, [hl]
 	ret
 
-GameFreakLogoJumper:
+PlaceGameFreakLogo:
 	ld hl, SPRITEANIMSTRUCT_JUMPTABLE_INDEX
 	add hl, bc
 	ld e, [hl]
 	ld d, 0
-	ld hl, GameFreakLogoScenes
+	ld hl, .scenes
 	add hl, de
 	add hl, de
 	ld a, [hli]
@@ -214,7 +205,7 @@
 	ld l, a
 	jp hl
 
-GameFreakLogoScenes:
+.scenes:
 	dw GameFreakLogoScene1
 	dw GameFreakLogoScene2
 	dw GameFreakLogoScene3
@@ -325,7 +316,7 @@
 	ld hl, SPRITEANIMSTRUCT_JUMPTABLE_INDEX
 	add hl, bc
 	inc [hl]
-	call PlaceGameFreakPresents_AdvanceIndex
+	call PlaceGameFreakPresents_NextScene
 GameFreakLogoScene5:
 	ret
 
--- a/engine/overworld/scripting.asm
+++ b/engine/overworld/scripting.asm
@@ -2450,7 +2450,7 @@
 	set PLAYERSPRITESETUP_CUSTOM_FACING_F, a
 	or c
 	ld [wPlayerSpriteSetupFlags], a
-; fall through
+; fallthrough
 
 Script_warp:
 ; script command 0x3c
--- a/engine/overworld/time.asm
+++ b/engine/overworld/time.asm
@@ -244,7 +244,7 @@
 
 DoMysteryGiftIfDayHasPassed:
 	ld a, BANK(sMysteryGiftTimer)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sMysteryGiftTimer
 	ld a, [hli]
 	ld [wBuffer1], a
@@ -262,7 +262,7 @@
 
 .not_timed_out
 	ld a, BANK(sMysteryGiftTimer)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wBuffer1
 	ld a, [hli]
 	ld [sMysteryGiftTimer], a
--- a/engine/overworld/variables.asm
+++ b/engine/overworld/variables.asm
@@ -126,7 +126,7 @@
 .BoxFreeSpace:
 ; Remaining slots in the current box.
 	ld a, BANK(sBoxCount)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBoxCount
 	ld a, MONS_PER_BOX
 	sub [hl]
--- a/engine/pokedex/pokedex.asm
+++ b/engine/pokedex/pokedex.asm
@@ -2362,7 +2362,7 @@
 
 .QuestionMark:
 	ld a, BANK(sScratch)
-	call GetSRAMBank
+	call OpenSRAM
 	farcall LoadQuestionMarkPic
 	ld hl, vTiles2
 	ld de, sScratch
@@ -2478,7 +2478,7 @@
 
 Pokedex_LoadUnownFont:
 	ld a, BANK(sScratch)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, UnownFont
 	ld de, sScratch + $188
 	ld bc, 39 tiles
--- a/engine/pokemon/bills_pc.asm
+++ b/engine/pokemon/bills_pc.asm
@@ -1127,7 +1127,7 @@
 	ld b, a
 	call GetBoxPointer
 	ld a, b
-	call GetSRAMBank
+	call OpenSRAM
 	push hl
 	ld bc, sBoxMon1Level - sBox
 	add hl, bc
@@ -1187,7 +1187,7 @@
 
 .sBox
 	ld a, BANK(sBox)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBoxMon1Level
 	ld bc, BOXMON_STRUCT_LENGTH
 	ld a, e
@@ -1282,7 +1282,7 @@
 	push hl
 	call GetBoxPointer
 	ld a, b
-	call GetSRAMBank
+	call OpenSRAM
 	push hl
 	ld bc, sBoxMons - sBox
 	add hl, bc
@@ -1339,7 +1339,7 @@
 .sBox
 	push hl
 	ld a, BANK(sBox)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBoxSpecies
 	ld d, $0
 	add hl, de
@@ -1421,7 +1421,7 @@
 	ld b, a
 	call GetBoxPointer
 	ld a, b
-	call GetSRAMBank
+	call OpenSRAM
 	inc hl
 	copy_box_data 1
 	ret
@@ -1433,7 +1433,7 @@
 
 .sBox
 	ld a, BANK(sBox)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBoxSpecies
 	copy_box_data 1
 	ret
@@ -1652,7 +1652,7 @@
 BillsPC_StatsScreen:
 	call LowVolume
 	call BillsPC_CopyMon
-	ld a, $3
+	ld a, TEMPMON
 	ld [wMonType], a
 	predef StatsScreenInit
 	call BillsPC_InitGFX
@@ -1704,7 +1704,7 @@
 	cp NUM_BOXES + 1
 	jr nz, .box
 	ld a, BANK(sBox)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBoxSpecies
 	call CopySpeciesToTemp
 	ld hl, sBoxMonNicknames
@@ -1742,7 +1742,7 @@
 	ld b, a
 	call GetBoxPointer
 	ld a, b
-	call GetSRAMBank
+	call OpenSRAM
 	push hl
 	inc hl
 	call CopySpeciesToTemp
@@ -1823,7 +1823,7 @@
 	add [hl]
 	ld [wCurPartyMon], a
 	ld a, BANK(sBoxMonNicknames)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [wCurPartyMon]
 	ld hl, sBoxMonNicknames
 	call GetNick
@@ -2046,7 +2046,7 @@
 	add [hl]
 	ld [wCurPartyMon], a
 	ld a, BANK(sBox)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBoxSpecies
 	call CopySpeciesToTemp
 	ld hl, sBoxMonNicknames
@@ -2348,7 +2348,7 @@
 	add hl, bc
 	ld a, [hli]
 	ld b, a
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [hli]
 	ld h, [hl]
 	ld l, a
@@ -2368,7 +2368,7 @@
 .activebox
 	ld a, BANK(sBoxCount)
 	ld b, a
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBoxCount
 	ld a, [hl]
 	call CloseSRAM
--- a/engine/pokemon/bills_pc_top.asm
+++ b/engine/pokemon/bills_pc_top.asm
@@ -209,11 +209,11 @@
 Unreferenced_Functione56d:
 	ld a, [wPartyCount]
 	cp PARTY_LENGTH
-	jr nc, .asm_e576
+	jr nc, .party_full
 	and a
 	ret
 
-.asm_e576
+.party_full
 	ld hl, PCCantTakeText
 	call MenuTextboxBackup
 	scf
@@ -256,7 +256,7 @@
 	ld de, wTempMonSpecies
 	ld bc, BOXMON_STRUCT_LENGTH
 	ld a, BANK(sBoxMon1Species)
-	call GetSRAMBank
+	call OpenSRAM
 	call CopyBytes
 	call CloseSRAM
 	ret
@@ -282,7 +282,7 @@
 	ld hl, sBoxCount
 
 .okay
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [hl]
 	ld bc, sBoxMons - sBox
 	add hl, bc
--- a/engine/pokemon/caught_data.asm
+++ b/engine/pokemon/caught_data.asm
@@ -1,5 +1,5 @@
 CheckPartyFullAfterContest:
-	ld a, [wContestMon]
+	ld a, [wContestMonSpecies]
 	and a
 	jp z, .DidntCatchAnything
 	ld [wCurPartySpecies], a
@@ -14,7 +14,7 @@
 	ld c, a
 	ld b, 0
 	add hl, bc
-	ld a, [wContestMon]
+	ld a, [wContestMonSpecies]
 	ld [hli], a
 	ld [wCurSpecies], a
 	ld a, -1
@@ -80,7 +80,7 @@
 	or b
 	ld [hl], a
 	xor a
-	ld [wContestMon], a
+	ld [wContestMonSpecies], a
 	and a ; BUGCONTEST_CAUGHT_MON
 	ld [wScriptVar], a
 	ret
@@ -87,7 +87,7 @@
 
 .TryAddToBox:
 	ld a, BANK(sBoxCount)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBoxCount
 	ld a, [hl]
 	cp MONS_PER_BOX
@@ -118,7 +118,7 @@
 
 .Box_SkipNickname:
 	ld a, BANK(sBoxMonNicknames)
-	call GetSRAMBank
+	call OpenSRAM
 	ld de, sBoxMonNicknames
 	ld bc, MON_NAME_LENGTH
 	call CopyBytes
@@ -126,13 +126,13 @@
 
 .BoxFull:
 	ld a, BANK(sBoxMon1Level)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sBoxMon1Level]
 	ld [wCurPartyLevel], a
 	call CloseSRAM
 	call SetBoxMonCaughtData
 	ld a, BANK(sBoxMon1CaughtLocation)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBoxMon1CaughtLocation
 	ld a, [hl]
 	and CAUGHT_GENDER_MASK
@@ -200,7 +200,7 @@
 
 SetBoxMonCaughtData:
 	ld a, BANK(sBoxMon1CaughtLevel)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBoxMon1CaughtLevel
 	call SetBoxmonOrEggmonCaughtData
 	call CloseSRAM
@@ -209,7 +209,7 @@
 SetGiftBoxMonCaughtData:
 	push bc
 	ld a, BANK(sBoxMon1CaughtLevel)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBoxMon1CaughtLevel
 	pop bc
 	call SetGiftMonCaughtData
--- a/engine/pokemon/experience.asm
+++ b/engine/pokemon/experience.asm
@@ -93,7 +93,7 @@
 	ldh a, [hProduct + 3]
 	sub b
 	ldh [hMultiplicand + 2], a
-	ld b, $0
+	ld b, 0
 	ldh a, [hProduct + 2]
 	sbc b
 	ldh [hMultiplicand + 1], a
--- a/engine/pokemon/mail.asm
+++ b/engine/pokemon/mail.asm
@@ -18,7 +18,7 @@
 	call AddNTimes
 	push hl
 	ld a, BANK(sMailboxCount)
-	call GetSRAMBank
+	call OpenSRAM
 	ld bc, MAIL_STRUCT_LENGTH
 	call CopyBytes
 	pop hl
@@ -41,7 +41,7 @@
 DeleteMailFromPC:
 ; Shift all mail messages in the mailbox
 	ld a, BANK(sMailboxCount)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, b
 	push bc
 	ld hl, sMailbox
@@ -83,7 +83,7 @@
 
 MoveMailFromPCToParty:
 	ld a, BANK(sMailboxCount)
-	call GetSRAMBank
+	call OpenSRAM
 	push bc
 	ld a, b
 	ld bc, MAIL_STRUCT_LENGTH
@@ -115,7 +115,7 @@
 
 GetMailboxCount:
 	ld a, BANK(sMailboxCount)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sMailboxCount]
 	ld c, a
 	jp CloseSRAM
@@ -137,7 +137,7 @@
 	jr nc, .pop_return
 
 	ld a, BANK(sPartyMail)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [wCurPartyMon]
 	ld hl, sPartyMail
 	ld bc, MAIL_STRUCT_LENGTH
@@ -209,7 +209,7 @@
 	ld hl, wd002
 	ld bc, MAIL_MSG_LENGTH + 1
 	ld a, BANK(sPartyMail)
-	call GetSRAMBank
+	call OpenSRAM
 	call CopyBytes
 	pop af
 	push af
@@ -238,7 +238,7 @@
 
 BackupPartyMonMail:
 	ld a, BANK(sPartyMail)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sPartyMail
 	ld de, sPartyMailBackup
 	ld bc, 6 * MAIL_STRUCT_LENGTH
@@ -251,7 +251,7 @@
 
 RestorePartyMonMail:
 	ld a, BANK(sPartyMail)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sPartyMailBackup
 	ld de, sPartyMail
 	ld bc, 6 * MAIL_STRUCT_LENGTH
@@ -264,7 +264,7 @@
 
 DeletePartyMonMail:
 	ld a, BANK(sPartyMail)
-	call GetSRAMBank
+	call OpenSRAM
 	xor a
 	ld hl, sPartyMail
 	ld bc, 6 * MAIL_STRUCT_LENGTH
@@ -317,7 +317,7 @@
 ; initialize wMailboxCount and beyond with incrementing values, one per mail
 ; set z if no mail
 	ld a, BANK(sMailboxCount)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sMailboxCount]
 	call CloseSRAM
 	ld hl, wMailboxCount
@@ -347,7 +347,7 @@
 	ld bc, MAIL_STRUCT_LENGTH
 	call AddNTimes
 	ld a, BANK(sMailboxCount)
-	call GetSRAMBank
+	call OpenSRAM
 	ld de, wStringBuffer2
 	push de
 	ld bc, NAME_LENGTH - 1
@@ -467,7 +467,7 @@
 .GetMailType:
 	push af
 	ld a, BANK(sMailboxCount)
-	call GetSRAMBank
+	call OpenSRAM
 	pop af
 	ld hl, sMailbox1Type
 	ld bc, MAIL_STRUCT_LENGTH
--- a/engine/pokemon/mail_2.asm
+++ b/engine/pokemon/mail_2.asm
@@ -15,7 +15,7 @@
 	pop de
 	push de
 	ld a, BANK(sPartyMail)
-	call GetSRAMBank
+	call OpenSRAM
 	farcall IsMailEuropean
 	call CloseSRAM
 	ld a, c
@@ -69,7 +69,7 @@
 	ld l, e
 	push hl
 	ld a, BANK(sPartyMail)
-	call GetSRAMBank
+	call OpenSRAM
 	ld de, sPartyMon1MailAuthorID - sPartyMon1Mail
 	add hl, de
 	ld a, [hli]
@@ -680,7 +680,7 @@
 	ld bc, MAIL_STRUCT_LENGTH
 	ld de, wTempMail
 	ld a, BANK(sPartyMail)
-	call GetSRAMBank
+	call OpenSRAM
 	call CopyBytes
 	call CloseSRAM
 	ld hl, wTempMailAuthor
--- a/engine/pokemon/mon_menu.asm
+++ b/engine/pokemon/mon_menu.asm
@@ -466,7 +466,7 @@
 	ld hl, wTempMail
 	ld bc, MAIL_STRUCT_LENGTH
 	ld a, BANK(sPartyMail)
-	call GetSRAMBank
+	call OpenSRAM
 	call CopyBytes
 	call CloseSRAM
 	ret
--- a/engine/pokemon/mon_stats.asm
+++ b/engine/pokemon/mon_stats.asm
@@ -174,7 +174,7 @@
 	ld a, [wMonType]
 	cp BOXMON
 	ld a, BANK(sBox)
-	call z, GetSRAMBank
+	call z, OpenSRAM
 
 ; Attack DV
 	ld a, [hli]
--- a/engine/pokemon/move_mon.asm
+++ b/engine/pokemon/move_mon.asm
@@ -485,7 +485,7 @@
 ; wPokemonWithdrawDepositParameter == 3: put mon into DayCare
 
 	ld a, BANK(sBoxCount)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [wPokemonWithdrawDepositParameter]
 	and a
 	jr z, .check_IfPartyIsFull
@@ -942,7 +942,7 @@
 ; Sends the mon into one of Bills Boxes
 ; the data comes mainly from 'wEnemyMon:'
 	ld a, BANK(sBoxCount)
-	call GetSRAMBank
+	call OpenSRAM
 	ld de, sBoxCount
 	ld a, [de]
 	cp MONS_PER_BOX
@@ -1226,7 +1226,7 @@
 	jr z, .okay
 
 	ld a, BANK(sBoxCount)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBoxCount
 
 .okay
@@ -1336,7 +1336,7 @@
 	ret nz
 	; Shift mail
 	ld a, BANK(sPartyMail)
-	call GetSRAMBank
+	call OpenSRAM
 	; If this is the last mon in our party, no need to shift mail.
 	ld hl, wPartyCount
 	ld a, [wCurPartyMon]
@@ -1735,7 +1735,7 @@
 
 .send_to_box
 	ld a, BANK(sBoxMonOT)
-	call GetSRAMBank
+	call OpenSRAM
 	ld de, sBoxMonOT
 .loop
 	ld a, [wScriptBank]
@@ -1785,7 +1785,7 @@
 	ld hl, WasSentToBillsPCText
 	call PrintText
 	ld a, BANK(sBoxMonNicknames)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wMonOrItemNameBuffer
 	ld de, sBoxMonNicknames
 	ld bc, MON_NAME_LENGTH
--- a/engine/pokemon/move_mon_wo_mail.asm
+++ b/engine/pokemon/move_mon_wo_mail.asm
@@ -1,6 +1,6 @@
 InsertPokemonIntoBox:
 	ld a, BANK(sBoxCount)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBoxCount
 	call InsertSpeciesIntoBoxOrParty
 	ld a, [sBoxCount]
--- a/engine/pokemon/search.asm
+++ b/engine/pokemon/search.asm
@@ -75,7 +75,7 @@
 
 	; Run CheckOwnMon on each Pokémon in the PC.
 	ld a, BANK(sBoxCount)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sBoxCount]
 	and a
 	jr z, .boxes
@@ -119,7 +119,7 @@
 	add hl, bc
 	add hl, bc
 	ld a, [hli]
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [hli]
 	ld h, [hl]
 	ld l, a
--- a/engine/pokemon/stats_screen.asm
+++ b/engine/pokemon/stats_screen.asm
@@ -224,7 +224,7 @@
 StatsScreen_CopyToTempMon:
 	ld a, [wMonType]
 	cp TEMPMON
-	jr nz, .breedmon
+	jr nz, .not_tempmon
 	ld a, [wBufferMonSpecies]
 	ld [wCurSpecies], a
 	call GetBaseData
@@ -234,7 +234,7 @@
 	call CopyBytes
 	jr .done
 
-.breedmon
+.not_tempmon
 	farcall CopyMonToTempMon
 	ld a, [wCurPartySpecies]
 	cp EGG
@@ -251,7 +251,7 @@
 	call GetJoypad
 	ld a, [wMonType]
 	cp TEMPMON
-	jr nz, .notbreedmon
+	jr nz, .not_tempmon
 	push hl
 	push de
 	push bc
@@ -263,11 +263,11 @@
 	and D_DOWN | D_UP
 	jr nz, .set_carry
 	ld a, [wMenuJoypad]
-	jr .clear_flags
+	jr .clear_carry
 
-.notbreedmon
+.not_tempmon
 	ldh a, [hJoyPressed]
-.clear_flags
+.clear_carry
 	and a
 	ret
 
@@ -532,11 +532,11 @@
 
 .Jumptable:
 ; entries correspond to *_PAGE constants
-	dw .PinkPage
-	dw .GreenPage
-	dw .BluePage
+	dw LoadPinkPage
+	dw LoadGreenPage
+	dw LoadBluePage
 
-.PinkPage:
+LoadPinkPage:
 	hlcoord 0, 9
 	ld b, $0
 	predef DrawPlayerHP
@@ -678,7 +678,7 @@
 .PkrsStr:
 	db "#RUS@"
 
-.GreenPage:
+LoadGreenPage:
 	ld de, .Item
 	hlcoord 0, 8
 	call PlaceString
@@ -723,17 +723,17 @@
 .Move:
 	db "MOVE@"
 
-.BluePage:
+LoadBluePage:
 	call .PlaceOTInfo
 	hlcoord 10, 8
 	ld de, SCREEN_WIDTH
 	ld b, 10
 	ld a, $31 ; vertical divider
-.BluePageVerticalDivider:
+.vertical_divider
 	ld [hl], a
 	add hl, de
 	dec b
-	jr nz, .BluePageVerticalDivider
+	jr nz, .vertical_divider
 	hlcoord 11, 8
 	ld bc, 6
 	predef PrintTempMonStats
@@ -890,7 +890,7 @@
 	ld b, h
 	ld c, l
 	ld a, BANK(sBoxMons)
-	call GetSRAMBank
+	call OpenSRAM
 	call .CheckEggFaintedFrzSlp
 	push af
 	call CloseSRAM
@@ -1095,7 +1095,7 @@
 	cp BOXMON
 	jr nz, .partymon
 	ld a, BANK(sBoxMonNicknames)
-	call GetSRAMBank
+	call OpenSRAM
 	push de
 	call CopyBytes
 	pop de
--- a/engine/pokemon/switchpartymons.asm
+++ b/engine/pokemon/switchpartymons.asm
@@ -116,7 +116,7 @@
 	ld de, wd002
 	ld bc, MAIL_STRUCT_LENGTH
 	ld a, BANK(sPartyMail)
-	call GetSRAMBank
+	call OpenSRAM
 	call CopyBytes
 	ld hl, sPartyMail
 	ld a, [wBuffer3]
--- a/engine/pokemon/tempmon.asm
+++ b/engine/pokemon/tempmon.asm
@@ -107,7 +107,7 @@
 
 .boxmon
 	ld a, BANK(sBoxSpecies)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sBoxSpecies
 	call .done
 	call CloseSRAM
--- a/engine/printer/printer.asm
+++ b/engine/printer/printer.asm
@@ -716,7 +716,7 @@
 
 Printer_PrintBoxListSegment:
 	ld a, [wBankOfBoxToPrint]
-	call GetSRAMBank
+	call OpenSRAM
 .loop
 	ld a, c
 	and a
--- a/engine/rtc/reset_password.asm
+++ b/engine/rtc/reset_password.asm
@@ -18,7 +18,7 @@
 	call ClockResetPassword
 	jr c, .wrongpassword
 	ld a, BANK(sRTCStatusFlags)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, $80
 	ld [sRTCStatusFlags], a
 	call CloseSRAM
@@ -216,7 +216,7 @@
 
 .CalculatePassword:
 	ld a, BANK(sPlayerData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld de, 0
 	ld hl, sPlayerData + (wPlayerID - wPlayerData)
 	ld c, 2
--- a/engine/rtc/rtc.asm
+++ b/engine/rtc/rtc.asm
@@ -137,7 +137,7 @@
 	farcall ClearDailyTimers
 	farcall Function170923
 	ld a, BANK(s5_aa8c) ; aka BANK(s5_b2fa)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s5_aa8c]
 	inc a
 	ld [s5_aa8c], a
--- a/home/gfx.asm
+++ b/home/gfx.asm
@@ -118,7 +118,7 @@
 DecompressRequest2bpp::
 	push de
 	ld a, BANK(sScratch)
-	call GetSRAMBank
+	call OpenSRAM
 	push bc
 
 	ld de, sScratch
--- a/home/init.asm
+++ b/home/init.asm
@@ -205,7 +205,7 @@
 ; Wipe the first 32 bytes of sScratch
 
 	ld a, BANK(sScratch)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sScratch
 	ld bc, $20
 	xor a
--- a/home/sram.asm
+++ b/home/sram.asm
@@ -1,11 +1,10 @@
-GetSRAMBank::
-; load sram bank a
+OpenSRAM::
 ; if invalid bank, sram is disabled
 	cp NUM_SRAM_BANKS
-	jr c, OpenSRAM
+	jr c, .valid
 	jr CloseSRAM
 
-OpenSRAM::
+.valid:
 ; switch to sram bank a
 	push af
 ; latch clock data
--- a/home/time.asm
+++ b/home/time.asm
@@ -261,7 +261,7 @@
 	xor a
 	push af
 	ld a, BANK(sRTCStatusFlags)
-	call GetSRAMBank
+	call OpenSRAM
 	pop af
 	ld [sRTCStatusFlags], a
 	call CloseSRAM
@@ -272,7 +272,7 @@
 	ld hl, sRTCStatusFlags
 	push af
 	ld a, BANK(sRTCStatusFlags)
-	call GetSRAMBank
+	call OpenSRAM
 	pop af
 	or [hl]
 	ld [hl], a
@@ -282,7 +282,7 @@
 CheckRTCStatus::
 ; check sRTCStatusFlags
 	ld a, BANK(sRTCStatusFlags)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sRTCStatusFlags]
 	call CloseSRAM
 	ret
--- a/mobile/fixed_words.asm
+++ b/mobile/fixed_words.asm
@@ -340,7 +340,7 @@
 Function11c254:
 	push af
 	ld a, $4
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, s4_a007
 	pop af
 	sla a
@@ -1763,7 +1763,7 @@
 	and a
 	jr nz, .asm_11cbd4
 	ld a, $4
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, s4_a007
 	ld a, [wMenuCursorY]
 	dec a
--- a/mobile/mobile_12_2.asm
+++ b/mobile/mobile_12_2.asm
@@ -21,7 +21,7 @@
 	dec d
 	jr nz, .asm_4a851
 	ld a, BANK(sBoxCount)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sBoxCount]
 	and a
 	jr z, .asm_4a888
@@ -57,7 +57,7 @@
 	add hl, bc
 	add hl, bc
 	ld a, [hli]
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [hli]
 	ld h, [hl]
 	ld l, a
--- a/mobile/mobile_22.asm
+++ b/mobile/mobile_22.asm
@@ -15,7 +15,7 @@
 OpenSRAMBank4:
 	push af
 	ld a, $4
-	call GetSRAMBank
+	call OpenSRAM
 	pop af
 	ret
 
--- a/mobile/mobile_40.asm
+++ b/mobile/mobile_40.asm
@@ -1092,7 +1092,7 @@
 MobileBattleResetTimer:
 	ld a, BANK(sMobileBattleTimer)
 	ld hl, sMobileBattleTimer
-	call GetSRAMBank
+	call OpenSRAM
 	xor a
 	ld [hli], a
 	ld [hli], a
@@ -1103,7 +1103,7 @@
 MobileBattleFixTimer:
 	ld a, BANK(sMobileBattleTimer)
 	ld hl, sMobileBattleTimer
-	call GetSRAMBank
+	call OpenSRAM
 	xor a ; MOBILE_BATTLE_ALLOWED_SECONDS
 	ld [hli], a
 	ld a, MOBILE_BATTLE_ALLOWED_MINUTES
@@ -1125,7 +1125,7 @@
 	ld [wcd74], a
 	ld a, BANK(sMobileBattleTimer)
 	ld hl, sMobileBattleTimer
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [hli]
 	ld [wcd6c], a
 	ld a, [hli]
@@ -1248,7 +1248,7 @@
 	ld de, wcd71
 	call Function1006dc
 	ld a, $04
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, $a802
 	call Function100826
 	call CloseSRAM
@@ -1338,7 +1338,7 @@
 ; Returns minutes in c and seconds in b
 	ld a, BANK(sMobileBattleTimer)
 	ld hl, sMobileBattleTimer
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [hli]
 	ld [wStringBuffer2], a
 	ld a, [hli]
@@ -2374,7 +2374,7 @@
 	ret
 
 .sram
-	call GetSRAMBank
+	call OpenSRAM
 	call CopyBytes
 	call CloseSRAM
 	ret
@@ -2428,7 +2428,7 @@
 	inc hl
 	ld [hl], d
 	ld a, $07
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wc608
 	ld de, $a001
 	ld bc, wc7bd - wc608
@@ -2654,7 +2654,7 @@
 
 Function1011f1:
 	ld a, BANK(s4_a60c)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s4_a60c]
 	ld [wdc41], a
 	call CloseSRAM
@@ -4659,7 +4659,7 @@
 	ld d, h
 	ld e, l
 	ld a, $04
-	call GetSRAMBank
+	call OpenSRAM
 	call Function10208e
 	call Function102068
 	call CloseSRAM
@@ -4695,7 +4695,7 @@
 
 Function102112:
 	ld a, $04
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, $a041
 	ld c, 40
 .outer_loop
@@ -6254,7 +6254,7 @@
 Function102c48:
 	farcall Function10165a
 	ld a, 0
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, $a600
 	ld de, wc608
 	ld bc, $2f
@@ -6364,7 +6364,7 @@
 	ret
 
 Function102d3e:
-	call GetSRAMBank
+	call OpenSRAM
 	call CopyBytes
 	call CloseSRAM
 	ret
@@ -6909,7 +6909,7 @@
 	xor a
 	call ByteFill
 	ld a, BANK(s4_a60c)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [wdc41]
 	ld [s4_a60c], a
 	ld [wBuffer1], a
@@ -6961,7 +6961,7 @@
 	bit 6, [hl]
 	jr z, .asm_103398
 	ld a, BANK(s4_a60c)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [wBuffer1]
 	ld [s4_a60c], a
 	ld [wdc41], a
--- a/mobile/mobile_41.asm
+++ b/mobile/mobile_41.asm
@@ -5,7 +5,7 @@
 StubbedTrainerRankings_HallOfFame2::
 	ret
 	ld a, BANK(sTrainerRankingGameTimeHOF)
-	call GetSRAMBank
+	call OpenSRAM
 
 	ld hl, wGameTimeHours
 	ld de, sTrainerRankingGameTimeHOF
@@ -36,7 +36,7 @@
 StubbedTrainerRankings_MagikarpLength:
 	ret
 	ld a, BANK(sTrainerRankingLongestMagikarp)
-	call GetSRAMBank
+	call OpenSRAM
 	ld de, wBuffer1
 	ld hl, sTrainerRankingLongestMagikarp
 
@@ -104,7 +104,7 @@
 StubbedTrainerRankings_BugContestScore:
 	ret
 	ld a, BANK(sTrainerRankingBugContestScore)
-	call GetSRAMBank
+	call OpenSRAM
 	ldh a, [hProduct]
 	ld hl, sTrainerRankingBugContestScore
 	cp [hl]
@@ -133,7 +133,7 @@
 StubbedTrainerRankings_AddToSlotsWinStreak:
 	ret
 	ld a, BANK(sTrainerRankingCurrentSlotsStreak)
-	call GetSRAMBank
+	call OpenSRAM
 
 	; Increment the current streak
 	ld hl, sTrainerRankingCurrentSlotsStreak + 1
@@ -173,7 +173,7 @@
 StubbedTrainerRankings_EndSlotsWinStreak:
 	ret
 	ld a, BANK(sTrainerRankingCurrentSlotsStreak)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sTrainerRankingCurrentSlotsStreak
 	xor a
 	ld [hli], a
@@ -185,7 +185,7 @@
 StubbedTrainerRankings_AddToSlotsPayouts:
 	ret
 	ld a, BANK(sTrainerRankingTotalSlotsPayouts)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sTrainerRankingTotalSlotsPayouts + 3
 	ld a, e
 	add [hl]
@@ -213,7 +213,7 @@
 StubbedTrainerRankings_AddToBattlePayouts:
 	ret
 	ld a, BANK(sTrainerRankingTotalBattlePayouts)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sTrainerRankingTotalBattlePayouts + 3
 	ld a, [bc]
 	dec bc
@@ -248,7 +248,7 @@
 Unreferenced_StubbedTrainerRankings_BattleTowerWins:
 	ret
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [$aa8d]
 	and a
 	call CloseSRAM
@@ -439,7 +439,7 @@
 ; Increments a big-endian value of bc + 1 bytes at hl
 StubbedTrainerRankings_Increment:
 	ld a, BANK(sTrainerRankings)
-	call GetSRAMBank
+	call OpenSRAM
 	push hl
 	push de
 	ld e, c
@@ -476,7 +476,7 @@
 UpdateTrainerRankingsChecksum2:
 	ret
 	ld a, BANK(sTrainerRankings)
-	call GetSRAMBank
+	call OpenSRAM
 	call UpdateTrainerRankingsChecksum
 	call CloseSRAM
 	ret
@@ -515,11 +515,11 @@
 
 BackupMobileEventIndex:
 	ld a, BANK(sMobileEventIndex)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sMobileEventIndex]
 	push af
 	ld a, BANK(sMobileEventIndexBackup)
-	call GetSRAMBank
+	call OpenSRAM
 	pop af
 	ld [sMobileEventIndexBackup], a
 	call CloseSRAM
@@ -527,11 +527,11 @@
 
 RestoreMobileEventIndex:
 	ld a, BANK(sMobileEventIndexBackup)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sMobileEventIndexBackup]
 	push af
 	ld a, BANK(sMobileEventIndex)
-	call GetSRAMBank
+	call OpenSRAM
 	pop af
 	ld [sMobileEventIndex], a
 	call CloseSRAM
@@ -550,7 +550,7 @@
 
 DeleteMobileEventIndex:
 	ld a, BANK(sMobileEventIndex)
-	call GetSRAMBank
+	call OpenSRAM
 	xor a
 	ld [sMobileEventIndex], a
 	call CloseSRAM
@@ -791,13 +791,13 @@
 Stubbed_Function106314:
 	ret
 	ld a, $4
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, c
 	cpl
 	ld [$b000], a
 	call CloseSRAM
 	ld a, $7
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, c
 	ld [$a800], a
 	call CloseSRAM
@@ -811,13 +811,13 @@
 ; called by Mobile_DummyReturnFalse in Crystal-J
 	; check ~[4:b000] == [7:a800]
 	ld a, $4
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [$b000]
 	cpl
 	ld b, a
 	call CloseSRAM
 	ld a, $7
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [$a800]
 	ld c, a
 	call CloseSRAM
--- a/mobile/mobile_45_stadium.asm
+++ b/mobile/mobile_45_stadium.asm
@@ -20,7 +20,7 @@
 	ldh [rSVBK], a
 	call Function1176ee
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, $b1f3
 	ld de, wcd49
 	ld bc, $8
@@ -35,7 +35,7 @@
 
 Function117699:
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wcd49
 	ld de, $b1f3
 	ld bc, $8
@@ -408,7 +408,7 @@
 	ld a, $1e
 	ld [wcd4e], a
 	ld a, BANK(sMobileLoginPassword)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [wcd4f]
 	ld [sMobileLoginPassword], a
 	ld hl, $c708
@@ -729,7 +729,7 @@
 	ld a, $3
 	ldh [rSVBK], a
 	ld a, $7
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, w3_d002
 	ld de, $b000
 	ld bc, $1000
@@ -773,7 +773,7 @@
 
 Function117c89:
 	ld a, $7
-	call GetSRAMBank
+	call OpenSRAM
 	ld l, $0
 	ld h, l
 	ld de, $b000
--- a/mobile/mobile_46.asm
+++ b/mobile/mobile_46.asm
@@ -184,7 +184,7 @@
 	and a
 	ret z
 	ld a, BANK(s5_a89c) ; aka BANK(s5_a8b2)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wcd69
 	ld de, s5_a89c
 	ld bc, 22
@@ -478,7 +478,7 @@
 	farcall Function115d99
 	farcall Function11615a
 	ld a, BANK(s5_bfff)
-	call GetSRAMBank
+	call OpenSRAM
 	xor a
 	ld [s5_bfff], a
 	call CloseSRAM
@@ -487,7 +487,7 @@
 Function118440:
 	push af
 	ld a, BANK(s5_bfff)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s5_bfff]
 	inc a
 	ld [s5_bfff], a
@@ -1091,7 +1091,7 @@
 Function1188e7:
 	ld de, wc346
 	ld a, BANK(s5_aa4a)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s5_aa4a]
 	call CloseSRAM
 	and a
@@ -1521,7 +1521,7 @@
 	add b
 	ld b, a
 	ld a, BANK(s5_b2fb)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, b
 	ld [s5_b2fb], a
 	call CloseSRAM
@@ -1942,7 +1942,7 @@
 
 Function119054:
 	ld a, $6
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wd002
 	ld a, [wcd4f]
 	ld e, a
@@ -1972,7 +1972,7 @@
 	ld a, $3 ; ???
 	ldh [rSVBK], a
 	ld a, BANK(s5_b1b3) ; aka BANK(s5_b1b4) and BANK(s5_aa7f) and BANK(s5_b2f3) and BANK(s5_b2f4)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [wcd4f]
 	ld [s5_b1b3], a
 	ld a, [wcd50]
@@ -2012,7 +2012,7 @@
 
 Function1190ec:
 	ld a, BANK(s5_aa73)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wBGMapBuffer
 	ld de, s5_aa73
 	ld bc, 12
@@ -2019,12 +2019,12 @@
 	call CopyBytes
 	call CloseSRAM
 	ld a, BANK(s5_aa72)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, $1
 	ld [s5_aa72], a
 	call CloseSRAM
 	ld a, BANK(s6_a000)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [w3_d000]
 	ld c, a
 	ld a, [w3_d000 + 1]
@@ -2069,7 +2069,7 @@
 	ld bc, 12
 	call CopyBytes
 	ld a, BANK(s5_aa7f)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wBGMapBuffer
 	ld de, s5_aa7f
 	ld c, 12
@@ -2201,7 +2201,7 @@
 	ld [wcd4b], a
 	ld [wcd4c], a
 	ld a, BANK(s5_b092) ; aka BANK(s5_b1b1) and BANK(s5_b1b2) and BANK(s5_b1d3)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wc3cd
 	ld de, s5_b092
 	ld bc, 31
@@ -2237,7 +2237,7 @@
 	jr z, .asm_1192c2
 	cp $fe
 	jr z, .asm_1192a5
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [de]
 	inc de
 	ld c, a
@@ -2308,7 +2308,7 @@
 
 Function1192cc:
 	ld a, BANK(s5_aa73)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, s5_aa73
 	ld de, wc608
 	ld bc, 12
@@ -2369,7 +2369,7 @@
 	ld [wcd4c], a
 	ld a, [de]
 	inc de
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [de]
 	inc de
 	ld c, a
@@ -2499,7 +2499,7 @@
 
 Function119413:
 	ld a, $6 ; ???
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [w3_d000]
 	ld c, a
 	ld a, [w3_d000 + 1]
@@ -3580,7 +3580,7 @@
 	cp $1
 	jr nz, .asm_119b66
 	ld a, BANK(s5_a800)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, $4
 	ld [s5_a800], a
 	call CloseSRAM
@@ -3680,7 +3680,7 @@
 	ld a, $19
 	ld [wBattleTowerRoomMenuJumptableIndex], a
 	ld a, BANK(s5_a800)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, $1
 	ld [s5_a800], a
 	call CloseSRAM
@@ -3700,7 +3700,7 @@
 	cp HIGH(w3_d869)
 	jr nz, .asm_119be3
 	ld a, BANK(s5_b090) ; aka BANK(s5_b091) and BANK(s5_b023)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [wcf64]
 	ld [s5_b090], a
 	ld a, [wcf65]
@@ -3750,7 +3750,7 @@
 	ld a, $19
 	ld [wBattleTowerRoomMenuJumptableIndex], a
 	ld a, BANK(s5_a800)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, $1
 	ld [s5_a800], a
 	call CloseSRAM
@@ -4123,7 +4123,7 @@
 
 Function119ec2:
 	ld a, BANK(sMobileLoginPassword)
-	call GetSRAMBank
+	call OpenSRAM
 	xor a
 	ld [sMobileLoginPassword + MOBILE_LOGIN_PASSWORD_LENGTH], a
 	ld de, sMobileLoginPassword + 1
@@ -4288,7 +4288,7 @@
 
 Function11a00e:
 	ld a, BANK(sMobileLoginPassword)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sMobileLoginPassword]
 	and a
 	jr z, .asm_11a02a
@@ -4297,7 +4297,7 @@
 	and a
 	ret nz
 	ld a, BANK(sMobileLoginPassword)
-	call GetSRAMBank
+	call OpenSRAM
 	xor a
 	ld [sMobileLoginPassword], a
 
@@ -6955,7 +6955,7 @@
 
 .okay4
 	ld a, BANK(sPartyMail)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, MAIL_STRUCT_LENGTH
 .loop9
 	push af
@@ -7033,7 +7033,7 @@
 	ld a, $1
 	ldh [rSVBK], a
 	ld a, BANK(s5_a800)
-	call GetSRAMBank
+	call OpenSRAM
 
 	ld de, s5_a800
 	ld a, $1
@@ -7079,7 +7079,7 @@
 
 Function11b5e8:
 	ld a, $0
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wRTC
 	ld de, $c608
 	ld bc, 4
@@ -7086,7 +7086,7 @@
 	call CopyBytes
 	call CloseSRAM
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, $c608
 	ld de, $b08c
 	ld bc, 4
@@ -7174,7 +7174,7 @@
 
 Function11b6b4:
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [wcd30]
 	ld [$c708], a
 	ld a, [wcd31]
@@ -7347,7 +7347,7 @@
 	ld [wLinkMode], a
 	farcall SaveAfterLinkTrade
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, $5
 	ld [$a800], a
 	call CloseSRAM
@@ -7373,7 +7373,7 @@
 	and a
 	ret z
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [$a800]
 	ld [wScriptVar], a
 	ld a, [$a890]
@@ -7462,7 +7462,7 @@
 Function11b920:
 	call Mobile46_InitJumptable
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, $a81f
 	ld de, $c626
 	ld bc, 8
@@ -7473,7 +7473,7 @@
 
 Function11b93b:
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	xor a
 	ld [$a800], a
 	ld hl, $a823
@@ -7600,7 +7600,7 @@
 	and a
 	jr nz, .loop5
 	ld a, BANK(sPartyMail)
-	call GetSRAMBank
+	call OpenSRAM
 	ld e, l
 	ld d, h
 	ld a, [wMobileMonMailPointerBuffer]
--- a/mobile/mobile_5c.asm
+++ b/mobile/mobile_5c.asm
@@ -37,7 +37,7 @@
 
 Function17005a:
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [$a824]
 	ld [wOTTrademonSpecies], a
 	ld hl, $a827
@@ -75,7 +75,7 @@
 
 Function170be4:
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	xor a
 	ld hl, $a894
 	ld bc, $0008
@@ -85,7 +85,7 @@
 
 Clears5_a89a:
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, $a89a
 	xor a
 	ld [hli], a
@@ -95,7 +95,7 @@
 
 Function170c06:
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, $a894
 	ld a, [wBattleResult]
 	and a ; WIN?
@@ -589,7 +589,7 @@
 
 Function171beb:
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [wcd4a]
 	ld [$aa4a], a
 	call CloseSRAM
--- a/mobile/mobile_5f.asm
+++ b/mobile/mobile_5f.asm
@@ -302,7 +302,7 @@
 	ld [wLinkMode], a
 	farcall SaveAfterLinkTrade
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, $5
 	ld [$a800], a
 	call CloseSRAM
@@ -508,7 +508,7 @@
 
 Function17d2ce:
 	ld a, BANK(s5_aa72)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s5_aa72]
 	call CloseSRAM
 	and a
@@ -543,13 +543,13 @@
 
 Function17d314:
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [$b1b1]
 	call CloseSRAM
 	cp $21
 	jr nc, .asm_17d354
 	ld a, $6
-	call GetSRAMBank
+	call OpenSRAM
 	ld l, $0
 	ld h, l
 	ld de, $a006
@@ -582,7 +582,7 @@
 .asm_17d354
 	call CloseSRAM
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	xor a
 	ld hl, $aa73
 	ld bc, $c
@@ -636,7 +636,7 @@
 	ld a, $d0
 	ld [wcd21], a
 	ld a, $6
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, $a006
 	ld de, wBGPals1
 	ld bc, $1000
@@ -948,7 +948,7 @@
 
 Function17d60b:
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, $b1d3
 	ld de, wc608
 	ld bc, $20
@@ -963,7 +963,7 @@
 	ld h, a
 	call CloseSRAM
 	ld a, $6
-	call GetSRAMBank
+	call OpenSRAM
 	ld de, wc708
 	ld a, c
 	and a
@@ -1023,7 +1023,7 @@
 .asm_17d684
 	call CloseSRAM
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wc708
 	ld de, $b1b3
 	ld a, [$b1b1]
@@ -1040,7 +1040,7 @@
 	ld c, a
 	ld b, $0
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, $b1d3
 	add hl, bc
 	add hl, bc
@@ -1058,7 +1058,7 @@
 	ld l, c
 	call CloseSRAM
 	ld a, $6
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, l
 	ld [wcd5e], a
 	ld a, h
@@ -1177,7 +1177,7 @@
 	ld b, a
 	call HlToCrashCheckPointer
 	ld a, $6
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, $a006
 	add hl, bc
 	ld de, wBGPals1
@@ -1330,7 +1330,7 @@
 
 .asm_17d89b
 	ld a, [wcd4f]
-	call GetSRAMBank
+	call OpenSRAM
 
 .asm_17d8a1
 	push hl
@@ -1511,7 +1511,7 @@
 
 .asm_17da01
 	ld a, [wc70c]
-	call GetSRAMBank
+	call OpenSRAM
 
 .asm_17da07
 	ld a, [wc708]
@@ -1556,7 +1556,7 @@
 
 .asm_17da4f
 	ld a, [wc70a]
-	call GetSRAMBank
+	call OpenSRAM
 
 .asm_17da55
 	ld a, [wc708]
@@ -2021,7 +2021,7 @@
 
 .sram
 	ld a, [wc708]
-	call GetSRAMBank
+	call OpenSRAM
 
 .got_bank
 	ld a, [wc709]
@@ -2097,7 +2097,7 @@
 
 .asm_17dde7
 	ld a, [wc708]
-	call GetSRAMBank
+	call OpenSRAM
 
 .asm_17dded
 	ld a, [wc709]
@@ -2154,7 +2154,7 @@
 	ld b, $0
 	call CopyBytes
 	ld a, $6
-	call GetSRAMBank
+	call OpenSRAM
 	call Function17f4f6
 	ld a, [wc708]
 	ld e, a
@@ -2208,7 +2208,7 @@
 	ld bc, $7
 	call CopyBytes
 	ld a, $6
-	call GetSRAMBank
+	call OpenSRAM
 	call Function17f4f6
 	ld a, [wc708]
 	ld e, a
@@ -2452,7 +2452,7 @@
 
 Function17e026:
 	ld a, BANK(sBoxCount)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sBoxCount]
 	call CloseSRAM
 	cp $14
@@ -2467,7 +2467,7 @@
 	pop hl
 	pop bc
 	ld a, BANK(sBoxMonNicknames)
-	call GetSRAMBank
+	call OpenSRAM
 	bit 1, b
 	jr z, .asm_17e067
 	push bc
@@ -2494,7 +2494,7 @@
 	call CloseSRAM
 	farcall SetGiftBoxMonCaughtData
 	ld a, $1
-	call GetSRAMBank
+	call OpenSRAM
 	pop hl
 	pop bc
 	jr .asm_17e092
@@ -2696,7 +2696,7 @@
 
 .asm_17e1bb
 	ld a, [wc708]
-	call GetSRAMBank
+	call OpenSRAM
 
 .asm_17e1c1
 	ld a, [wc709]
@@ -2728,7 +2728,7 @@
 
 .asm_17e1f3
 	ld a, [wc70c]
-	call GetSRAMBank
+	call OpenSRAM
 
 .asm_17e1f9
 	ld a, [wc70d]
@@ -2890,7 +2890,7 @@
 	xor a
 	ld [wcd7a], a
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, $aa73
 	ld de, $aa7f
 	ld bc, $c
@@ -2926,7 +2926,7 @@
 
 Function17e32b:
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, wc608
 	ld de, $b0b1
 	ld bc, $40
@@ -2939,7 +2939,7 @@
 
 Function17e349:
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, $b0b1
 	ld de, wc608
 	ld bc, $40
@@ -3541,7 +3541,7 @@
 
 RunMobileScript::
 	ld a, $6
-	call GetSRAMBank
+	call OpenSRAM
 	inc de
 .loop
 	call _RunMobileScript
@@ -4082,13 +4082,13 @@
 	bit 7, a
 	jr nz, .asm_17f355
 	ld a, BANK(sCrystalData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [sCrystalData + 2]
 	jr .asm_17f35d
 
 .asm_17f355
 	ld a, BANK(s5_b2f3)
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [s5_b2f3]
 
 .asm_17f35d
@@ -4125,13 +4125,13 @@
 	bit 7, a
 	jr nz, .asm_17f3a3
 	ld a, BANK(sCrystalData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld de, sCrystalData + 3
 	jr .asm_17f3ab
 
 .asm_17f3a3
 	ld a, BANK(s5_b2f4)
-	call GetSRAMBank
+	call OpenSRAM
 	ld de, s5_b2f4
 
 .asm_17f3ab
@@ -4299,7 +4299,7 @@
 
 .asm_17f488
 	ld a, [wcd54]
-	call GetSRAMBank
+	call OpenSRAM
 
 .asm_17f48e
 	ld a, [wcd55]
@@ -4321,7 +4321,7 @@
 .asm_17f4af
 	call CloseSRAM
 	ld a, $6
-	call GetSRAMBank
+	call OpenSRAM
 
 .asm_17f4b7
 	ld de, wc608
@@ -4491,7 +4491,7 @@
 
 .asm_17f5a1
 	ld a, BANK(sMobileLoginPassword)
-	call GetSRAMBank
+	call OpenSRAM
 	xor a
 	ld [sMobileLoginPassword], a
 	call CloseSRAM
--- a/mobile/mobile_menu.asm
+++ b/mobile/mobile_menu.asm
@@ -180,7 +180,7 @@
 	ld a, 2
 	call MenuClickSound
 	ld a, BANK(sPlayerData)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sPlayerData + wPlayerName - wPlayerData
 	ld de, wPlayerName
 	ld bc, NAME_LENGTH_JAPANESE
@@ -378,7 +378,7 @@
 	call WaitBGMap
 	call LoadStandardMenuHeader
 	ld a, $5
-	call GetSRAMBank
+	call OpenSRAM
 	ld a, [$aa4b]
 	call CloseSRAM
 	and a
@@ -429,7 +429,7 @@
 	cp $2
 	jr z, .dont_delete_password
 	ld a, BANK(sMobileLoginPassword)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, sMobileLoginPassword
 	xor a
 	ld bc, MOBILE_LOGIN_PASSWORD_LENGTH
--- a/mobile/news/news.asm
+++ b/mobile/news/news.asm
@@ -4,7 +4,7 @@
 
 Unreferenced_Function1f4003:
 	ld a, BANK(s6_a000)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, .news_data
 	ld de, s6_a000
 	ld bc, $1000
@@ -17,7 +17,7 @@
 
 Unreferenced_Function1f4dbe:
 	ld a, BANK(s6_a000)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, .news_data
 	ld de, s6_a000
 	ld bc, $1000
@@ -30,7 +30,7 @@
 
 Function1f5d9f:
 	ld a, BANK(s6_a000)
-	call GetSRAMBank
+	call OpenSRAM
 	ld hl, .news_data
 	ld de, s6_a000
 	ld bc, $1000