PCem

changeset 115:bd2ab065dd81

Port 0x3da diagnostic bits now held static during blanking, fixes DOS 6.2/V hang.
author TomW
date Sun Jul 06 21:40:28 2014 +0100
parents 9834054948fc
children 4081a8dbce5b
files src/vid_svga.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/src/vid_svga.c	Sun Jul 06 12:45:35 2014 +0100
     1.2 +++ b/src/vid_svga.c	Sun Jul 06 21:40:28 2014 +0100
     1.3 @@ -229,7 +229,10 @@
     1.4                  return svga->gdcreg[svga->gdcaddr & 0xf];
     1.5                  case 0x3DA:
     1.6                  svga->attrff = 0;
     1.7 -                svga->cgastat ^= 0x30;
     1.8 +                if (svga->cgastat & 0x01)
     1.9 +                        svga->cgastat &= ~0x30;
    1.10 +                else
    1.11 +                        svga->cgastat ^= 0x30;
    1.12                  return svga->cgastat;
    1.13          }
    1.14  //        printf("Bad EGA read %04X %04X:%04X\n",addr,cs>>4,pc);