diff --git a/src/include/86box/video.h b/src/include/86box/video.h index c2064412a..71786bd09 100644 --- a/src/include/86box/video.h +++ b/src/include/86box/video.h @@ -81,8 +81,6 @@ typedef struct { typedef rgb_t PALETTE[256]; -extern int egareads, - egawrites; extern int changeframecount; extern volatile int screenshots; diff --git a/src/machine/m_amstrad.c b/src/machine/m_amstrad.c index 48a97ad41..2b24042e5 100644 --- a/src/machine/m_amstrad.c +++ b/src/machine/m_amstrad.c @@ -300,7 +300,6 @@ vid_write_1512(uint32_t addr, uint8_t val, void *priv) { amsvid_t *vid = (amsvid_t *)priv; - egawrites++; cycles -= 12; addr &= 0x3fff; @@ -319,7 +318,6 @@ vid_read_1512(uint32_t addr, void *priv) { amsvid_t *vid = (amsvid_t *)priv; - egareads++; cycles -= 12; addr &= 0x3fff; diff --git a/src/machine/m_at_t3100e_vid.c b/src/machine/m_at_t3100e_vid.c index 945b6b296..0b461adc6 100644 --- a/src/machine/m_at_t3100e_vid.c +++ b/src/machine/m_at_t3100e_vid.c @@ -201,7 +201,6 @@ uint8_t t3100e_in(uint16_t addr, void *p) void t3100e_write(uint32_t addr, uint8_t val, void *p) { t3100e_t *t3100e = (t3100e_t *)p; - egawrites++; t3100e->vram[addr & 0x7fff] = val; cycles -= 4; @@ -212,7 +211,6 @@ void t3100e_write(uint32_t addr, uint8_t val, void *p) uint8_t t3100e_read(uint32_t addr, void *p) { t3100e_t *t3100e = (t3100e_t *)p; - egareads++; cycles -= 4; return t3100e->vram[addr & 0x7fff]; diff --git a/src/machine/m_pcjr.c b/src/machine/m_pcjr.c index 31aa9f5bc..26514bdfc 100644 --- a/src/machine/m_pcjr.c +++ b/src/machine/m_pcjr.c @@ -221,7 +221,6 @@ vid_write(uint32_t addr, uint8_t val, void *p) if (pcjr->memctrl == -1) return; - egawrites++; pcjr->b8000[addr & 0x3fff] = val; } @@ -233,7 +232,6 @@ vid_read(uint32_t addr, void *p) if (pcjr->memctrl == -1) return(0xff); - egareads++; return(pcjr->b8000[addr & 0x3fff]); } diff --git a/src/machine/m_xt_t1000_vid.c b/src/machine/m_xt_t1000_vid.c index 2f291ab63..5b1d2820d 100644 --- a/src/machine/m_xt_t1000_vid.c +++ b/src/machine/m_xt_t1000_vid.c @@ -191,7 +191,6 @@ static uint8_t t1000_in(uint16_t addr, void *p) static void t1000_write(uint32_t addr, uint8_t val, void *p) { t1000_t *t1000 = (t1000_t *)p; - egawrites++; t1000->vram[addr & 0x3fff] = val; cycles -= 4; @@ -200,7 +199,6 @@ static void t1000_write(uint32_t addr, uint8_t val, void *p) static uint8_t t1000_read(uint32_t addr, void *p) { t1000_t *t1000 = (t1000_t *)p; - egareads++; cycles -= 4; return t1000->vram[addr & 0x3fff];