shithub: pokecrystal

Download patch

ref: ce985a09a7802d90519997de032720e6c5eca6d0
parent: 36e91c971cb3cc82927fa09f9f011aa6c3df0a23
author: Adelaide Walter <adelaidekwalter@gmail.com>
date: Thu Jan 4 11:51:50 EST 2018

Document switches to BANK(sScratch) via xor a

--- a/engine/battle_anims/anim_commands.asm
+++ b/engine/battle_anims/anim_commands.asm
@@ -975,7 +975,7 @@
 	push af
 	ld a, 1 ; unnecessary bankswitch?
 	ld [rSVBK], a
-	xor a
+	xor a ; effectively ld a, BANK(sScratch)
 	call GetSRAMBank
 
 GetSubstitutePic: ; cc64c
@@ -1049,7 +1049,7 @@
 	push af
 	ld a, 1 ; unnecessary bankswitch?
 	ld [rSVBK], a
-	xor a
+	xor a ; effectively ld a, BANK(sScratch)
 	call GetSRAMBank
 	call GetMinimizePic
 	call Request2bpp
@@ -1105,7 +1105,7 @@
 	push af
 	ld a, 1 ; unnecessary bankswitch?
 	ld [rSVBK], a
-	xor a
+	xor a ; effectively ld a, BANK(sScratch)
 	call GetSRAMBank
 	call GetMinimizePic
 	ld hl, vTiles0 tile $00
--- a/engine/events/print_unown.asm
+++ b/engine/events/print_unown.asm
@@ -178,7 +178,7 @@
 	hlcoord 1, 9
 	ld de, UnownDexVacantString
 	call PlaceString
-	xor a
+	xor a ; effectively ld a, BANK(sScratch)
 	call GetSRAMBank
 	ld hl, sScratch
 	ld bc, $31 tiles
--- a/engine/events/print_unown_2.asm
+++ b/engine/events/print_unown_2.asm
@@ -1,7 +1,7 @@
 RotateUnownFrontpic: ; e0000
 ; something to do with Unown printer
 	push de
-	xor a
+	xor a ; effectively ld a, BANK(sScratch)
 	call GetSRAMBank
 	ld hl, sScratch
 	ld bc, 0