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

@@ -3,8 +3,8 @@ SECTION "VRAM0", VRAM
vTiles0:: ds $80 tiles
vTiles1:: ds $80 tiles
vTiles2:: ds $80 tiles
vBGMap0:: ds BG_MAP_WIDTH * BG_MAP_HEIGHT
vBGMap1:: ds BG_MAP_WIDTH * BG_MAP_HEIGHT
vBGMap0:: ds TILEMAP_AREA
vBGMap1:: ds TILEMAP_AREA
SECTION "VRAM1", VRAM
@@ -12,7 +12,7 @@ SECTION "VRAM1", VRAM
vTiles3:: ds $80 tiles
vTiles4:: ds $80 tiles
vTiles5:: ds $80 tiles
vBGMap2:: ds BG_MAP_WIDTH * BG_MAP_HEIGHT
vBGMap3:: ds BG_MAP_WIDTH * BG_MAP_HEIGHT
vBGMap2:: ds TILEMAP_AREA
vBGMap3:: ds TILEMAP_AREA
ENDSECTION

View File

@@ -28,7 +28,7 @@ wCurNoteDuration:: db ; used in MusicE0 and LoadNote
wCurMusicByte:: db
wCurChannel:: db
wVolume::
; corresponds to rNR50
; corresponds to rAUDVOL
; Channel control / ON-OFF / Volume (R/W)
; bit 7 - Vin->SO2 ON/OFF
; bit 6-4 - SO2 output level (volume) (# 0-7)
@@ -36,12 +36,12 @@ wVolume::
; bit 2-0 - SO1 output level (volume) (# 0-7)
db
wSoundOutput::
; corresponds to rNR51
; corresponds to rAUDTERM
; bit 4-7: ch1-4 so2 on/off
; bit 0-3: ch1-4 so1 on/off
db
wPitchSweep::
; corresponds to rNR10
; corresponds to rAUD1SWEEP
; bit 7: unused
; bit 4-6: sweep time
; bit 3: sweep direction
@@ -302,7 +302,7 @@ SECTION "Sprites", WRAM0
wShadowOAM::
; wShadowOAMSprite00 - wShadowOAMSprite39
for n, NUM_SPRITE_OAM_STRUCTS
for n, OAM_COUNT
wShadowOAMSprite{02d:n}:: sprite_oam_struct wShadowOAMSprite{02d:n}
endr
wShadowOAMEnd::
@@ -312,7 +312,7 @@ SECTION "Tilemap", WRAM0
wTilemap::
; 20x18 grid of 8x8 tiles
ds SCREEN_WIDTH * SCREEN_HEIGHT
ds SCREEN_AREA
wTilemapEnd::
@@ -907,7 +907,7 @@ wPrinterSendByteOffset:: dw
wPrinterSendByteCounter:: dw
; tilemap backup?
wPrinterTilemapBuffer:: ds SCREEN_HEIGHT * SCREEN_WIDTH
wPrinterTilemapBuffer:: ds SCREEN_AREA
wPrinterStatus:: db
ds 1
; High nibble is for margin before the image, low nibble is for after.
@@ -1469,7 +1469,7 @@ wAttrmap::
; bit 4: pal # (non-cgb)
; bit 3: vram bank (cgb only)
; bit 2-0: pal # (cgb only)
ds SCREEN_WIDTH * SCREEN_HEIGHT
ds SCREEN_AREA
wAttrmapEnd::
UNION
@@ -3393,7 +3393,7 @@ SECTION "Pic Animations", WRAMX
wTempTilemap::
; 20x18 grid of 8x8 tiles
ds SCREEN_WIDTH * SCREEN_HEIGHT
ds SCREEN_AREA
; PokeAnim data
wPokeAnimStruct::
@@ -3456,7 +3456,7 @@ w3_d742:: battle_tower_struct w3_d742
NEXTU
ds $be
w3_d800:: ds BG_MAP_WIDTH * SCREEN_HEIGHT
w3_d800:: ds TILEMAP_WIDTH * SCREEN_HEIGHT
NEXTU
ds $be
@@ -3485,9 +3485,9 @@ ENDU
ds $1c0
w3_dc00:: ds SCREEN_WIDTH * SCREEN_HEIGHT
w3_dc00:: ds SCREEN_AREA
UNION
w3_dd68:: ds SCREEN_WIDTH * SCREEN_HEIGHT
w3_dd68:: ds SCREEN_AREA
ds $11c
@@ -3628,8 +3628,8 @@ w5_MobileOpponentBattleLossMessage:: ds $c
SECTION "Scratch RAM", WRAMX
UNION
wScratchTilemap:: ds BG_MAP_WIDTH * BG_MAP_HEIGHT
wScratchAttrmap:: ds BG_MAP_WIDTH * BG_MAP_HEIGHT
wScratchTilemap:: ds TILEMAP_AREA
wScratchAttrmap:: ds TILEMAP_AREA
NEXTU
wDecompressScratch:: ds $80 tiles