From 9f838d11f166e06e23ea1a4ec68df61a859cb0d1 Mon Sep 17 00:00:00 2001 From: Brendan Robert Date: Sun, 20 Dec 2015 22:42:37 -0600 Subject: [PATCH] Allow writes to C100-C8FF go to cards even if reads are going to the ROM. --- src/main/java/jace/core/Card.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/jace/core/Card.java b/src/main/java/jace/core/Card.java index 6eb6301..dde4e2e 100644 --- a/src/main/java/jace/core/Card.java +++ b/src/main/java/jace/core/Card.java @@ -128,7 +128,8 @@ public abstract class Card extends Device { firmwareListener = memory.observe(RAMEvent.TYPE.ANY, baseRom, baseRom + 255, (e) -> { computer.getMemory().setActiveCard(slot); - if (SoftSwitches.CXROM.isOff()) { + // Sather 6-4: Writes will still go through even when CXROM inhibits slot ROM + if (SoftSwitches.CXROM.isOff() || !e.getType().isRead()) { handleFirmwareAccess(e.getAddress() & 0x0ff, e.getType(), e.getNewValue(), e); } });