1
0
Fork 0

Added bios int 8 disk motor timeout counter

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@137
This commit is contained in:
Ulf Wohlers 2002-08-10 10:12:37 +00:00
parent 0cd64452c0
commit c5296adea1

View file

@ -101,6 +101,10 @@ static Bitu INT11_Handler(void) {
static Bitu INT8_Handler(void) {
/* Increase the bios tick counter */
mem_writed(BIOS_TIMER,mem_readd(BIOS_TIMER)+1);
/* decrease floppy motor timer */
Bit8u val = mem_readb(BIOS_DISK_MOTOR_TIMEOUT);
if (val>0) mem_writeb(BIOS_DISK_MOTOR_TIMEOUT,val-1);
CALLBACK_RunRealInt(0x1c);
IO_Write(0x20,0x20);
return CBRET_NONE;