remove active low buses; add vertical gates and more rom sizes
This commit is contained in:
@@ -39,20 +39,25 @@ datablock fxDtsBrickData(LogicGate_Rom16x16_Data){
|
||||
;
|
||||
logicUpdate =
|
||||
"return function(gate) " @
|
||||
" local addr = (Gate.getportstate(gate, 1) and 1 or 0) " @
|
||||
" + (Gate.getportstate(gate, 2) and 2 or 0) " @
|
||||
" + (Gate.getportstate(gate, 3) and 4 or 0) " @
|
||||
" + (Gate.getportstate(gate, 4) and 8 or 0) " @
|
||||
" + (Gate.getportstate(gate, 5) and 16 or 0) " @
|
||||
" + (Gate.getportstate(gate, 6) and 32 or 0) " @
|
||||
" + (Gate.getportstate(gate, 7) and 64 or 0) " @
|
||||
" + (Gate.getportstate(gate, 8) and 128 or 0) " @
|
||||
" Gate.setportstate(gate, 9, gate.romdata[addr]) " @
|
||||
" if Gate.getportstate(gate, 10) then " @
|
||||
" Gate.setportstate(gate, 9, gate.romdata[( " @
|
||||
" (Gate.getportstate(gate, 1) and 1 or 0) " @
|
||||
" + (Gate.getportstate(gate, 2) and 2 or 0) " @
|
||||
" + (Gate.getportstate(gate, 3) and 4 or 0) " @
|
||||
" + (Gate.getportstate(gate, 4) and 8 or 0) " @
|
||||
" + (Gate.getportstate(gate, 5) and 16 or 0) " @
|
||||
" + (Gate.getportstate(gate, 6) and 32 or 0) " @
|
||||
" + (Gate.getportstate(gate, 7) and 64 or 0) " @
|
||||
" + (Gate.getportstate(gate, 8) and 128 or 0) " @
|
||||
" )]) " @
|
||||
" else " @
|
||||
" Gate.setportstate(gate, 9, false) " @
|
||||
" end " @
|
||||
"end"
|
||||
;
|
||||
logicGlobal = "";
|
||||
|
||||
numLogicPorts = 9;
|
||||
numLogicPorts = 10;
|
||||
|
||||
isLogicRom = true;
|
||||
logicRomY = 16;
|
||||
@@ -111,6 +116,12 @@ datablock fxDtsBrickData(LogicGate_Rom16x16_Data){
|
||||
logicPortDir[8] = 1;
|
||||
logicPortUIName[8] = "Out";
|
||||
|
||||
logicPortType[9] = 1;
|
||||
logicPortPos[9] = "15 -15 0";
|
||||
logicPortDir[9] = 2;
|
||||
logicPortUIName[9] = "In";
|
||||
logicPortCauseUpdate[9] = true;
|
||||
|
||||
};
|
||||
|
||||
function LogicGate_Rom16x16_Data::Logic_onAdd(%data, %brick) {
|
||||
|
||||
Reference in New Issue
Block a user