Beispiel #1
0
 /// <summary>
 /// In the original MK-52, the M->X does not do Bx storage!
 /// </summary>
 /// <param name="n">register number (0 to 19)</param>
 public void MtoX(int n)
 {
     //_rst.storeBx();
     _rst.push();
     if (n < 0 || n >= REGISTER_MEMORY_NVALS)
     {
         _rst.X.fromInt(0);
         return;
     }
     _rst.X.fromLocation(_registerAddress(n));
 }
Beispiel #2
0
        public override void execute(MK52_Host components, string command)
        {
            RPN_Stack s = _Stack(components);

            s.storeBx();
            s.push();
            s.X.fromReal(UniversalValue.__EE);
        }
        public override void execute(MK52_Host components, string command)
        {
            RPN_Stack s = _Stack(components);

            //s.storeBx(); // in MK-52 the Bx is not updated here
            s.push();
            s.X.fromString(command);
        }
Beispiel #4
0
        public override void execute(MK52_Host components, string command)
        {
            RPN_Stack s = _Stack(components);

            s.storeBx();
            s.push();
            double result = components._m_RPN_Functions.myRNG.NextDouble();

            s.X.fromReal(result);
        }
Beispiel #5
0
        public override void execute(MK52_Host components, string command)
        {
            RPN_Stack s = _Stack(components);

            s.storeBx();
            s.push();
            UniversalValue X = s.X;

            _ExtMem(components).toUV(X);
            if (X.isEmpty())
            {
                X.fromInt(0);
            }
        }