Replace hardware_constants.asm with the community-standard hardware.inc 5.0 (#1186)

This commit is contained in:
Rangi
2025-06-23 09:11:33 -04:00
committed by GitHub
parent ae7ee67d21
commit 4c540aa43b
149 changed files with 3444 additions and 3103 deletions

View File

@@ -10,7 +10,7 @@ InitDisplayForHallOfFame:
ld a, " "
call ByteFill
hlcoord 0, 0, wAttrmap
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
ld bc, SCREEN_AREA
xor a
call ByteFill
xor a
@@ -39,7 +39,7 @@ InitDisplayForRedCredits:
ld a, " "
call ByteFill
hlcoord 0, 0, wAttrmap
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
ld bc, SCREEN_AREA
xor a
call ByteFill
ld hl, wBGPals1
@@ -60,10 +60,10 @@ InitDisplayForRedCredits:
ret
ResetDisplayBetweenHallOfFameMons:
ldh a, [rSVBK]
ldh a, [rWBK]
push af
ld a, BANK(wDecompressScratch)
ldh [rSVBK], a
ldh [rWBK], a
ld hl, wDecompressScratch
ld bc, wScratchAttrmap - wDecompressScratch
ld a, " "
@@ -74,5 +74,5 @@ ResetDisplayBetweenHallOfFameMons:
ld c, 4 tiles
call Request2bpp
pop af
ldh [rSVBK], a
ldh [rWBK], a
ret