IRQ handler for UP9600

This commit is contained in:
FeralChild64 committed 2019-11-22 17:35:17 +01:00
1 parent df1285e5f3
commit 6f010b8c56
9 files changed
+138 -14

No files matched your search

+2 -7
View File
@@ -6,19 +6,14 @@
// Based on UP9600 code by Daniel Dallman with Bo Zimmerman adaptations
// XXX integrate with NMI handler
#if CONFIG_RS232_UP9600
up9600_nmi:
// XXX integrate this
// XXX integrate with NMI handler
NMIDOBIT
pha
bit CIA2_ICR // $DD0D; CHECK BIT 7 (STARTBIT PRINT)
bit CIA2_ICR // $DD0D; check if CIA caused the interrupt
bpl NMIDOBI2; NO STARTBIT RECEIVED, THEN SKIP
lda #$13
sta CIA2_CRB // $DD0F; START TIMER B (FORCED RELOAD, SIGNAL AT PB7)