From 00e470a4c8cefcc8e9514c6965dcd61f448d10e8 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 9 Apr 2026 13:30:34 +0200 Subject: Add the sound/select.s example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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à --- shared/apu.s | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'shared/apu.s') 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 -- cgit v1.2.3