You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Document switches to BANK(sScratch) via xor a
This commit is contained in:
@@ -975,7 +975,7 @@ BattleAnimCmd_RaiseSub: ; cc640 (33:4640)
|
|||||||
push af
|
push af
|
||||||
ld a, 1 ; unnecessary bankswitch?
|
ld a, 1 ; unnecessary bankswitch?
|
||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
xor a
|
xor a ; effectively ld a, BANK(sScratch)
|
||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
|
|
||||||
GetSubstitutePic: ; cc64c
|
GetSubstitutePic: ; cc64c
|
||||||
@@ -1049,7 +1049,7 @@ BattleAnimCmd_MinimizeOpp: ; cc6cf (33:46cf)
|
|||||||
push af
|
push af
|
||||||
ld a, 1 ; unnecessary bankswitch?
|
ld a, 1 ; unnecessary bankswitch?
|
||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
xor a
|
xor a ; effectively ld a, BANK(sScratch)
|
||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
call GetMinimizePic
|
call GetMinimizePic
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
@@ -1105,7 +1105,7 @@ BattleAnimCmd_Minimize: ; cc735 (33:4735)
|
|||||||
push af
|
push af
|
||||||
ld a, 1 ; unnecessary bankswitch?
|
ld a, 1 ; unnecessary bankswitch?
|
||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
xor a
|
xor a ; effectively ld a, BANK(sScratch)
|
||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
call GetMinimizePic
|
call GetMinimizePic
|
||||||
ld hl, vTiles0 tile $00
|
ld hl, vTiles0 tile $00
|
||||||
|
@@ -178,7 +178,7 @@ UnownPrinter: ; 16be4
|
|||||||
hlcoord 1, 9
|
hlcoord 1, 9
|
||||||
ld de, UnownDexVacantString
|
ld de, UnownDexVacantString
|
||||||
call PlaceString
|
call PlaceString
|
||||||
xor a
|
xor a ; effectively ld a, BANK(sScratch)
|
||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
ld hl, sScratch
|
ld hl, sScratch
|
||||||
ld bc, $31 tiles
|
ld bc, $31 tiles
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
RotateUnownFrontpic: ; e0000
|
RotateUnownFrontpic: ; e0000
|
||||||
; something to do with Unown printer
|
; something to do with Unown printer
|
||||||
push de
|
push de
|
||||||
xor a
|
xor a ; effectively ld a, BANK(sScratch)
|
||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
ld hl, sScratch
|
ld hl, sScratch
|
||||||
ld bc, 0
|
ld bc, 0
|
||||||
|
Reference in New Issue
Block a user