From aed0d9a3c37cebb48956c7ab9a3dc4ec11e8d862 Mon Sep 17 00:00:00 2001 From: "Dr. Fiemost" Date: Tue, 17 Jan 2017 20:53:44 +0100 Subject: [PATCH] Fix https://github.com/mist64/perfect6502/issues/3 --- netlist_sim.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/netlist_sim.c b/netlist_sim.c index 5a73b6e..2a122d1 100644 --- a/netlist_sim.c +++ b/netlist_sim.c @@ -615,12 +615,11 @@ stabilizeChip(state_t *state) void setNode(state_t *state, nodenum_t nn, BOOL s) { - BOOL oldstate = get_nodes_pullup(state, nn); - if (s != oldstate) { - set_nodes_pullup(state, nn, s); - set_nodes_pulldown(state, nn, !s); - listout_add(state, nn); - } + set_nodes_pullup(state, nn, s); + set_nodes_pulldown(state, nn, !s); + listout_add(state, nn); + + recalcNodeList(state); } BOOL