[bug]fixup nosim=t initialisation (if a simulation is started manually)

This commit is contained in:
BigEd 2010-11-05 21:39:01 +00:00
parent 353e0a8f78
commit e885646e5e
2 changed files with 3 additions and 0 deletions

View File

@ -103,6 +103,7 @@ function setup_part4(){
logThese=signalSet(loglevel); logThese=signalSet(loglevel);
loadProgram(); loadProgram();
if(noSimulation){ if(noSimulation){
stopChip();
running=undefined; running=undefined;
setStatus('Ready!'); setStatus('Ready!');
} else { } else {

View File

@ -366,6 +366,8 @@ function resetChip(){
} }
function stepForward(){ function stepForward(){
if(typeof running == "undefined")
initChip();
stopChip(); stopChip();
step(); step();
} }