예제 #1
0
 protected virtual void OnErrorOccured(NESEventArgs e)
 {
     if (ErrorOccurred != null)
     {
         ErrorOccurred.Invoke(this, e);
         Execution.WaitOne();
     }
 }
예제 #2
0
 protected virtual void OnInstructionExecuted(NESEventArgs e)
 {
     if (InstructionExecuted != null)
     {
         InstructionExecuted.Invoke(this, e);
         Execution.WaitOne();
     }
 }
예제 #3
0
 protected virtual void OnLoopBeginning(NESEventArgs e)
 {
     if (LoopBeginning != null)
     {
         LoopBeginning.Invoke(this, e);
         Execution.WaitOne();
     }
 }
예제 #4
0
 private void Nes_ErrorOccurred(object sender, NESEventArgs e)
 {
     nesEventOccured.Set();
     Debug(nes.CPU, nes.CPU.Memory.Memory, e.Message);
 }
예제 #5
0
 private void Nes_LoopBeginning(object sender, NESEventArgs e)
 {
     nesEventOccured.Set();
     Debug(nes.CPU, nes.CPU.Memory.Memory, e.Message);
 }