Fixed double IO mapping of Mono VGA registers.

This commit is contained in:
SarahW 2018-03-11 14:29:56 +00:00
commit 2f5f4a5b47

View file

@ -78,16 +78,9 @@ void svga_out(uint16_t addr, uint8_t val, void *p)
case 0x3C2: case 0x3C2:
svga->miscout = val; svga->miscout = val;
svga->vidclock = val & 4;// printf("3C2 write %02X\n",val); svga->vidclock = val & 4;// printf("3C2 write %02X\n",val);
if (val & 1) io_removehandler(0x03a0, 0x0020, svga->video_in, NULL, NULL, svga->video_out, NULL, NULL, svga->p);
{ if (!(val & 1))
// pclog("Remove mono handler\n");
io_removehandler(0x03a0, 0x0020, svga->video_in, NULL, NULL, svga->video_out, NULL, NULL, svga->p);
}
else
{
// pclog("Set mono handler\n");
io_sethandler(0x03a0, 0x0020, svga->video_in, NULL, NULL, svga->video_out, NULL, NULL, svga->p); io_sethandler(0x03a0, 0x0020, svga->video_in, NULL, NULL, svga->video_out, NULL, NULL, svga->p);
}
svga_recalctimings(svga); svga_recalctimings(svga);
break; break;
case 0x3C4: case 0x3C4: