Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_ #69

Open
jdbgn opened this issue Jan 8, 2023 · 1 comment
Open

_ #69

jdbgn opened this issue Jan 8, 2023 · 1 comment

Comments

@jdbgn
Copy link

jdbgn commented Jan 8, 2023

/* 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]);
}
@jdbgn jdbgn changed the title feature req click with altKey toggles input pins _ Jan 10, 2023
@jeffythedragonslayer
Copy link

Welcome to GitHub. I think you accidentally deleted the name of this feature request. If you already have code to contribute, then please fork this repo and open a pull request against the upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants