add c gate sim
This commit is contained in:
21
sim/compiled_sim_gates.c
Normal file
21
sim/compiled_sim_gates.c
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
GATEFUNC(Diode) {
|
||||
setport(2, getport(1));
|
||||
}
|
||||
GATEFUNC(Not) {
|
||||
setport(2, !getport(1));
|
||||
}
|
||||
|
||||
////
|
||||
|
||||
enum GateFuncs {
|
||||
GateFunc_None,
|
||||
GateFunc_Diode,
|
||||
GateFunc_Not,
|
||||
};
|
||||
|
||||
GateFunc sim_logic_functions[] = {
|
||||
0,
|
||||
GATEFUNCID(Diode),
|
||||
GATEFUNCID(Not),
|
||||
};
|
||||
Reference in New Issue
Block a user