Beispiel #1
0
 private static void OnReturningFromSubroutine(Object sender, ReturningFromSubroutineEventArgs e)
 {
     if (ReturningFromSubroutine != null)
     {
         ReturningFromSubroutine(null, e);
     }
 }
Beispiel #2
0
        internal void OnReturingFromSubroutine(Object sender, ReturningFromSubroutineEventArgs e)
        {
            // RET 命令で SP が初期値ならば、実行を終了する。
            CpuRegister sp = e.SP;

            e.Cancel = (sp.Value == InitialSp);
        }
Beispiel #3
0
 private void OnReturningFromSubroutine(Object sender, ReturningFromSubroutineEventArgs e)
 {
     if (ReturningFromSubroutine != null)
     {
         ReturningFromSubroutine(this, e);
         m_continueToExecute = !e.Cancel;
     }
 }
Beispiel #4
0
        private static Boolean OnReturningFromSubroutine(CpuRegister sp)
        {
            Boolean cancel = false;

            if (ReturningFromSubroutine != null)
            {
                ReturningFromSubroutineEventArgs e = new ReturningFromSubroutineEventArgs(sp);
                ReturningFromSubroutine(null, e);
                cancel = e.Cancel;
            }

            return(cancel);
        }