super(model, "Am2910RegCntr", name, "Register/\nCounter", false);
setSize(40, 40);
addPin(new Pin(model, this, "D", 12, PinUsage.INPUT, 20, 0), Position.BOTTOM);
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, "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);
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);
ReadEnd LD = readEnds.get("LD");
ReadEnd DEC = readEnds.get("DEC");
ReadEnd C = readEnds.get("C");
ReadEnd LD = readEnds.get("LD");
ReadEnd DEC = readEnds.get("DEC");
ReadEnd C = readEnds.get("C");
System.arraycopy(D.getValues().getBits(), 0, QC, 0, 12);
else if (DEC.getValue() == ONE)
{
System.arraycopy(D.getValues().getBits(), 0, QC, 0, 12);
else if (DEC.getValue() == ONE)
{