aboutsummaryrefslogtreecommitdiffstats
path: root/src/gb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gb.h')
-rw-r--r--src/gb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gb.h b/src/gb.h
index 806daba..7439615 100644
--- a/src/gb.h
+++ b/src/gb.h
@@ -94,6 +94,11 @@ struct GB {
// serial
u8 sb, sc;
+ // APU registers 0xFF10-0xFF3F. We don't synthesize sound, but games read
+ // these back (e.g. the music fade-out decrements NR50/rAUDVOL until it
+ // reads 0), so they must behave as real storage, not a 0xFF black hole.
+ u8 apu[0x30];
+
// DMA
u8 dma;