Beispiel #1
0
        public override byte tick(byte scancode)
        {
            LCD_Manager lm = _parent.getLCD();
            RPN_Stack   st = _parent._m_RPN_Stack;

            lm.updateStatusPC(_parent._m_Program_Memory.getCounter());
            lm.updateStatusMC(_parent._m_Extended_Memory.getCounter());
            lm.updateStatusDMODE(st.getDModeName());
            lm.updateCalcRegister(0, st.X.toString());
            lm.updateCalcLabel(0, st.X_Label);
            lm.updateCalcRegister(1, st.Y.toString());
            lm.updateCalcLabel(1, st.Y_Label);
            lm.updateCalcRegister(2, st.Z.toString());
            lm.updateCalcLabel(2, st.Z_Label);
            lm.updateCalcRegister(3, st.T.toString());
            lm.updateCalcLabel(3, st.T_Label);
            lm.requestUpdate();
            return(0);
        }
 private bool _writeStack(string returnReceiver)
 {
     if (_sd.println_P("#"))
     {
         return(true);
     }
     if (_sd.println_P("# MK-52 stack"))
     {
         return(true);
     }
     if (_sd.println_P("#"))
     {
         return(true);
     }
     if (_sd.print("DISPL="))
     {
         return(true);
     }
     if (_sd.println(returnReceiver))
     {
         return(true);
     }
     if (_sd.print("DMODE="))
     {
         return(true);
     }
     if (_sd.println(rpnStack.getDModeName()))
     {
         return(true);
     }
     if (_sd.print("EMODE="))
     {
         return(true);
     }
     if (_sd.println(progMem.getEModeName()))
     {
         return(true);
     }
     if (_sd.print("Bx="))
     {
         return(true);
     }
     if (_sd.println(rpnStack.Bx.toString()))
     {
         return(true);
     }
     if (_sd.print("X="))
     {
         return(true);
     }
     if (_sd.println(rpnStack.X.toString()))
     {
         return(true);
     }
     if (_sd.print("Y="))
     {
         return(true);
     }
     if (_sd.println(rpnStack.Y.toString()))
     {
         return(true);
     }
     if (_sd.print("Z="))
     {
         return(true);
     }
     if (_sd.println(rpnStack.Z.toString()))
     {
         return(true);
     }
     if (_sd.print("T="))
     {
         return(true);
     }
     if (_sd.println(rpnStack.T.toString()))
     {
         return(true);
     }
     if (!rpnStack.customLabels())
     {
         return(false);
     }
     if (_sd.print("LX="))
     {
         return(true);
     }
     if (_sd.println(rpnStack.X_Label))
     {
         return(true);
     }
     if (_sd.print("LY="))
     {
         return(true);
     }
     if (_sd.println(rpnStack.Y_Label))
     {
         return(true);
     }
     if (_sd.print("LZ="))
     {
         return(true);
     }
     if (_sd.println(rpnStack.Z_Label))
     {
         return(true);
     }
     if (_sd.print("LT="))
     {
         return(true);
     }
     if (_sd.println(rpnStack.T_Label))
     {
         return(true);
     }
     return(false);
 }