Update to rgbds v0.7.0

This commit is contained in:
Rangi
2024-01-03 10:58:53 -05:00
committed by xCrystal
parent 3e952c0b0f
commit 0df29e5aaf
22 changed files with 61 additions and 72 deletions

View File

@@ -68,3 +68,5 @@ Start::
; This makes sure it doesn't get used for anything else.
ds $0150 - @, $00
ENDSECTION

View File

@@ -64,8 +64,8 @@ Init::
ldh [rLCDC], a
; Clear WRAM bank 0
ld hl, WRAM0_Begin
ld bc, WRAM0_End - WRAM0_Begin
ld hl, STARTOF(WRAM0)
ld bc, SIZEOF(WRAM0)
.ByteFill:
ld [hl], 0
inc hl
@@ -82,8 +82,8 @@ Init::
ldh a, [hSystemBooted]
push af
xor a
ld hl, HRAM_Begin
ld bc, HRAM_End - HRAM_Begin
ld hl, STARTOF(HRAM)
ld bc, SIZEOF(HRAM)
call ByteFill
pop af
ldh [hSystemBooted], a
@@ -172,8 +172,8 @@ ClearVRAM::
xor a ; 0
ldh [rVBK], a
.clear
ld hl, VRAM_Begin
ld bc, VRAM_End - VRAM_Begin
ld hl, STARTOF(VRAM)
ld bc, SIZEOF(VRAM)
xor a
call ByteFill
ret
@@ -187,8 +187,8 @@ ClearWRAM::
push af
ldh [rSVBK], a
xor a
ld hl, WRAM1_Begin
ld bc, WRAM1_End - WRAM1_Begin
ld hl, STARTOF(WRAMX)
ld bc, SIZEOF(WRAMX)
call ByteFill
pop af
inc a

View File

@@ -263,8 +263,8 @@ ClearVBank1::
ld a, 1
ldh [rVBK], a
ld hl, VRAM_Begin
ld bc, VRAM_End - VRAM_Begin
ld hl, STARTOF(VRAM)
ld bc, SIZEOF(VRAM)
xor a
call ByteFill