mirror of
https://github.com/trebonian/visual6502.git
synced 2024-12-22 12:29:20 +00:00
[dev]assist probing by optionally logging node info to console
This commit is contained in:
parent
8fbcefc2e2
commit
11ab9bafce
10
wires.js
10
wires.js
@ -299,8 +299,14 @@ function handleClick(e){
|
||||
else {var a=new Array(); a.push(w); hiliteNode(a);}
|
||||
var cx = Math.round(x*10000/600);
|
||||
var cy = Math.round(y*10000/600);
|
||||
if(w==-1) setStatus('x:',cx,'<br>','y:',cy);
|
||||
else {setStatus('x:',cx, 'y:', cy,'<br>','node:',w, nodeName(w));}
|
||||
if(w==-1) {
|
||||
setStatus('x:',cx,'<br>','y:',cy);
|
||||
} else {
|
||||
var s1='x: ' + cx + ' y: ' + cy;
|
||||
var s2='node: ' + w + ' ' + nodeName(w);
|
||||
setStatus(s1, '<br>', s2);
|
||||
if(ctrace) console.log(s1, s2);
|
||||
}
|
||||
}
|
||||
|
||||
function findNodeNumber(x,y){
|
||||
|
Loading…
Reference in New Issue
Block a user