Example #1
0
        private void runToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (asmFile == "")
            {
                MessageBox.Show("No input file!");
                return;
            }
            if (parsed == false)
            {
                MessageBox.Show("Parse the file first!");
                return;
            }

            if (assembler.ParseAndTransform(asmFile, binFile))
            {
                simulator = new Simulator(binFile);
                compiled  = true;


                refreshValues();
            }
            else
            {
                MessageBox.Show("Parsin error!");
            }
        }
Example #2
0
 private void parseToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (asmFile == "")
     {
         LOG("Nothing to parse! Please load a file!");
         return;
     }
     assembler = new Assembler();
     if (!assembler.ParseAndTransform(asmFile, binFile))
     {
         LOG(assembler.m_errorMessage);
         LOG("Failed to parse: " + asmFile);
         return;
     }
     parsed = true;
     LOG("Parse completed succesfully!");
     LOG("Binary file created: " + binFile);
 }