diff options
| author | Adelaide Walter <adelaidekwalter@gmail.com> | 2018-01-04 16:51:50 -0500 | 
|---|---|---|
| committer | Adelaide Walter <adelaidekwalter@gmail.com> | 2018-01-04 16:51:50 -0500 | 
| commit | ce985a09a7802d90519997de032720e6c5eca6d0 (patch) | |
| tree | d4d31cd393ecf99b85b4b19c92dd185f0265cf7c | |
| parent | 36e91c971cb3cc82927fa09f9f011aa6c3df0a23 (diff) | |
Document switches to BANK(sScratch) via xor a
| -rw-r--r-- | engine/battle_anims/anim_commands.asm | 6 | ||||
| -rw-r--r-- | engine/events/print_unown.asm | 2 | ||||
| -rw-r--r-- | engine/events/print_unown_2.asm | 2 | 
3 files changed, 5 insertions, 5 deletions
| diff --git a/engine/battle_anims/anim_commands.asm b/engine/battle_anims/anim_commands.asm index b91aa8c6c..f3b2ee46d 100644 --- a/engine/battle_anims/anim_commands.asm +++ b/engine/battle_anims/anim_commands.asm @@ -975,7 +975,7 @@ BattleAnimCmd_RaiseSub: ; cc640 (33:4640)  	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 @@ BattleAnimCmd_MinimizeOpp: ; cc6cf (33:46cf)  	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 @@ BattleAnimCmd_Minimize: ; cc735 (33:4735)  	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 diff --git a/engine/events/print_unown.asm b/engine/events/print_unown.asm index 4a4367e13..3dfee282d 100644 --- a/engine/events/print_unown.asm +++ b/engine/events/print_unown.asm @@ -178,7 +178,7 @@ UnownPrinter: ; 16be4  	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 diff --git a/engine/events/print_unown_2.asm b/engine/events/print_unown_2.asm index c932ded38..287ae7537 100644 --- 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 | 
