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/oam.s | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 shared/oam.s (limited to 'shared/oam.s') diff --git a/shared/oam.s b/shared/oam.s new file mode 100644 index 0000000..ff23d64 --- /dev/null +++ b/shared/oam.s @@ -0,0 +1,11 @@ +.scope OAM + m_addr = $2003 + m_dma = $4014 +.endscope + +.macro OAM_WRITE_SPRITES + lda #$00 + sta OAM::m_addr + lda #$02 + sta OAM::m_dma +.endmacro -- cgit v1.2.3