From 97e6c912eb89b0b82c875982e8ecf6376ee6416d Mon Sep 17 00:00:00 2001 From: TC1995 Date: Mon, 26 Apr 2021 00:15:15 +0200 Subject: [PATCH] Fixed NVRAM initialization (floppies, hdd's, etc...) for the PS/1 computers. --- src/machine/m_ps1.c | 4 ++-- src/nvr_at.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/machine/m_ps1.c b/src/machine/m_ps1.c index da735d808..d81910fb0 100644 --- a/src/machine/m_ps1.c +++ b/src/machine/m_ps1.c @@ -467,7 +467,7 @@ ps1_setup(int model) device_add(&snd_device); - device_add(&fdc_at_actlow_device); + device_add(&fdc_at_ps1_device); /* Enable the builtin HDC. */ if (hdc_current == 1) { @@ -484,7 +484,7 @@ ps1_setup(int model) rom_init(&ps->high_rom, "roms/machines/ibmps1_2121/fc0000.bin", - 0xfc0000, 0x20000, 0x1ffff, 0, MEM_MAPPING_EXTERNAL); + 0xfc0000, 0x40000, 0x3ffff, 0, MEM_MAPPING_EXTERNAL); /* Initialize the video controller. */ if (gfxcard == VID_INTERNAL) diff --git a/src/nvr_at.c b/src/nvr_at.c index 2a0679008..160f2bd90 100644 --- a/src/nvr_at.c +++ b/src/nvr_at.c @@ -954,6 +954,7 @@ nvr_at_init(const device_t *info) case 2: /* PS/1 or PS/2 */ nvr->irq = 8; local->cent = RTC_CENTURY_PS; + local->def = 0x00; break; case 3: /* Amstrad PC's */