//Processes file, displaying the result of the operations in the status bar.
        public void ProccessFile(string file, byte[] cells)
        {
            bool vldfile    = Opt.Vldfile(file);
            bool fileLoaded = true;

            if (vldfile == true && (fileLoaded = fileLoader.LoadElf(file, cells)))
            {
                UpdateStatusBar(messages[0], file, asim.CompRAM.CheckSum(cells));

                asim.Registers.WriteWord(fileLoader.P_entry, 0x3c);
                FileSetup = true;

                //Can be simplified, but oh well..
                btnRun.IsEnabled = true;
                btnRun.SetBinding(Button.IsEnabledProperty, "Running");
                asim.Adjust_Reset();
                FillGrids(true);
            }
            else
            {
                string st = fileLoaded ? Opt.Valid : messages[1];
                UpdateStatusBar(st, "(None)", 0);
            }
        }