From 7cbc59db32d3be187b9cbd160058191c4e1b69f6 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 20 Apr 2025 02:12:22 -0500 Subject: [PATCH] 6502 command stream player, part 14 fix it up plays Manbow pretty well --- src/asm/6502/nes/test.s | 8 ++++++-- src/asm/6502/stream.s | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/asm/6502/nes/test.s b/src/asm/6502/nes/test.s index 97643dce9..81613e06c 100644 --- a/src/asm/6502/nes/test.s +++ b/src/asm/6502/nes/test.s @@ -110,8 +110,12 @@ loop: ; interrupt handlers nmi: + php + pha lda #1 sta pendingTick + pla + plp rti irq: @@ -121,8 +125,8 @@ irq: FCS_MAX_CHAN=8 FCS_MAX_STACK=10 -fcsAddrBase=$20 -fcsZeroPage=$10 +fcsAddrBase=$30 +fcsZeroPage=$0e fcsGlobalStack=$200 fcsPtr=cmdStream fcsVolMax=volMaxArray diff --git a/src/asm/6502/stream.s b/src/asm/6502/stream.s index de06157ec..f48857a5a 100644 --- a/src/asm/6502/stream.s +++ b/src/asm/6502/stream.s @@ -298,6 +298,7 @@ fcsFullCmd: fcsSpeedDialCmd: lda fcsSpeedDial-224,y + pha tay lda fcsFullCmdTable-28,y tay @@ -305,6 +306,8 @@ fcsSpeedDialCmd: sta fcsTempPtr lda fcsCmdReadTableHigh,y sta fcsTempPtr+1 + pla + tay jmp (fcsTempPtr) fcsCall: