remove c logic and data from network, more work on compiled gate funcs

This commit is contained in:
Redo
2022-11-13 22:43:36 -06:00
parent 1eba4bb2fa
commit bcebfed077
6 changed files with 90 additions and 34 deletions

View File

@@ -1,17 +1,21 @@
GATEFUNC(Diode) { setport(2, getport(1)); }
GATEFUNC(Not) { setport(2, !getport(1)); }
////
// Auto-generated by gencfuncs.lua
enum GateFuncs {
GateFunc_None,
GateFunc_Diode = 1,
GateFunc_Not = 2,
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),
};