Skip to content

Commit ea37d00

Browse files
committed
Add AUD1RAM-AUD4RAM audio channel RAM address constants
1 parent 7fc573f commit ea37d00

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

HISTORY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
- Added `PAD_*` constants for combined button and Control Pad masks
105105
- Added `B_COLOR_*` red/green/blue bit numbers
106106
- Corrected comments on `B_BG_PRIO` and `B_OAM_PRIO`
107-
- **Rev 6.0.0** - 2025-07-03 *(Rangi42)*
107+
- **Rev 6.0.0** - 2025-07-14 *(Rangi42)*
108108
- Changed `_AUD3WAVERAM` to `AUD3WAVERAM`
109+
- Added `AUD1RAM`-`AUD4RAM` address constants
109110
- Added `SHADE_*` constants for grayscale shades

hardware.inc

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,6 @@ def B_AUDENA_ENABLE_CH1 equ 0 ; 1 = channel 1 is running [ro]
422422

423423
; -- AUD3WAVE ($FF30-$FF3F) ---------------------------------------------------
424424
; Audio channel 3 wave pattern RAM [r/w]
425-
def AUD3WAVERAM equ $FF30 ; $FF30-$FF3F
426-
427425
def rAUD3WAVE_0 equ $FF30
428426
def rAUD3WAVE_1 equ $FF31
429427
def rAUD3WAVE_2 equ $FF32
@@ -441,8 +439,6 @@ def rAUD3WAVE_D equ $FF3D
441439
def rAUD3WAVE_E equ $FF3E
442440
def rAUD3WAVE_F equ $FF3F
443441

444-
def AUD3WAVE_SIZE equ 16 ; size of wave pattern RAM in bytes
445-
446442
; -- LCDC ($FF40) -------------------------------------------------------------
447443
; PPU graphics control
448444
def rLCDC equ $FF40
@@ -995,6 +991,20 @@ def OAM_COUNT equ 40 ; how many OBJs there are room for in OAM
995991
def OAM_SIZE equ OBJ_SIZE * OAM_COUNT
996992

997993

994+
;******************************************************************************
995+
; Audio channel RAM addresses
996+
;******************************************************************************
997+
998+
def AUD1RAM equ $FF10 ; $FF10-$FF14
999+
def AUD2RAM equ $FF15 ; $FF15-$FF19
1000+
def AUD3RAM equ $FF1A ; $FF1A-$FF1E
1001+
def AUD4RAM equ $FF1F ; $FF1F-$FF23
1002+
def AUDRAM_SIZE equ 5 ; size of each audio channel RAM in bytes
1003+
1004+
def AUD3WAVERAM equ $FF30 ; $FF30-$FF3F
1005+
def AUD3WAVE_SIZE equ 16 ; size of wave pattern RAM in bytes
1006+
1007+
9981008
;******************************************************************************
9991009
; Interrupt vector addresses
10001010
;******************************************************************************

0 commit comments

Comments
 (0)