lua-logic/sim/compiled_sim_gates.c

22 lines
276 B
C

// Auto-generated by gencfuncs.lua
enum GateFuncs {
GateFunc_None,
GateFunc_Diode,
GateFunc_Not,
};
GATEFUNC(Diode) {
setport(2, getport(1));
}
GATEFUNC(Not) {
setport(2, !getport(1));
}
GateFunc sim_logic_functions[] = {
0,
GATEFUNCID(Diode),
GATEFUNCID(Not),
};