Checks IRQ is actually from Mockingboard.

This commit is contained in:
Bobbi Webber-Manners 2022-12-07 20:35:57 -05:00
parent 989a628142
commit 43268da744
4 changed files with 8 additions and 4 deletions

Binary file not shown.

View File

@ -290,7 +290,7 @@ BYTE00 BEQ BYTE00A ; OSBYTE 0,0 - generate error
RTS ; %000x1xxx host type, 'A'pple
BYTE00A BRK
DB $F7
HELLO ASC 'Applecorn MOS 2022-12-06'
HELLO ASC 'Applecorn MOS 2022-12-07'
DB $00 ; Unify MOS messages
* TO DO: Move into RAM
GSSPEED DB $00 ; $80 if GS is fast, $00 for slow

View File

@ -194,11 +194,15 @@ MOCKAMP PHX
* Mockingboard interrupt service routine - just calls generic audio ISR
MOCKISR CLD
* TODO: Check whether interrupt is from Mockingboard or not
LDA MOCK_6522_IFR ; Interrupt flag register
AND #$40 ; Bit 6
BEQ :NOTMB ; Wasn't Mockingboard IRQ
BIT MOCK_6522_T1CL ; Clear interrupt
JSR AUDIOISR
CLC ; CC indicates we serviced irq
RTS
:NOTMB SEC ; We did not handle irq
RTS
**

View File

@ -1,2 +1,2 @@
#mame -w apple2ee -debug -sl5 mouse -sl7 cffa2 -harddisk1 ~/Personal/Development/Applecorn/applecorn.po
mame -w apple2gs -debug -sl7 cffa2 -harddisk1 ~/Personal/Development/Applecorn/applecorn.po -harddisk2 tests/JGHMusic2.po
mame -w apple2ee -debug -sl5 mouse -sl7 cffa2 -harddisk1 ~/Personal/Development/Applecorn/applecorn.po
#mame -w apple2gs -debug -sl7 cffa2 -harddisk1 ~/Personal/Development/Applecorn/applecorn.po -harddisk2 tests/JGHMusic2.po