Removed the 440FX-related video hacks and properly fixed the issue by implementing the SMRAM register for the 430HX, 430VX, and 440FX chips.

This commit is contained in:
OBattler
2017-10-17 08:53:16 +02:00
parent 483ebc17d7
commit da8029ba5e
10 changed files with 15 additions and 24 deletions

View File

@@ -102,9 +102,6 @@ void mda_write(uint32_t addr, uint8_t val, void *p)
{
mda_t *mda = (mda_t *)p;
egawrites++;
/* Horrible hack, I know, but it's the only way to fix the 440FX BIOS filling the VRAM with garbage until Tom fixes the memory emulation. */
if ((cs == 0xE0000) && (cpu_state.pc == 0xBF2F) && (romset == ROM_440FX)) return;
if ((cs == 0xE0000) && (cpu_state.pc == 0xBF77) && (romset == ROM_440FX)) return;
mda->vram[addr & 0xfff] = val;
}