Skip to content

Commit

Permalink
FPGA: Add NOR operand
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker committed Nov 10, 2019
1 parent 0dd5303 commit 7784b13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion mesecons_fpga/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 2 additions & 1 deletion mesecons_fpga/logic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7784b13

Please sign in to comment.