When selecting an AT-class machine with less than 1 MB memory size granularity, memory size is no longer incorrectly multiplied by 1024, fixes the crashes with those machines;

The NEAT, SCAT, and Headland chipsets no longer remap the top 384 kB.
This commit is contained in:
OBattler
2017-06-19 18:33:36 +02:00
parent 42d2130b1c
commit 43aaf7dc74
2 changed files with 1 additions and 4 deletions

View File

@@ -674,7 +674,7 @@ static BOOL CALLBACK win_settings_machine_proc(HWND hdlg, UINT message, WPARAM w
{
temp_mem_size = models[temp_model].max_ram;
}
if (models[temp_model].flags & MODEL_AT)
if ((models[temp_model].flags & MODEL_AT) && (models[temp_model].ram_granularity < 128))
{
temp_mem_size *= 1024;
}

View File

@@ -534,14 +534,12 @@ void ps2_model_80_init(void)
void at_neat_init(void)
{
at_ide_init();
mem_remap_top_384k();
neat_init();
}
void at_scat_init(void)
{
at_ide_init();
mem_remap_top_384k();
scat_init();
}
@@ -566,7 +564,6 @@ void at_wd76c10_init(void)
void at_headland_init(void)
{
at_ide_init();
mem_remap_top_384k();
headland_init();
}