Emulated EGA/VGA CRTC register 8 (Preset Row Scan Register).

This commit is contained in:
SarahW 2018-01-31 21:20:26 +00:00
commit 0ca43d37d4
2 changed files with 2 additions and 2 deletions

View file

@ -678,7 +678,7 @@ void ega_poll(void *p)
if (ega->vc == ega->vtotal)
{
ega->vc = 0;
ega->sc = 0;
ega->sc = ega->crtc[8] & 0x1f;
ega->dispon = 1;
ega->displine = 0;
ega->scrollcache = ega->attrregs[0x13] & 7;

View file

@ -684,7 +684,7 @@ void svga_poll(void *p)
// printf("Frame over at line %i %i %i %i\n",displine,vc,svga_vsyncstart,svga_dispend);
svga->vc = 0;
svga->sc = 0;
svga->sc = svga->crtc[8] & 0x1f;
svga->dispon = 1;
svga->displine = (svga->interlace && svga->oddeven) ? 1 : 0;
svga->scrollcache = svga->attrregs[0x13] & 7;