mirror of
https://github.com/86Box/86Box.git
synced 2026-02-21 17:15:32 -07:00
Improve the fix, now it actually remembers the CPU settings.
This commit is contained in:
@@ -637,7 +637,7 @@ nvr_reg_write(uint16_t reg, uint8_t val, void *priv)
|
||||
|
||||
case 0x39:
|
||||
if (machines[machine].init == machine_at_bx6_init)
|
||||
nvr_reg_common_write(reg, val | 0x09, nvr, local);
|
||||
nvr_reg_common_write(reg, val | 0x08, nvr, local);
|
||||
else
|
||||
nvr_reg_common_write(reg, val, nvr, local);
|
||||
break;
|
||||
@@ -805,7 +805,7 @@ nvr_read(uint16_t addr, void *priv)
|
||||
if (!(local->lock[local->addr[addr_id]] & 0x02)) {
|
||||
ret = nvr->regs[local->addr[addr_id]];
|
||||
if (machines[machine].init == machine_at_bx6_init)
|
||||
ret |= 0x09;
|
||||
ret |= 0x08;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -1231,6 +1231,9 @@ nvr_at_init(const device_t *info)
|
||||
if (nvr->is_new && (machines[machine].init == machine_at_spitfire_init))
|
||||
nvr->regs[0x33] = nvr->regs[0x34] = 0xff;
|
||||
|
||||
if (nvr->is_new && (machines[machine].init == machine_at_bx6_init))
|
||||
nvr->regs[0x39] = 0x09;
|
||||
|
||||
return nvr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user