mirror of
https://github.com/mist64/perfect6502.git
synced 2024-12-27 20:29:43 +00:00
cleanup
This commit is contained in:
parent
44ea268beb
commit
57d2ce2c91
@ -391,16 +391,15 @@ addNodeToGroup(nodenum_t i)
|
||||
|
||||
group_add(i);
|
||||
|
||||
if (i == vss || i == vcc)
|
||||
return;
|
||||
|
||||
/* revisit all transistors that are controlled by this node */
|
||||
if (i != vss && i != vcc)
|
||||
for (count_t t = 0; t < nodes_c1c2count[i]; t++)
|
||||
addNodeTransistor(i, nodes_c1c2s[i][t]);
|
||||
}
|
||||
|
||||
|
||||
static inline BOOL
|
||||
getNodeValue()
|
||||
getGroupValue()
|
||||
{
|
||||
if (group_contains(vss))
|
||||
return NO;
|
||||
@ -414,10 +413,7 @@ getNodeValue()
|
||||
if (group_contains_pullup)
|
||||
return YES;
|
||||
|
||||
if (group_contains_hi)
|
||||
return YES;
|
||||
else
|
||||
return NO;
|
||||
return group_contains_hi;
|
||||
}
|
||||
|
||||
void
|
||||
@ -471,7 +467,7 @@ recalcNode(nodenum_t node)
|
||||
addNodeToGroup(node);
|
||||
|
||||
/* get the state of the group */
|
||||
BOOL newv = getNodeValue();
|
||||
BOOL newv = getGroupValue();
|
||||
|
||||
/*
|
||||
* now all nodes in this group are in this state,
|
||||
|
Loading…
Reference in New Issue
Block a user