Copy sram.asm's global start/end constants for wram.asm and vram.asm
This commit is contained in:
@@ -69,8 +69,8 @@ Init:: ; 17d
|
||||
ld [rLCDC], a
|
||||
|
||||
; Clear WRAM bank 0
|
||||
ld hl, wRAM0Start
|
||||
ld bc, wRAM1Start - wRAM0Start
|
||||
ld hl, WRAM0_Start
|
||||
ld bc, WRAM0_End - WRAM0_Start
|
||||
.ByteFill:
|
||||
ld [hl], 0
|
||||
inc hl
|
||||
@@ -201,8 +201,8 @@ ClearWRAM:: ; 25a
|
||||
push af
|
||||
ld [rSVBK], a
|
||||
xor a
|
||||
ld hl, wRAM1Start
|
||||
ld bc, $1000
|
||||
ld hl, WRAM1_Start
|
||||
ld bc, WRAM1_End - WRAM1_Start
|
||||
call ByteFill
|
||||
pop af
|
||||
inc a
|
||||
|
Reference in New Issue
Block a user