1
0
mirror of https://github.com/mist64/perfect6502.git synced 2024-12-27 20:29:43 +00:00

Fixed console references for Firefox

This commit is contained in:
Barry Silverman 2010-09-19 03:02:26 -04:00
parent 470080015d
commit ef88fdeb90
3 changed files with 4 additions and 5 deletions

View File

@ -35,7 +35,7 @@ function recalcNodeList(list){
list = recalclist;
recalclist = new Array();
}
console.log(n,'looping...');
if(ctrace) console.log(n,'looping...');
}
function recalcNode(node, recalclist){
@ -131,7 +131,7 @@ function getNodeValue(group){
if((n.state=='fl')&&(flstate==undefined)) flstate = 'fl';
if(n.state=='fh') flstate = 'fh';
}
if(flstate==undefined) console.log(group);
if(flstate==undefined && ctrace) console.log(group);
return flstate;
}

View File

@ -104,7 +104,7 @@ function initChip(){
cycle = 0;
trace = Array();
chipStatus();
console.log('initChip done after', now()-start);
if(ctrace)console.log('initChip done after', now()-start);
}
function step(){
@ -275,7 +275,7 @@ function chipStatus(){
' clearIR:' + readBit('clearIR') +
' D1x1:' + readBit('D1x1');
setStatus(machine1 + "<br>" + machine2);
if (loglevel>2) {
if (loglevel>2 && ctrace) {
console.log(machine1 + " " + machine2 + " " + machine3 + " " + machine4 + " " + machine5);
}
selectCell(ab);

View File

@ -115,7 +115,6 @@ function setupLayerVisibility(){
}
function setupBackground(){
console.log('starting setupBackground');
chipbg = document.getElementById('chipbg');
chipbg.width = 4000;
chipbg.height = 4000;