Compaq EGA: Implement C&T behavior where reads in mode 0 return 0xFF if bit 2 of GDC register 4 is set, fixes video memory size detection, fixes #4571.
This commit is contained in:
@@ -1278,6 +1278,10 @@ ega_read(uint32_t addr, void *priv)
|
||||
temp4 &= (ega->colournocare & 8) ? 0xff : 0;
|
||||
return ~(temp | temp2 | temp3 | temp4);
|
||||
}
|
||||
|
||||
if ((ega_type == 2) && (ega->gdcreg[4] & 0x04))
|
||||
return 0xff;
|
||||
|
||||
return ega->vram[addr | readplane];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user