make rom update on reload, fix braces in text brick, fix half adder crash

This commit is contained in:
Redo 2022-11-02 13:38:32 -06:00
parent 5f0dc0ecc7
commit 24daeae79b

View File

@ -18,7 +18,7 @@ datablock fxDTSBrickData(LogicGate_HalfAdder_Data)
logicUpdate =
"return function(gate) " @
" Gate.setportstate(gate, 3, bit.bxor(Gate.getportstate(gate, 1), Gate.getportstate(gate, 2)) == 1) " @
" Gate.setportstate(gate, 3, bit.bxor(Gate.getportstate(gate, 1), Gate.getportstate(gate, 2))) " @
" Gate.setportstate(gate, 4, (Gate.getportstate(gate, 1) and Gate.getportstate(gate, 2)) and 1 or 0) " @
"end"
;