From c5296adea12dc8fb5e9b3e8243b2f49a7c418b10 Mon Sep 17 00:00:00 2001 From: Ulf Wohlers Date: Sat, 10 Aug 2002 10:12:37 +0000 Subject: [PATCH] Added bios int 8 disk motor timeout counter Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@137 --- src/ints/bios.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ints/bios.cpp b/src/ints/bios.cpp index 963fbb0f..ff8e2fe6 100644 --- a/src/ints/bios.cpp +++ b/src/ints/bios.cpp @@ -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;