Fixed double IO mapping of Mono VGA registers.
This commit is contained in:
parent
c8e6fc7ce3
commit
2f5f4a5b47
1 changed files with 2 additions and 9 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue