lua-logic/sim/compiled_sim_gates.c
2022-11-09 13:22:06 -06:00

18 lines
260 B
C

GATEFUNC(Diode) { setport(2, getport(1)); }
GATEFUNC(Not) { setport(2, !getport(1)); }
////
enum GateFuncs {
GateFunc_None,
GateFunc_Diode = 1,
GateFunc_Not = 2,
};
GateFunc sim_logic_functions[] = {
0,
GATEFUNCID(Diode),
GATEFUNCID(Not),
};