Fixed a bug in Am2900; created dlatch8/80; relayouted some components
[Mograsim.git] / net.mograsim.logic.core / src / net / mograsim / logic / core / components / CoreMux.java
index a47ad6b..5b4220a 100644 (file)
@@ -71,7 +71,7 @@ public class CoreMux extends BasicCoreComponent
        public TimelineEventHandler compute()
        {
                int selectValue;
-               if (!select.hasNumericValue() || (selectValue = (int) select.getUnsignedValue()) >= inputs.length)
+               if (!select.getValues().isBinary() || (selectValue = (int) select.getValues().getUnsignedValueLong()) >= inputs.length)
                {
                        return e -> out.clearSignals();
                }