(MESS) pc_vga: correct access to attribute register when PAS bit is set, allows XFree86 to detect ISA VGA. [Peter Ferrie]

This commit is contained in:
R. Belmont 2014-09-04 02:37:23 +00:00
parent 7d874efba8
commit b9dbe823c9

View File

@ -1677,8 +1677,9 @@ READ8_MEMBER(vga_device::port_03c0_r)
data = vga.attribute.index;
break;
case 1:
if(vga.attribute.index&0x20)
data = vga.attribute.index; // TODO: open bus
if((vga.attribute.index&0x20)
&& ((vga.attribute.index&0x1f)<0x10))
data = 0; // palette access is disabled in this mode
else if ((vga.attribute.index&0x1f)<sizeof(vga.attribute.data))
data=vga.attribute.data[vga.attribute.index&0x1f];
break;