From 140e028ec492b12c7ea419e1656e727e54f5b133 Mon Sep 17 00:00:00 2001 From: ketmar Date: Mon, 29 Apr 2024 22:17:09 +0000 Subject: [PATCH] ULA hack (for issue 3) FossilOrigin-Name: 36243d57a2d58c8ef0072f98eab633b0c68d1825b5b150068218772c14809d18 --- src/ZXEmuT/zymcb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ZXEmuT/zymcb.c b/src/ZXEmuT/zymcb.c index c011a9e..f1cf422 100644 --- a/src/ZXEmuT/zymcb.c +++ b/src/ZXEmuT/zymcb.c @@ -491,6 +491,7 @@ static void z80Contention (zym_cpu_t *z80, uint16_t addr, int tstates, zym_memio } +// FIXME: issue check should be here, i believe static void z80PortContention (zym_cpu_t *z80, uint16_t port, int tstates, zym_portio_flags_t pflags) { if (machineInfo.iocontention && z80->tstates < machineInfo.tsperframe) { // don't care if this is input our output; check for it with (pflags&ZYM_PORTIO_FLAG_IN) if necessary @@ -1311,7 +1312,8 @@ static int phULAout (zym_cpu_t *z80, uint16_t port, uint8_t value) { // if (optBrightBorder > 0) bc |= ((value>>optBrightBorder)&0x01)<<3; if (zxBorder != bc) { - zxRealiseScreen(z80->tstates); + // issue check for BorderTrix (FIXME: dumb hack!) + zxRealiseScreen(z80->tstates - (optZXIssue ? 1 : 0)); zxBorder = bc; } /*if (!optTapePlaying || !optTapeSound)*/ soundBeeper(/*value&0x10*/((value&0x10)>>3), z80->tstates); -- 2.11.4.GIT