Fixed some EuroPC bugs (one had to do with the NVR), the EuroPC now works again.
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
*
|
||||
* WARNING THIS IS A WORK-IN-PROGRESS MODULE. USE AT OWN RISK.
|
||||
*
|
||||
* Version: @(#)europc.c 1.0.8 2018/10/22
|
||||
* Version: @(#)europc.c 1.0.9 2018/11/01
|
||||
*
|
||||
* Author: Fred N. van Kempen, <decwiz@yahoo.com>
|
||||
*
|
||||
@@ -739,8 +739,6 @@ machine_europc_init(const machine_t *model)
|
||||
memset(&europc, 0x00, sizeof(europc_t));
|
||||
europc.jim = 0x0250;
|
||||
|
||||
mem_add_bios();
|
||||
|
||||
/* This is machine specific. */
|
||||
europc.nvr.size = model->nvrmask + 1;
|
||||
europc.nvr.irq = -1;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* Implement a generic NVRAM/CMOS/RTC device.
|
||||
*
|
||||
* Version: @(#)nvr.c 1.0.15 2018/10/17
|
||||
* Version: @(#)nvr.c 1.0.16 2018/11/01
|
||||
*
|
||||
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>,
|
||||
* David Hrdlička, <hrdlickadavid@outlook.com>
|
||||
@@ -322,7 +322,7 @@ nvr_period_recalc(void)
|
||||
/* Make sure we have been initialized. */
|
||||
if (saved_nvr == NULL) return;
|
||||
|
||||
if (saved_nvr->size != 0)
|
||||
if ((saved_nvr->size != 0) && saved_nvr->recalc)
|
||||
saved_nvr->recalc(saved_nvr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user