Wrap MDA and Hercules text modes at 4kb.

This commit is contained in:
SarahW 2017-03-23 20:20:38 +00:00
commit e7e790701e
2 changed files with 4 additions and 4 deletions

View file

@ -162,8 +162,8 @@ void hercules_poll(void *p)
{
for (x = 0; x < hercules->crtc[1]; x++)
{
chr = hercules->vram[(hercules->ma << 1) & 0x3fff];
attr = hercules->vram[((hercules->ma << 1) + 1) & 0x3fff];
chr = hercules->vram[(hercules->ma << 1) & 0xfff];
attr = hercules->vram[((hercules->ma << 1) + 1) & 0xfff];
drawcursor = ((hercules->ma == ca) && hercules->con && hercules->cursoron);
blink = ((hercules->blink & 16) && (hercules->ctrl & 0x20) && (attr & 0x80) && !drawcursor);
if (hercules->sc == 12 && ((attr & 7) == 1))

View file

@ -131,8 +131,8 @@ void mda_poll(void *p)
cols[1] = 7;
for (x = 0; x < mda->crtc[1]; x++)
{
chr = mda->vram[(mda->ma << 1) & 0x3fff];
attr = mda->vram[((mda->ma << 1) + 1) & 0x3fff];
chr = mda->vram[(mda->ma << 1) & 0xfff];
attr = mda->vram[((mda->ma << 1) + 1) & 0xfff];
drawcursor = ((mda->ma == ca) && mda->con && mda->cursoron);
blink = ((mda->blink & 16) && (mda->ctrl & 0x20) && (attr & 0x80) && !drawcursor);
if (mda->sc == 12 && ((attr & 7) == 1))