Skip to content

Commit

Permalink
FDC: load and store the fakevm86io option. I was right that Windows 95
Browse files Browse the repository at this point in the history
would require it for the floppy controller as well.
  • Loading branch information
joncampbell123 committed Oct 5, 2014
1 parent 91a69eb commit d14e23c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hardware/ide.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3819,6 +3819,7 @@ class FloppyController:public Module_base{
IO_ReadHandleObject ReadHandler[8];
IO_WriteHandleObject WriteHandler[8];
uint8_t digital_output_register;
bool int13fakev86io; /* on certain INT 13h calls in virtual 8086 mode, trigger fake CPU I/O traps */
bool data_register_ready; /* 0x3F4 bit 7 */
bool data_read_expected; /* 0x3F4 bit 6 (DIO) if set CPU is expected to read from the controller */
bool non_dma_mode; /* 0x3F4 bit 5 (NDMA) */
Expand Down Expand Up @@ -4008,6 +4009,8 @@ FloppyController::FloppyController(Section* configuration,unsigned char index):M

update_ST3();

int13fakev86io = section->Get_bool("int13fakev86io");

i = section->Get_int("irq");
if (i > 0 && i <= 15) IRQ = i;

Expand Down

0 comments on commit d14e23c

Please sign in to comment.