diff options
author | SmallJoker <mk939@ymail.com> | 2019-11-02 14:50:50 +0100 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2019-11-10 11:35:02 +0100 |
commit | 7784b13da5db3665a7839fe1cdcdfd9b30903c9a (patch) | |
tree | a8662e9d2acbd0de7f61e910b4e18c041f6c5b4f /mesecons_fpga | |
parent | 0dd530312b48e9452b6e6fec9cad6cf5918cec1d (diff) | |
download | mesecons-7784b13da5db3665a7839fe1cdcdfd9b30903c9a.tar mesecons-7784b13da5db3665a7839fe1cdcdfd9b30903c9a.tar.gz mesecons-7784b13da5db3665a7839fe1cdcdfd9b30903c9a.tar.bz2 mesecons-7784b13da5db3665a7839fe1cdcdfd9b30903c9a.tar.xz mesecons-7784b13da5db3665a7839fe1cdcdfd9b30903c9a.zip |
FPGA: Add NOR operand
Diffstat (limited to 'mesecons_fpga')
-rw-r--r-- | mesecons_fpga/init.lua | 1 | ||||
-rw-r--r-- | mesecons_fpga/logic.lua | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mesecons_fpga/init.lua b/mesecons_fpga/init.lua index 3ff43bc..fe02835 100644 --- a/mesecons_fpga/init.lua +++ b/mesecons_fpga/init.lua @@ -3,7 +3,6 @@ plg.rules = {} -- per-player formspec positions plg.open_formspecs = {} - local lcore = dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/logic.lua") dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/tool.lua")(plg) diff --git a/mesecons_fpga/logic.lua b/mesecons_fpga/logic.lua index d9a37ef..2f8c233 100644 --- a/mesecons_fpga/logic.lua +++ b/mesecons_fpga/logic.lua @@ -9,7 +9,8 @@ local operands = { { gate = "xor", short = "^", fs_name = " XOR", func = function(a, b) return a ~= b end }, { gate = "nand", short = "?", fs_name = "NAND", func = function(a, b) return not (a and b) end }, { gate = "buf", short = "_", fs_name = " =", func = function(a, b) return b end }, - { gate = "xnor", short = "=", fs_name = "XNOR", func = function(a, b) return a == b end } + { gate = "xnor", short = "=", fs_name = "XNOR", func = function(a, b) return a == b end }, + { gate = "nor", short = "!", fs_name = " NOR", func = function(a, b) return not (a or b) end }, } lg.get_operands = function() |