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

@@ -8,7 +8,7 @@ DMATransfer::
ret z
; Start transfer
ldh [rHDMA5], a
ldh [rVDMA_LEN], a
; Execution is halted until the transfer is complete.
@@ -194,7 +194,7 @@ DEF THIRD_HEIGHT EQU SCREEN_HEIGHT / 3
ldh a, [hBGMapAddress]
ld l, a
ld de, 2 * THIRD_HEIGHT * BG_MAP_WIDTH
ld de, 2 * THIRD_HEIGHT * TILEMAP_WIDTH
add hl, de
; Next time: top third
@@ -211,7 +211,7 @@ DEF THIRD_HEIGHT EQU SCREEN_HEIGHT / 3
ldh a, [hBGMapAddress]
ld l, a
ld de, THIRD_HEIGHT * BG_MAP_WIDTH
ld de, THIRD_HEIGHT * TILEMAP_WIDTH
add hl, de
; Next time: bottom third
@@ -237,7 +237,7 @@ DEF THIRD_HEIGHT EQU SCREEN_HEIGHT / 3
ld a, THIRD_HEIGHT
; Discrepancy between wTilemap and BGMap
ld bc, BG_MAP_WIDTH - (SCREEN_WIDTH - 1)
ld bc, TILEMAP_WIDTH - (SCREEN_WIDTH - 1)
.row
; Copy a row of 20 tiles
@@ -438,10 +438,10 @@ AnimateTileset::
ld a, BANK(_AnimateTileset)
rst Bankswitch
ldh a, [rSVBK]
ldh a, [rWBK]
push af
ld a, BANK(wTilesetAnim)
ldh [rSVBK], a
ldh [rWBK], a
ldh a, [rVBK]
push af
@@ -453,7 +453,7 @@ AnimateTileset::
pop af
ldh [rVBK], a
pop af
ldh [rSVBK], a
ldh [rWBK], a
pop af
rst Bankswitch
ret