Made finding the ID of a JsonSerializable less ugly
[Mograsim.git] / net.mograsim.logic.model.am2900 / src / net / mograsim / logic / model / am2900 / components / am2910 / GUIAm2910SP.java
index fb449d2..cbd4251 100644 (file)
@@ -22,7 +22,7 @@ public class GUIAm2910SP extends SimpleRectangularHardcodedGUIComponent
 {
        public GUIAm2910SP(ViewModelModifiable model, String name)
        {
-               super(model, name, "Stack\npointer");
+               super(model, "GUIAm2910SP", name, "Stack\npointer");
                setSize(40, 30);
                addPin(new Pin(this, "STKI0", 1, PinUsage.INPUT, 0, 5), Position.RIGHT);
                addPin(new Pin(this, "STKI1", 1, PinUsage.INPUT, 0, 15), Position.RIGHT);
@@ -122,7 +122,6 @@ public class GUIAm2910SP extends SimpleRectangularHardcodedGUIComponent
                        return BitVector.of(X, 3);
                if (i == -2)
                        return BitVector.of(U, 3);
-               // TODO maybe this is the wrong way around
                return BitVector.of((i & 0b100) > 0 ? ONE : ZERO, (i & 0b10) > 0 ? ONE : ZERO, (i & 0b1) > 0 ? ONE : ZERO);
        }