mirror of
https://github.com/86Box/86Box.git
synced 2026-02-25 04:45:31 -07:00
OPTi 499: ROMCS# enable bits in register 2Dh override 22h bit 5 ROMCS# disable, fixes Alaris Cobalt LPX VBIOS
This commit is contained in:
@@ -84,7 +84,10 @@ opti499_recalc(opti499_t *dev)
|
||||
base = 0xd0000 + (i << 14);
|
||||
|
||||
if ((dev->regs[0x22] & ((base >= 0xe0000) ? 0x20 : 0x40)) && (dev->regs[0x23] & (1 << i))) {
|
||||
shflags = MEM_READ_INTERNAL;
|
||||
if (dev->regs[0x2d] & (1 << ((i >> 1) + 2)))
|
||||
shflags = MEM_READ_EXTANY;
|
||||
else
|
||||
shflags = MEM_READ_INTERNAL;
|
||||
shflags |= (dev->regs[0x22] & ((base >= 0xe0000) ? 0x08 : 0x10)) ? MEM_WRITE_DISABLED : MEM_WRITE_INTERNAL;
|
||||
} else {
|
||||
if (dev->regs[0x2d] & (1 << ((i >> 1) + 2)))
|
||||
|
||||
Reference in New Issue
Block a user