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/asm.s | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'shared/asm.s') diff --git a/shared/asm.s b/shared/asm.s index 67b195c..e67b7a6 100644 --- a/shared/asm.s +++ b/shared/asm.s @@ -20,3 +20,11 @@ .macro JAL ADDR jmp ADDR .endmacro + +;; The __fallthrough__ special statement allows developers to explicitly tell +;; the assembler that a "fall through" situation does not happen by mistake. +.ifndef __NASM__ + .macro __fallthrough__ arg + ;; NOTE: nothing to do :) + .endmacro +.endif -- cgit v1.2.3