You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Update to rgbds v0.7.0
This commit is contained in:
@@ -68,3 +68,5 @@ Start::
|
||||
; This makes sure it doesn't get used for anything else.
|
||||
|
||||
ds $0150 - @, $00
|
||||
|
||||
ENDSECTION
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user