Wrap MDA and Hercules text modes at 4kb.
This commit is contained in:
parent
2acbcece0e
commit
e7e790701e
2 changed files with 4 additions and 4 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue