Changed getCurrentMicroInstructionAddress to use HighLevelStates
[Mograsim.git] / plugins / net.mograsim.logic.model.am2900 / src / net / mograsim / logic / model / am2900 / machine / Am2900Machine.java
index 759fda9..ab0643f 100644 (file)
@@ -165,8 +165,7 @@ public class Am2900Machine implements Machine
 
        private long getCurrentMicroInstructionAddress()
        {
-               // TODO: replace with highlevelstate
-               BitVector vector = logicModel.getWireBySubmodelPath("Am2900.wire_mpm_address").getWireValues();
+               BitVector vector = (BitVector) am2900.getHighLevelState("mpm_address");
                return vector.isBinary() ? vector.getUnsignedValueLong() : -1;
        }