mirror of
https://github.com/trebonian/visual6502.git
synced 2024-12-23 03:30:03 +00:00
add ability to override the databus by URL
This commit is contained in:
parent
d11cf44ae9
commit
51d0e99389
@ -210,6 +210,10 @@ function setupParams(){
|
|||||||
clockTriggers[value]=[clockTriggers[value],"setLow('rdy');"].join("");
|
clockTriggers[value]=[clockTriggers[value],"setLow('rdy');"].join("");
|
||||||
} else if(name=="rdy1" && parseInt(value)!=NaN){
|
} else if(name=="rdy1" && parseInt(value)!=NaN){
|
||||||
clockTriggers[value]=[clockTriggers[value],"setHigh('rdy');"].join("");
|
clockTriggers[value]=[clockTriggers[value],"setHigh('rdy');"].join("");
|
||||||
|
} else if(name=="time" && parseInt(value)!=NaN){
|
||||||
|
eventTime=value;
|
||||||
|
} else if(name=="databus" && parseInt(value)!=NaN){
|
||||||
|
clockTriggers[eventTime]=[clockTriggers[eventTime],"writeDataBus(0x"+value+");"].join("");
|
||||||
} else
|
} else
|
||||||
// run a test program, and optionally check against a golden checksum
|
// run a test program, and optionally check against a golden checksum
|
||||||
if(name=="steps" && parseInt(value)!=NaN){
|
if(name=="steps" && parseInt(value)!=NaN){
|
||||||
|
@ -224,9 +224,9 @@ fetchTriggers={};
|
|||||||
// simulate a single clock phase with no update to graphics or trace
|
// simulate a single clock phase with no update to graphics or trace
|
||||||
function halfStep(){
|
function halfStep(){
|
||||||
var clk = isNodeHigh(nodenames['clk0']);
|
var clk = isNodeHigh(nodenames['clk0']);
|
||||||
eval(clockTriggers[cycle]);
|
|
||||||
if (clk) {setLow('clk0'); handleBusRead(); }
|
if (clk) {setLow('clk0'); handleBusRead(); }
|
||||||
else {setHigh('clk0'); handleBusWrite();}
|
else {setHigh('clk0'); handleBusWrite();}
|
||||||
|
eval(clockTriggers[cycle]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleBusRead(){
|
function handleBusRead(){
|
||||||
|
Loading…
Reference in New Issue
Block a user