System ROM shadowing doesn't depend from the selected register. It actually depends on the Video RAM

Also seems like the System ROM is RO. RW causes it to hang
This commit is contained in:
tiseno100
2020-09-10 19:55:11 +03:00
committed by GitHub
parent 7a075e35e3
commit 54c569e5be

View File

@@ -100,9 +100,9 @@ intel_82335_write(uint16_t addr, uint16_t val, void *priv)
if (!extended_granuality_enabled)
{
mem_set_mem_state_both(0xa0000, 0x20000, (dev->reg_22 & (0x04 << 8)) ? enabled_shadow : disabled_shadow);
mem_set_mem_state_both(0xa0000, 0x20000, (dev->reg_22 & (0x04 << 8)) ? determine_video_ram_write_access : disabled_shadow);
mem_set_mem_state_both(0xc0000, 0x20000, (dev->reg_22 & (0x02 << 8)) ? enabled_shadow : disabled_shadow);
mem_set_mem_state_both(0xe0000, 0x20000, (dev->reg_22 & 0x01) ? determine_video_ram_write_access : disabled_shadow);
mem_set_mem_state_both(0xe0000, 0x20000, (dev->reg_22 & 0x01) ? ro_shadow : disabled_shadow);
}
break;