Ejemplo n.º 1
0
 public void m68000_stop_debug()
 {
     if (iStatus == 1)
     {
         GetData();
         m68000State     = M68000State.M68000_STOP;
         tsslStatus.Text = "m68000 stop";
         iStatus         = 2;
     }
     if (m68000State == M68000State.M68000_STEP)
     {
         m68000State     = M68000State.M68000_STOP;
         tsslStatus.Text = "m68000 stop";
     }
     if (iStatus == 0)
     {
         /*if(Memory.mainram[0xd1b]==0x05)
          * {
          *  iStatus = 1;
          *  GetData();
          *  m68000State = M68000State.M68000_STOP;
          *  tsslStatus.Text = "m68000 stop";
          * }*/
     }
 }
Ejemplo n.º 2
0
 private void btnGet_Click(object sender, EventArgs e)
 {
     m68000FState = m68000State;
     m68000State  = M68000State.M68000_STOP;
     GetData();
     m68000State = m68000FState;
 }
Ejemplo n.º 3
0
 private void btnStep3_Click(object sender, EventArgs e)
 {
     try
     {
         CyclesTill      = ulong.Parse(tbCyclesTill.Text, NumberStyles.HexNumber);
         m68000State     = M68000State.M68000_STEP3;
         tsslStatus.Text = "m68000 step3";
     }
     catch
     {
         tsslStatus.Text = "error TotalExecutedCycles";
     }
 }
Ejemplo n.º 4
0
 private void btnStep2_Click(object sender, EventArgs e)
 {
     try
     {
         PPCTill         = int.Parse(tbPPCTill.Text, NumberStyles.HexNumber);
         m68000State     = M68000State.M68000_STEP2;
         tsslStatus.Text = "m68000 step2";
     }
     catch
     {
         tsslStatus.Text = "error PPC";
     }
 }
Ejemplo n.º 5
0
 private void btnStep_Click(object sender, EventArgs e)
 {
     if (m68000State == M68000State.M68000_RUN)
     {
         m68000State     = M68000State.M68000_STOP;
         tsslStatus.Text = "m68000 stop";
     }
     else
     {
         m68000State     = M68000State.M68000_STEP;
         tsslStatus.Text = "m68000 step";
     }
 }
Ejemplo n.º 6
0
 public void m68000_start_debug()
 {
     if (bLogNew && lsPPC.IndexOf(MC68000.m1.PPC) < 0)
     {
         m68000FState = m68000State;
         m68000State  = M68000State.M68000_STOP;
         lsPPC.Add(MC68000.m1.PPC);
         tbResult.AppendText(MC68000.m1.Disassemble(MC68000.m1.PPC).ToString() + "\r\n");
         m68000State = m68000FState;
     }
     PPC = MC68000.m1.PPC;
     TotalExecutedCycles = MC68000.m1.TotalExecutedCycles;
     if (iStatus == 1)
     {
         iStatus = 0;
     }
     if (m68000State == M68000State.M68000_STEP2)
     {
         if (MC68000.m1.PPC == PPCTill)
         {
             m68000State = M68000State.M68000_STOP;
         }
     }
     if (m68000State == M68000State.M68000_STEP3)
     {
         if (MC68000.m1.TotalExecutedCycles >= CyclesTill)
         {
             m68000State = M68000State.M68000_STOP;
         }
     }
     if (cbLog.Checked == true && (m68000State == M68000State.M68000_STEP2 || m68000State == M68000State.M68000_STEP3))
     {
         GetData();
     }
     if (m68000State == M68000State.M68000_STOP)
     {
         GetData();
         tsslStatus.Text = "m68000 stop";
     }
     while (m68000State == M68000State.M68000_STOP)
     {
     }
 }
Ejemplo n.º 7
0
 private void btnStep4_Click(object sender, EventArgs e)
 {
     UI.single_step  = true;
     m68000State     = M68000State.M68000_RUN;
     tsslStatus.Text = "m68000 run";
 }
Ejemplo n.º 8
0
 private void btnRun_Click(object sender, EventArgs e)
 {
     m68000State     = M68000State.M68000_RUN;
     tsslStatus.Text = "m68000 run";
 }