From 1978afbc18ffb227f0ce36663648e00d1d2d7945 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 9 Apr 2026 00:33:04 +0200 Subject: Add the sound/beep.s example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the most simple example you can come up when it comes to producing sound on the NES/Famicom. Basically, a single note is delivered to the APU which is continuously on. Signed-off-by: Miquel Sabaté Solà --- shared/ppu.s | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'shared/ppu.s') diff --git a/shared/ppu.s b/shared/ppu.s index 42acb06..8b548e9 100644 --- a/shared/ppu.s +++ b/shared/ppu.s @@ -9,3 +9,12 @@ lda #value sta $2007 .endmacro + +.scope PPU + m_control = $2000 + m_mask = $2001 + m_status = $2002 + m_scroll = $2005 + m_address = $2006 + m_data = $2007 +.endscope -- cgit v1.2.3