mirror of
https://github.com/trebonian/visual6502.git
synced 2025-01-15 02:30:06 +00:00
Merge branch 'master' into gh-pages
This commit is contained in:
commit
60b4ecab22
@ -52,7 +52,7 @@ var drawlayers = [true, true, true, true, true, true];
|
||||
|
||||
// some modes and parameters which can be passed in from the URL query
|
||||
var moveHereFirst;
|
||||
var expertMode=false
|
||||
var expertMode=true;
|
||||
var animateChipLayout = true;
|
||||
var userCode=[];
|
||||
var userResetLow;
|
||||
@ -82,7 +82,7 @@ function setup_part2(){
|
||||
setupNodes();
|
||||
setupTransistors();
|
||||
setupParams();
|
||||
updateExpertMode(expertMode);
|
||||
setupExpertMode();
|
||||
detectOldBrowser();
|
||||
setStatus('loading graphics...');
|
||||
setTimeout(setup_part3, 0);
|
||||
@ -154,8 +154,6 @@ function setupParams(){
|
||||
updateLoglevel(value);
|
||||
} else if(name=="logmore" && value!=""){
|
||||
updateLogList(value);
|
||||
} else if(name=="expert" && value.indexOf("t")==0){
|
||||
updateExpertMode(true);
|
||||
} else if(name=="headlesssteps" && parseInt(value)!=NaN){
|
||||
headlessSteps=parseInt(value);
|
||||
} else if(name=="graphics" && value.indexOf("f")==0){
|
||||
@ -346,8 +344,7 @@ function updateLoglevel(value){
|
||||
initLogbox(logThese);
|
||||
}
|
||||
|
||||
function updateExpertMode(isOn){
|
||||
expertMode=true
|
||||
function setupExpertMode(isOn){
|
||||
document.getElementById('expertControlPanel').style.display = 'block';
|
||||
if(loglevel==0)
|
||||
updateLoglevel(1);
|
||||
@ -367,8 +364,7 @@ function updateChipLayoutVisibility(isOn){
|
||||
// replace the Show Chip button with the chip graphics
|
||||
chipsurround=document.getElementById('chipsurround');
|
||||
chipsurround.style.display = 'block';
|
||||
if(expertMode)
|
||||
document.getElementById('layoutControlPanel').style.display = 'block';
|
||||
document.getElementById('layoutControlPanel').style.display = 'block';
|
||||
document.getElementById('nochip').style.display = 'none';
|
||||
// allow the browser to respond while we load the graphics
|
||||
setStatus('loading graphics...');
|
||||
|
@ -157,7 +157,8 @@ function initChip(){
|
||||
refresh();
|
||||
cycle = 0;
|
||||
trace = Array();
|
||||
updateLogList();
|
||||
if(typeof expertMode != "undefined")
|
||||
updateLogList();
|
||||
chipStatus();
|
||||
if(ctrace)console.log('initChip done after', now()-start);
|
||||
}
|
||||
@ -187,7 +188,6 @@ function updateLogList(names){
|
||||
if(typeof busToString(names[i]) != "undefined")
|
||||
logThese.push(names[i]);
|
||||
}
|
||||
console.log(logThese);
|
||||
initLogbox(logThese);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user