Meow/libs/logic.meow
Jump to navigation
Jump to search
logic.meow: Logic gates.
func and poparg arg1 poparg arg2 addret 0 big arg1 0 big arg2 0 addret 1 end end endf func or poparg arg1 poparg arg2 addret 1 small arg1 1 small arg2 1 addret 0 end end endf func not poparg arg1 sub 1 arg1 ret endf add 0 1 TRUE
Functions:
and(x,y): AND gate.or(x,y): OR gate.not(x): NOT gate.
Variables:
TRUE=1FALSE=0(Not in source code because variables in meow are 0 by default).