aboutsummaryrefslogtreecommitdiff
path: root/shared/apu.s
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-04-09 13:30:34 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2026-04-10 13:33:30 +0200
commit00e470a4c8cefcc8e9514c6965dcd61f448d10e8 (patch)
treee9a63c8797f25292daa74f9fd8c0b53702cc30dd /shared/apu.s
parent1978afbc18ffb227f0ce36663648e00d1d2d7945 (diff)
downloadcode.nes-00e470a4c8cefcc8e9514c6965dcd61f448d10e8.tar.gz
code.nes-00e470a4c8cefcc8e9514c6965dcd61f448d10e8.zip
Add the sound/select.s example
This is an iteration over the sound/beep.s example, but it covers three channels instead of just square 1. Moreover, you can use the joypad to select which channel you want to hear and, of course, you can combine them all at will. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'shared/apu.s')
-rw-r--r--shared/apu.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/shared/apu.s b/shared/apu.s
index 814c446..f876d91 100644
--- a/shared/apu.s
+++ b/shared/apu.s
@@ -1,7 +1,15 @@
.scope APU
m_square_1_envelope = $4000
+ m_square_1_sweep = $4001
m_square_1_low = $4002
m_square_1_high = $4003
+ m_square_2_envelope = $4004
+ m_square_2_sweep = $4005
+ m_square_2_low = $4006
+ m_square_2_high = $4007
+ m_triangle_control = $4008
+ m_triangle_low = $400A
+ m_triangle_high = $400B
m_dmc = $4010
m_status = $4015
m_frame_counter = $4017