Applied greatpsycho's latest changes (hopefully correctly).

This commit is contained in:
OBattler
2017-11-19 12:52:09 +01:00
parent 77ea2b2ab9
commit b97aacdc70
2 changed files with 3 additions and 3 deletions

View File

@@ -1380,7 +1380,7 @@ void mem_init(void)
for (c = 0; c < (mem_size / 64); c++)
{
isram[c] = 1;
if (c >= 0xa && c <= 0xf)
if ((c >= 0xa && c <= 0xf) || (cpu_16bitbus && c >= 0xfe && c <= 0xff))
isram[c] = 0;
}
@@ -1476,7 +1476,7 @@ void mem_resize()
for (c = 0; c < (mem_size / 64); c++)
{
isram[c] = 1;
if (c >= 0xa && c <= 0xf)
if ((c >= 0xa && c <= 0xf) || (cpu_16bitbus && c >= 0xfe && c <= 0xff))
isram[c] = 0;
}

View File

@@ -683,6 +683,7 @@ pc_reset_hard_init(void)
initalmain(0, NULL);
/* Reset the general machine support modules. */
cpu_set();
mem_resize();
io_init();
device_init();
@@ -782,7 +783,6 @@ pc_reset_hard_init(void)
device_add(&bugger_device);
/* Reset the CPU module. */
cpu_set();
cpu_update_waitstates();
cpu_cache_int_enabled = cpu_cache_ext_enabled = 0;
resetx86();