shithub: pokecrystal

Download patch

ref: 6c5cd7a963fb2b5eed109aeef25f041eabba0004
parent: 94f32db7bc4a5e4e4d8837d3110d0876146783af
author: Adelaide Walter <adelaidekwalter@gmail.com>
date: Mon Jan 8 18:07:46 EST 2018

Simplify comments per Rangi's rec.

--- 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 ; effectively ld a, BANK(sScratch)
+	xor a ; sScratch
 	call GetSRAMBank
 
 GetSubstitutePic: ; cc64c
@@ -1049,7 +1049,7 @@
 	push af
 	ld a, 1 ; unnecessary bankswitch?
 	ld [rSVBK], a
-	xor a ; effectively ld a, BANK(sScratch)
+	xor a ; sScratch
 	call GetSRAMBank
 	call GetMinimizePic
 	call Request2bpp
@@ -1105,7 +1105,7 @@
 	push af
 	ld a, 1 ; unnecessary bankswitch?
 	ld [rSVBK], a
-	xor a ; effectively ld a, BANK(sScratch)
+	xor a ; 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 ; effectively ld a, BANK(sScratch)
+	xor a ; 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 ; effectively ld a, BANK(sScratch)
+	xor a ; sScratch
 	call GetSRAMBank
 	ld hl, sScratch
 	ld bc, 0
--- a/engine/menu.asm
+++ b/engine/menu.asm
@@ -730,7 +730,7 @@
 	ld a, [VramState]
 	bit 0, a
 	ret z
-	xor a ; effectively ld a, BANK(sScratch)
+	xor a ; sScratch
 	call GetSRAMBank
 	hlcoord 0, 0
 	ld de, sScratch
@@ -738,7 +738,7 @@
 	call CopyBytes
 	call CloseSRAM
 	call OverworldTextModeSwitch
-	xor a ; effectively ld a, BANK(sScratch)
+	xor a ; sScratch
 	call GetSRAMBank
 	ld hl, sScratch
 	decoord 0, 0