mirror of https://github.com/pret/pokecrystal.git
Use `VRAM_End` in place of `sScratch`
This commit is contained in:
parent
597701f168
commit
20dc31115e
|
@ -127,17 +127,17 @@ endr
|
|||
ret
|
||||
|
||||
DebugColor_InitVRAM:
|
||||
ld a, BANK(vTiles3)
|
||||
ld a, $1
|
||||
ldh [rVBK], a
|
||||
ld hl, vTiles3
|
||||
ld bc, sScratch - vTiles3
|
||||
ld hl, VRAM_Begin
|
||||
ld bc, VRAM_End - VRAM_Begin
|
||||
xor a
|
||||
call ByteFill
|
||||
|
||||
ld a, BANK(vTiles0)
|
||||
ld a, $0
|
||||
ldh [rVBK], a
|
||||
ld hl, vTiles0
|
||||
ld bc, sScratch - vTiles0
|
||||
ld hl, VRAM_Begin
|
||||
ld bc, VRAM_End - VRAM_Begin
|
||||
xor a
|
||||
call ByteFill
|
||||
|
||||
|
|
|
@ -168,7 +168,7 @@ RunTradeAnimScript:
|
|||
ld a, $1
|
||||
ldh [rVBK], a
|
||||
ld hl, vTiles0
|
||||
ld bc, sScratch - vTiles0
|
||||
ld bc, VRAM_End - VRAM_Begin
|
||||
xor a
|
||||
call ByteFill
|
||||
ld a, $0
|
||||
|
@ -176,7 +176,7 @@ RunTradeAnimScript:
|
|||
|
||||
.NotCGB:
|
||||
hlbgcoord 0, 0
|
||||
ld bc, sScratch - vBGMap0
|
||||
ld bc, VRAM_End - vBGMap0
|
||||
ld a, " "
|
||||
call ByteFill
|
||||
ld hl, TradeGameBoyLZ
|
||||
|
@ -470,7 +470,7 @@ TradeAnim_TubeToPlayer8:
|
|||
call DisableLCD
|
||||
callfar ClearSpriteAnims
|
||||
hlbgcoord 0, 0
|
||||
ld bc, sScratch - vBGMap0
|
||||
ld bc, VRAM_End - vBGMap0
|
||||
ld a, " "
|
||||
call ByteFill
|
||||
xor a
|
||||
|
|
Loading…
Reference in New Issue