mirror of
https://github.com/trebonian/visual6502.git
synced 2024-12-21 21:29:16 +00:00
bugfix - macros.js - pre-apply clock triggers for corrected display
This commit is contained in:
parent
7d90b33187
commit
dd2241d3de
@ -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(){
|
||||
|
Loading…
Reference in New Issue
Block a user