aboutsummaryrefslogtreecommitdiff
path: root/src/interrupts.s
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-04-13 16:34:11 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2026-04-13 16:34:11 +0200
commitaef156ac6216ed157b06a2872ba051af43317e93 (patch)
treea6daca2bc0353e6b59823bc6bf019362ecb02507 /src/interrupts.s
parentc3c6f3b4469bf9eadff5763fa16dbbbf15637e57 (diff)
downloadjetpac.nes-aef156ac6216ed157b06a2872ba051af43317e93.tar.gz
jetpac.nes-aef156ac6216ed157b06a2872ba051af43317e93.zip
Add sound effects
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'src/interrupts.s')
-rw-r--r--src/interrupts.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/interrupts.s b/src/interrupts.s
index 7026223..658f6a3 100644
--- a/src/interrupts.s
+++ b/src/interrupts.s
@@ -161,6 +161,11 @@
sta PPU::m_scroll
sta PPU::m_scroll
+ ;; The sound effect from bullets follow a frame rule. Tick the frame count
+ ;; from sound as the very last thing to be done before unblocking the main
+ ;; code.
+ jsr Sound::tick
+
;; Unblock the main code.
lda #%01111111
and Globals::zp_flags