Exemple #1
0
 /// <summary>
 /// Injects a opcode into the CPU based on whats in the opCodeInjectBox
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void injectButton_Click(object sender, RoutedEventArgs e)
 {
     if (opCodeInjectBox.Text != "" && cpu_ != null)
     {
         int  opcode;
         bool success = int.TryParse(opCodeInjectBox.Text, out opcode);
         if (success)
         {
             cpu_.Inject(opcode);
         }
     }
 }