Permalink
Browse files

disk io should enable interrupts too

  • Loading branch information...
joncampbell123 committed Feb 13, 2018
1 parent 56b08ff commit 267bd17b566e7dcef74f08194628ec36765f3555
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/dos/dos.cpp
@@ -255,6 +255,10 @@ void diskio_delay(Bits value/*bytes*/) {
double scalar = (double)value / disk_data_rate;
double endtime = PIC_FullIndex() + (scalar * 1000);
/* MS-DOS will most likely enable interrupts in the course of
* performing disk I/O */
CPU_STI();
do {
CALLBACK_Idle();
} while (PIC_FullIndex() < endtime);

0 comments on commit 267bd17

Please sign in to comment.