diff io.c @ 2524:25e40370e0e4

Fix some IO port serial mode bugs
author Michael Pavone <pavone@retrodev.com>
date Sat, 26 Oct 2024 14:31:21 -0700
parents 1978bd770023
children 462e43f54abf
line wrap: on
line diff
--- a/io.c	Thu Oct 24 21:08:10 2024 -0700
+++ b/io.c	Sat Oct 26 14:31:21 2024 -0700
@@ -1822,9 +1822,7 @@
 
 uint32_t io_next_interrupt(io_port *port, uint32_t current_cycle)
 {
-	if (!(port->control & 0x80)) {
-		return CYCLE_NEVER;
-	}
+	
 	if (port->serial_ctrl & SCTRL_BIT_RX_INTEN) {
 		if (port->serial_ctrl & SCTRL_BIT_RX_READY) {
 			return current_cycle;
@@ -1833,7 +1831,9 @@
 			return port->receive_end;
 		}
 	}
-	//TODO: handle external interrupts from TH transitions
+	/*if (port->control & 0x80) {
+		//TODO: handle external interrupts from TH transitions
+	}*/
 	return CYCLE_NEVER;
 }