Beispiel #1
0
 public void A_XtoM(Int64 index)
 {
     if (index < 0 || index >= Extended_Memory.EXTENDED_MEMORY_NVALS)
     {
         _rst.setLabel_P(0, "No such address");
         return;
     }
     index = index % 10000;
     _emem.setCounter((uint)index);
     _emem.fromUV(_rst.X);
 }
 /// <summary>
 /// Some original MK-52 programs used PP for data entry;
 /// must simulate the same, although not obvious for debugging.
 /// the commented line is to revert to other logic
 /// </summary>
 public void executeStep()
 {
     // if( clearStopCondition()) return; // just move to the next line
     //clearStopCondition();
     //executeRun();
     //if (_atStop && progMem.isAtStop())
     //    rpnStack.setStackLabel_P(0, "STOP Reached");
     _atStop = false;
     if (progMem.isAtStop())
     {
         rpnStack.setLabel_P(0, "STOP Reached");
         progMem.incrementCounter();
         return;
     }
     executeRun();
 }