Example #1
0
File: Form1.cs Project: atfzl/AT85
        int usedRamSize = 0; // the RAM occupied by assembly program

        #endregion Fields

        #region Constructors

        // Consrtuctor for form
        public Form1()
        {
            a = new Assembler85();  // create an object for assembler
            InitializeComponent();
            showMemoryPanel(0x2000);    // draw memory panel from location 0x2000
            showPortPanel(0x00);        // draw port panel from location 0x00
            programBackup = richTextBox1.Text;
        }
Example #2
0
File: Form1.cs Project: atfzl/AT85
 private void toolStripButtonRestartSimulator_Click(object sender, EventArgs e)
 {
     programBackup = richTextBox1.Text;
     a = new Assembler85();
     showMemoryPanel(0x2000);
     showPortPanel(0x00);
     updateRegisters();
     updateFlags();
     textBoxMessage.Text = "";
     buttonRun.Visible = false;
     buttonCreateList.Visible = false;
     toolStripButtonStartDebug.Visible = false;
     toolStripButtonStepIn.Visible = false;
     richTextBox1.Clear();
     richTextBox1.Text = programBackup;
 }