[bug]passing steps on URL was not working
This commit is contained in:
parent
e93c11ab20
commit
c9443e6718
|
@ -57,7 +57,7 @@ var animateChipLayout = true;
|
||||||
var userCode=[];
|
var userCode=[];
|
||||||
var userResetLow;
|
var userResetLow;
|
||||||
var userResetHigh;
|
var userResetHigh;
|
||||||
var userSteps=1000;
|
var headlessSteps=1000;
|
||||||
var testprogram=[];
|
var testprogram=[];
|
||||||
var testprogramAddress;
|
var testprogramAddress;
|
||||||
|
|
||||||
|
@ -126,6 +126,8 @@ function setupParams(){
|
||||||
updateExpertMode(true);
|
updateExpertMode(true);
|
||||||
} else if(name=="graphics" && value.indexOf("f")==0){
|
} else if(name=="graphics" && value.indexOf("f")==0){
|
||||||
updateChipLayoutVisibility(false);
|
updateChipLayoutVisibility(false);
|
||||||
|
} else if(name=="headlesssteps" && parseInt(value)!=NaN){
|
||||||
|
headlessSteps=parseInt(value);
|
||||||
} else
|
} else
|
||||||
// place the graphics window at a point of interest
|
// place the graphics window at a point of interest
|
||||||
if(name=="panx" && parseInt(value)!=NaN){
|
if(name=="panx" && parseInt(value)!=NaN){
|
||||||
|
@ -148,7 +150,7 @@ function setupParams(){
|
||||||
// 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){
|
||||||
userSteps=parseInt(value);
|
userSteps=parseInt(value);
|
||||||
// running=true;
|
running=true;
|
||||||
} else if(name=="checksum" && parseInt(value,16)!=NaN){
|
} else if(name=="checksum" && parseInt(value,16)!=NaN){
|
||||||
goldenChecksum=(0x100000000+parseInt(value,16)).toString(16).slice(-8);
|
goldenChecksum=(0x100000000+parseInt(value,16)).toString(16).slice(-8);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -24,7 +24,6 @@ var centerx=300, centery=300;
|
||||||
var zoom=1;
|
var zoom=1;
|
||||||
var dragMouseX, dragMouseY, moved;
|
var dragMouseX, dragMouseY, moved;
|
||||||
var statbox;
|
var statbox;
|
||||||
var userSteps;
|
|
||||||
var animateChipLayout = true;
|
var animateChipLayout = true;
|
||||||
var userCode=[];
|
var userCode=[];
|
||||||
var userResetLow;
|
var userResetLow;
|
||||||
|
@ -195,4 +194,3 @@ function setChipStyle(props){
|
||||||
hitbuffer.style[i] = props[i];
|
hitbuffer.style[i] = props[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
14
macros.js
14
macros.js
|
@ -52,12 +52,12 @@ function loadProgram(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function go(){
|
function go(){
|
||||||
// if(userSteps!=undefined){
|
if(userSteps!=undefined){
|
||||||
// if(--userSteps==0){
|
if(--userSteps==0){
|
||||||
// running=false;
|
running=false;
|
||||||
// userSteps=undefined;
|
userSteps=undefined;
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
if(running) {
|
if(running) {
|
||||||
step();
|
step();
|
||||||
setTimeout(go, 0); // schedule the next poll
|
setTimeout(go, 0); // schedule the next poll
|
||||||
|
@ -386,7 +386,7 @@ function chipStatus(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function goFor(){
|
function goFor(){
|
||||||
var n = userSteps;
|
var n = headlessSteps;
|
||||||
estimatedHz1();
|
estimatedHz1();
|
||||||
while(--n){
|
while(--n){
|
||||||
halfStep();
|
halfStep();
|
||||||
|
|
Loading…
Reference in New Issue