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

@@ -111,7 +111,7 @@ _CopyTilemapAtOnce:
ld l, 0
ld a, SCREEN_HEIGHT
ldh [hTilesPerCycle], a
ld b, 1 << 1 ; not in v/hblank
ld b, STAT_BUSY
ld c, LOW(rSTAT)
.loop
@@ -129,7 +129,7 @@ rept SCREEN_WIDTH / 2
inc l
endr
ld de, BG_MAP_WIDTH - SCREEN_WIDTH
ld de, TILEMAP_WIDTH - SCREEN_WIDTH
add hl, de
ldh a, [hTilesPerCycle]
dec a
@@ -181,11 +181,11 @@ ClearPalettes::
ret
.cgb
ldh a, [rSVBK]
ldh a, [rWBK]
push af
ld a, BANK(wBGPals2)
ldh [rSVBK], a
ldh [rWBK], a
; Fill wBGPals2 and wOBPals2 with $ffff (white)
ld hl, wBGPals2
@@ -194,7 +194,7 @@ ClearPalettes::
call ByteFill
pop af
ldh [rSVBK], a
ldh [rWBK], a
; Request palette update
ld a, TRUE