Move up again, cautiously

This commit is contained in:
Jonathan Campbell 2018-02-15 01:21:05 -08:00
parent d2cb743ed0
commit 1d2ea25ebf

View File

@ -4439,25 +4439,6 @@ private:
} else real_writeb(0x40,0xd4,0x00);
}
/* Setup some stuff in 0x40 bios segment */
// Disney workaround
// Bit16u disney_port = mem_readw(BIOS_ADDRESS_LPT1);
// port timeouts
// always 1 second even if the port does not exist
// BIOS_SetLPTPort(0, disney_port);
for(Bitu i = 1; i < 3; i++) BIOS_SetLPTPort(i, 0);
mem_writeb(BIOS_COM1_TIMEOUT,1);
mem_writeb(BIOS_COM2_TIMEOUT,1);
mem_writeb(BIOS_COM3_TIMEOUT,1);
mem_writeb(BIOS_COM4_TIMEOUT,1);
void BIOS_Post_register_parports();
BIOS_Post_register_parports();
void BIOS_Post_register_comports();
BIOS_Post_register_comports();
/* if we're supposed to run in PC-98 mode, then do it NOW */
if (enable_pc98_jump) {
machine = MCH_PC98;
@ -4466,6 +4447,27 @@ private:
DispatchVMEvent(VM_EVENT_ENTER_PC98_MODE_END); /* PC-98 registration/startup */
}
if (!IS_PC98_ARCH) {
/* Setup some stuff in 0x40 bios segment */
// Disney workaround
// Bit16u disney_port = mem_readw(BIOS_ADDRESS_LPT1);
// port timeouts
// always 1 second even if the port does not exist
// BIOS_SetLPTPort(0, disney_port);
for(Bitu i = 1; i < 3; i++) BIOS_SetLPTPort(i, 0);
mem_writeb(BIOS_COM1_TIMEOUT,1);
mem_writeb(BIOS_COM2_TIMEOUT,1);
mem_writeb(BIOS_COM3_TIMEOUT,1);
mem_writeb(BIOS_COM4_TIMEOUT,1);
void BIOS_Post_register_parports();
BIOS_Post_register_parports();
void BIOS_Post_register_comports();
BIOS_Post_register_comports();
}
if (!IS_PC98_ARCH) {
/* Setup equipment list */
// look http://www.bioscentral.com/misc/bda.htm