示例#1
0
 private void memoryToolStripMenuItem_Click(object sender, EventArgs e)
 {
     //if(thread.ThreadState == 0)
     //{
     //   MessageBox.Show("Memory not ready. Try again in 5 seconds!");
     //}
     // else
     //{
     memoryDump = new MemoryDump();
     memoryDump.Show();
     // }
 }
示例#2
0
        private void refreshValues()
        {
            tADR.Text   = Convert.ToString(Simulator.ADR);
            tMDR.Text   = Convert.ToString(Simulator.MDR);
            tPC.Text    = Convert.ToString(Simulator.PC);
            tIR.Text    = Convert.ToString(Simulator.IR);
            tFLAGS.Text = Convert.ToString(Simulator.FLAG);
            tSP.Text    = Convert.ToString(Simulator.SP);
            tT.Text     = Convert.ToString(Simulator.T);
            tIVR.Text   = Convert.ToString(Simulator.IVR);

            lRegisterss.Text = "R0 = " + Simulator.Register[0] + "\n" +
                               "R1 = " + Simulator.Register[1] + "\n" +
                               "R2 = " + Simulator.Register[2] + "\n" +
                               "R3 = " + Simulator.Register[3] + "\n" +
                               "R4 = " + Simulator.Register[4] + "\n" +
                               "R5 = " + Simulator.Register[5] + "\n" +
                               "R6 = " + Simulator.Register[6] + "\n" +
                               "R7 = " + Simulator.Register[7] + "\n" +
                               "R8 = " + Simulator.Register[8] + "\n" +
                               "R9 = " + Simulator.Register[9] + "\n" +
                               "R10 = " + Simulator.Register[10] + "\n" +
                               "R11 = " + Simulator.Register[11] + "\n" +
                               "R12 = " + Simulator.Register[12] + "\n" +
                               "R13 = " + Simulator.Register[13] + "\n" +
                               "R14 = " + Simulator.Register[14] + "\n" +
                               "R15 = " + Simulator.Register[15] + "\n" + "\n" + "\n" +
                               "PC = " + Simulator.PC + "\n" +
                               "ADR = " + Simulator.ADR + "\n" +
                               "MDR = " + Simulator.MDR + "\n" +
                               "SP = " + Simulator.SP + "\n" + "\n" + "\n" +
                               "DBUS = " + Simulator.DBUS + "\n" +
                               "SBUS = " + Simulator.SBUS + "\n" +
                               "RBUS = " + Simulator.RBUS + "\n" + "\n" + "\n" +
                               "SF = " + (Simulator.FLAG & 1) + "\n" +
                               "CF = " + ((Simulator.FLAG >> 1) & 1) + "\n" +
                               "ZF = " + ((Simulator.FLAG >> 2) & 1) + "\n" +
                               "OF = " + ((Simulator.FLAG >> 3) & 1) + "\n";

            if (interruptCheck == false)
            {
                cInterrupt.Checked = false;
            }

            memoryDump = new MemoryDump();
        }