CGA, Hercules, MDA and PC1512 video read/writes now represented in status window.

This commit is contained in:
TomW 2013-12-20 22:24:15 +00:00
commit 677d47a109
4 changed files with 8 additions and 0 deletions

View file

@ -73,6 +73,7 @@ void cga_write(uint32_t addr, uint8_t val, void *p)
cga->vram[addr & 0x3fff] = val;
cga->charbuffer[ ((int)(((cga->dispontime - cga->vidtime) * 2) / CGACONST)) & 0xfc] = val;
cga->charbuffer[(((int)(((cga->dispontime - cga->vidtime) * 2) / CGACONST)) & 0xfc) | 1] = val;
egawrites++;
cycles -= 4;
}
@ -82,6 +83,7 @@ uint8_t cga_read(uint32_t addr, void *p)
cycles -= 4;
cga->charbuffer[ ((int)(((cga->dispontime - cga->vidtime) * 2) / CGACONST)) & 0xfc] = cga->vram[addr & 0x3fff];
cga->charbuffer[(((int)(((cga->dispontime - cga->vidtime) * 2) / CGACONST)) & 0xfc) | 1] = cga->vram[addr & 0x3fff];
egareads++;
// pclog("CGA_READ %04X\n", addr);
return cga->vram[addr & 0x3fff];
}