From adf86dde18ffb097b08483b71750af500597624a Mon Sep 17 00:00:00 2001 From: Mats Engstrom Date: Tue, 2 Dec 2025 20:43:29 +0100 Subject: [PATCH 1/2] Fix build: Switch to JitPack and remove local config - Update pom.xml to use JitPack for Sim6502Java dependency (v0.9.2) to resolve auth errors. - Remove .classpath file containing broken local paths. --- .classpath | 43 ------------------------------------------- pom.xml | 8 ++------ 2 files changed, 2 insertions(+), 49 deletions(-) delete mode 100644 .classpath diff --git a/.classpath b/.classpath deleted file mode 100644 index 5d4c83a..0000000 --- a/.classpath +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pom.xml b/pom.xml index 62dff5c..2b59341 100644 --- a/pom.xml +++ b/pom.xml @@ -20,10 +20,6 @@ jitpack.io https://jitpack.io - - github - https://maven.pkg.github.com/innot/* - @@ -114,9 +110,9 @@ provided - de.innot.sim6502 + com.github.innot Sim6502Java - 0.9.3 + 0.9.2 From 32ddae044f1b486f92f6d35dea77fa8294491210 Mon Sep 17 00:00:00 2001 From: Mats Engstrom Date: Tue, 2 Dec 2025 21:29:37 +0100 Subject: [PATCH 2/2] Fix 6502 write cycle timing: assert data bus only during PH2 high - Ensure data bus is driven only when R/W is low AND PHI2 (clock) is high. - Prevents invalid data on the bus during the low phase of the clock cycle. --- src/main/java/de/neemann/digital/plugin/MOS6502.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/neemann/digital/plugin/MOS6502.java b/src/main/java/de/neemann/digital/plugin/MOS6502.java index 8ed75d9..bfb8b0b 100644 --- a/src/main/java/de/neemann/digital/plugin/MOS6502.java +++ b/src/main/java/de/neemann/digital/plugin/MOS6502.java @@ -168,8 +168,8 @@ public void writeOutputs() throws NodeException { syncOut.setBool(sim_output.sync); rwOut.setBool(sim_output.rw); - // Set the data bus to output when R/W is low. Otherwise, set to high-Z. - if (!sim_output.rw) { + // Set the data bus to output when R/W is low and PHI2 is high. Otherwise, set to high-Z. + if (!sim_output.rw && last_clock) { dataOut.setValue(sim_output.data); } else { dataOut.setToHighZ();