Enabled write to CRTC R7 bit 4 when protection is enabled - fixes scrolling on DOS/V 6.2.
This commit is contained in:
parent
e00e489d5a
commit
6a72839c59
13 changed files with 51 additions and 14 deletions
|
|
@ -161,7 +161,10 @@ void tgui_out(uint16_t addr, uint8_t val, void *p)
|
|||
svga->crtcreg = val & 0x7f;
|
||||
return;
|
||||
case 0x3D5:
|
||||
if (svga->crtcreg <= 7 && svga->crtc[0x11] & 0x80) return;
|
||||
if ((svga->crtcreg < 7) && (svga->crtc[0x11] & 0x80))
|
||||
return;
|
||||
if ((svga->crtcreg == 7) && (svga->crtc[0x11] & 0x80))
|
||||
val = (svga->crtc[7] & ~0x10) | (val & 0x10);
|
||||
old = svga->crtc[svga->crtcreg];
|
||||
svga->crtc[svga->crtcreg] = val;
|
||||
// if (svga->crtcreg != 0xE && svga->crtcreg != 0xF) pclog("CRTC R%02X = %02X\n", svga->crtcreg, val);
|
||||
|
|
|
|||
Loading…
Reference in a new issue