Few NVR changes

This commit is contained in:
Panagiotis
2021-04-21 21:56:37 +03:00
committed by GitHub
parent 11d4f18cfe
commit 00db2f3714
2 changed files with 1 additions and 2 deletions

View File

@@ -102,7 +102,6 @@ extern const device_t via_nvr_device;
extern void rtc_tick(void);
void apc_handler(int enable, nvr_t *nvr);
extern void nvr_init(nvr_t *);
extern char *nvr_path(char *str);
extern FILE *nvr_fopen(char *str, char *mode);

View File

@@ -921,7 +921,7 @@ nvr_at_init(const device_t *info)
nvr->size = machines[machine].nvrmask + 1;
local->lock = (uint8_t *) malloc(nvr->size);
memset(local->lock, 0x00, nvr->size);
local->def = 0x00;
local->def = 0xff /*0x00*/;
local->flags = 0x00;
switch(info->local & 7) {
case 0: /* standard AT, no century register */