-
Notifications
You must be signed in to change notification settings - Fork 140
Open
Description
/* nodenames.js */
var input_pins = [
'res',
'db0',
'db1',
'db3',
'db2',
'db5',
'db4',
'db7',
'db6',
'so',
'clk0',
'rdy',
'nmi',
'irq',
];
input_clock_pin = (nodenames['clk0']);
input_pins = (input_pins.map((function (e){return (nodenames[e]);})));
/* expertWires.js */
function isInputPin(nn)
{
return ((input_pins != undefined)
&& (arrayContains(input_pins, nn)));
}
function handleClick(e)
{
/* line 519 */
if ((e.altKey)
&& (isInputPin(w)))
{
if (w == input_clock_pin)
{
stepForward();
return;
}
toggleNode(w);
refresh();
return;
}
}
/* chipsim.js */
function toggleNode(nn)
{
var node;
node = nodes[nn];
node.pullup = !(node.pullup);
node.pulldown = !(node.pulldown);
recalcNodeList([nn]);
}
Metadata
Metadata
Assignees
Labels
No labels