Skip to content

Commit e9c17a9

Browse files
committed
Trigger timer interrupt on each emulator update cycle.
1 parent a915b51 commit e9c17a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ void write_port(unsigned port, uint8_t value)
5151
void emulator_update(void)
5252
{
5353
debug(debug_int, "emu update cycle\n");
54+
cpuTriggerIRQ(0);
5455
update_timer();
5556
check_screen();
5657
update_keyb();
@@ -114,6 +115,10 @@ void bios_routine(unsigned inum)
114115
int2a();
115116
else if(inum == 0x2f)
116117
int2f();
118+
else if(inum == 0x8)
119+
; // Timer interrupt - nothing to do
120+
else if(inum == 0x9)
121+
; // Keyboard interrupt - nothing to do
117122
else
118123
debug(debug_int, "UNHANDLED INT %02x, AX=%04x\n", inum, cpuGetAX());
119124
}

0 commit comments

Comments
 (0)