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;
}