X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=plugins%2Fnet.mograsim.logic.model.am2900%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fmodel%2Fam2900%2Fcomponents%2Fam2910%2FModelAm2910RegCntr.java;h=d7b32f01c84f19b8c42f66d3ec44c1d1fad66a3c;hb=4eca3e207d12fcfab3a406d59aab940b37d6f324;hp=baa19bf3fa88dfb8d029fd3d124635a595067f07;hpb=83a0505e2c104f18ffc6c67c25f523c72cac88a5;p=Mograsim.git diff --git a/plugins/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/components/am2910/ModelAm2910RegCntr.java b/plugins/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/components/am2910/ModelAm2910RegCntr.java index baa19bf3..d7b32f01 100644 --- a/plugins/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/components/am2910/ModelAm2910RegCntr.java +++ b/plugins/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/components/am2910/ModelAm2910RegCntr.java @@ -25,7 +25,6 @@ public class ModelAm2910RegCntr extends SimpleRectangularHardcodedModelComponent super(model, "Am2910RegCntr", name, "Register/\nCounter", false); setSize(40, 40); addPin(new Pin(model, this, "D", 12, PinUsage.INPUT, 20, 0), Position.BOTTOM); - addPin(new Pin(model, this, "_RLD", 1, PinUsage.INPUT, 0, 5), Position.RIGHT); addPin(new Pin(model, this, "LD", 1, PinUsage.INPUT, 0, 20), Position.RIGHT); addPin(new Pin(model, this, "DEC", 1, PinUsage.INPUT, 0, 30), Position.RIGHT); addPin(new Pin(model, this, "C", 1, PinUsage.INPUT, 40, 20), Position.LEFT); @@ -40,7 +39,6 @@ public class ModelAm2910RegCntr extends SimpleRectangularHardcodedModelComponent Bit[] QC = castAndInitState(lastState); ReadEnd D = readEnds.get("D"); - ReadEnd _RLD = readEnds.get("_RLD"); ReadEnd LD = readEnds.get("LD"); ReadEnd DEC = readEnds.get("DEC"); ReadEnd C = readEnds.get("C"); @@ -52,7 +50,8 @@ public class ModelAm2910RegCntr extends SimpleRectangularHardcodedModelComponent // TODO handle U/X/Z if (oldCVal == ZERO && CVal == ONE) { - if (LD.getValue() == ONE || _RLD.getValue() == ZERO) +// if (LD.getValue() == ONE || _RLD.getValue() == ZERO) + if (LD.getValue() == ONE) System.arraycopy(D.getValues().getBits(), 0, QC, 0, 12); else if (DEC.getValue() == ONE) {