From dd2241d3dea6401db463eeaa12459eddad8a5d82 Mon Sep 17 00:00:00 2001 From: BigEd Date: Tue, 25 Jun 2013 22:31:53 +0200 Subject: [PATCH] bugfix - macros.js - pre-apply clock triggers for corrected display --- macros.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/macros.js b/macros.js index 6f4e81e..3d91e95 100644 --- a/macros.js +++ b/macros.js @@ -226,9 +226,10 @@ fetchTriggers={}; // simulate a single clock phase with no update to graphics or trace function halfStep(){ var clk = isNodeHigh(nodenames['clk0']); - eval(clockTriggers[cycle]); if (clk) {setLow('clk0'); handleBusRead(); } else {setHigh('clk0'); handleBusWrite();} + eval(clockTriggers[cycle+1]); // pre-apply next tick's inputs now, so the updates are displayed + } function handleBusRead(){