mirror of
https://github.com/mist64/perfect6502.git
synced 2024-12-28 11:31:50 +00:00
cleanup
This commit is contained in:
parent
8c16a5006f
commit
8f6c156261
@ -62,8 +62,6 @@ typedef int BOOL;
|
||||
*
|
||||
************************************************************/
|
||||
|
||||
#define isNodeHigh(nn) (get_nodes_state_value(nn))
|
||||
|
||||
/* the smallest types to fit the numbers */
|
||||
typedef uint16_t nodenum_t;
|
||||
typedef uint16_t transnum_t;
|
||||
@ -345,7 +343,7 @@ addNodeToGroup(nodenum_t i)
|
||||
* 4. otherwise, if there is an 1/floating node, it's 1/floating
|
||||
* 5. otherwise, it's 0/floating (if there is a 0/floating node, which is always the case)
|
||||
*/
|
||||
void
|
||||
static inline void
|
||||
getNodeValue(BOOL *value, BOOL *floating)
|
||||
{
|
||||
if (group_contains(vss)) {
|
||||
@ -403,6 +401,8 @@ floatnode(nodenum_t nn)
|
||||
set_nodes_state_floating(nn, 1);
|
||||
}
|
||||
|
||||
static inline BOOL isNodeHigh(nodenum_t nn);
|
||||
|
||||
void
|
||||
recalcTransistor(transnum_t tn)
|
||||
{
|
||||
@ -502,6 +502,12 @@ recalcAllNodes()
|
||||
recalcNodeList(temp, NODES);
|
||||
}
|
||||
|
||||
/************************************************************
|
||||
*
|
||||
* Node State
|
||||
*
|
||||
************************************************************/
|
||||
|
||||
static inline void
|
||||
setNode(nodenum_t nn, BOOL state)
|
||||
{
|
||||
@ -522,6 +528,12 @@ setHigh(nodenum_t nn)
|
||||
setNode(nn, 1);
|
||||
}
|
||||
|
||||
static inline BOOL
|
||||
isNodeHigh(nodenum_t nn)
|
||||
{
|
||||
return get_nodes_state_value(nn);
|
||||
}
|
||||
|
||||
/************************************************************
|
||||
*
|
||||
* Address Bus and Data Bus Interface
|
||||
|
Loading…
Reference in New Issue
Block a user