From 58a9eb931087e0e7b19078e00e24ace4f18b851b Mon Sep 17 00:00:00 2001 From: dwsJason Date: Fri, 18 Oct 2019 20:25:09 -0400 Subject: [PATCH] Toggle interrupts on in the blitter, to make music sound better --- asm/blit.s | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/asm/blit.s b/asm/blit.s index 8c3db66..5fa5efc 100644 --- a/asm/blit.s +++ b/asm/blit.s @@ -346,6 +346,18 @@ BRET entry ; Blit Return iny ; next direct page iny +* SONGS SOUND BETTER IF WE ALLOW INTERRUPTS +* FPS IS BETTER WITHOUT THIS CODE + lda stack + tcs + + _auxOFF + _shadowOFF + cli + sei + _shadowON + _auxON + * TODO, every 4 lines or so (or every so many clocks) * re-enable interrupts, for audio, and the heartbeat