From b5b599aa1f9c4456fc7dd727c89502c4d50f4f01 Mon Sep 17 00:00:00 2001 From: Bobbi Webber-Manners Date: Thu, 24 Nov 2022 16:34:23 -0500 Subject: [PATCH] Enable up to 16 envelopes. --- auxmem.audio.s | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/auxmem.audio.s b/auxmem.audio.s index 5f373bf..6e53228 100644 --- a/auxmem.audio.s +++ b/auxmem.audio.s @@ -1,7 +1,9 @@ * AUXMEM.AUDIO.S * (c) Bobbi 2022 GPLv3 * -* Applecorn audio code +* Applecorn audio code. +* This auxiliary memory code implements OSWORD &07 and &08, enqueueing events +* for the audio engine that lives in main memory (MAINMEM.AUDIO.S). * * OSWORD &07 - Make a sound @@ -67,7 +69,7 @@ WORD07 INY * Supports 4 envelopes for now, could be extended for more WORD08 LDA (OSCTRL),Y ; Get envelope number DEC A ; Make it zero-based - CMP #$03 ; Check in range + CMP #$15 ; Check in range BPL :RTS ; Ignore if out of range TAX LDA #$00