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:
parent
0cd64452c0
commit
c5296adea1
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue