Altered device memory mapping.

This commit is contained in:
TomW 2013-10-19 17:06:55 +01:00
commit 7735e82085
43 changed files with 662 additions and 381 deletions

View file

@ -20,12 +20,13 @@ void headland_write(uint16_t addr, uint8_t val, void *priv)
shadowbios = val & 0x10;
shadowbios_write = !(val & 0x10);
if (shadowbios)
mem_sethandler(0xf0000, 0x10000, mem_read_ram, mem_read_ramw, mem_read_raml, NULL, NULL, NULL , NULL);
mem_bios_set_state(0xf0000, 0x10000, 1, 0);
else
mem_sethandler(0xf0000, 0x10000, mem_read_bios, mem_read_biosw, mem_read_biosl, mem_write_ram, mem_write_ramw, mem_write_raml, NULL);
mem_bios_set_state(0xf0000, 0x10000, 0, 1);
}
}
else headland_index = val;
else
headland_index = val;
}
uint8_t headland_read(uint16_t addr, void *priv)
@ -33,7 +34,7 @@ uint8_t headland_read(uint16_t addr, void *priv)
if (addr & 1)
{
if ((headland_index >= 0xc0 || headland_index == 0x20) && cpu_iscyrix)
return 0xff; /*Don't conflict with Cyrix config registers*/
return 0xff; /*Don't conflict with Cyrix config registers*/
return headland_regs[headland_index];
}
return headland_index;