private static void OnReturningFromSubroutine(Object sender, ReturningFromSubroutineEventArgs e) { if (ReturningFromSubroutine != null) { ReturningFromSubroutine(null, e); } }
internal void OnReturingFromSubroutine(Object sender, ReturningFromSubroutineEventArgs e) { // RET 命令で SP が初期値ならば、実行を終了する。 CpuRegister sp = e.SP; e.Cancel = (sp.Value == InitialSp); }
private void OnReturningFromSubroutine(Object sender, ReturningFromSubroutineEventArgs e) { if (ReturningFromSubroutine != null) { ReturningFromSubroutine(this, e); m_continueToExecute = !e.Cancel; } }
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); }