Previous 199869 Revisions Next

r31897 Thursday 4th September, 2014 at 02:37:23 UTC by R. Belmont
(MESS) pc_vga: correct access to attribute register when PAS bit is set, allows XFree86 to detect ISA VGA. [Peter Ferrie]
[src/emu/video]pc_vga.c

trunk/src/emu/video/pc_vga.c
r31896r31897
16771677         data = vga.attribute.index;
16781678         break;
16791679      case 1:
1680         if(vga.attribute.index&0x20)
1681            data = vga.attribute.index; // TODO: open bus
1680         if((vga.attribute.index&0x20)
1681         && ((vga.attribute.index&0x1f)<0x10))
1682            data = 0; // palette access is disabled in this mode
16821683         else if ((vga.attribute.index&0x1f)<sizeof(vga.attribute.data))
16831684            data=vga.attribute.data[vga.attribute.index&0x1f];
16841685         break;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team