Esempio n. 1
0
        public bool build()
        {
            error = false;
            assembler_Msg(" -------- BUILD STARTING -------------");

            assembler.basepath = solution.getbasepath();
            //assembler.ramstart = solution.details.ramstart;
            assembler.ramstart = 0x4000;


            assembler.Msg += new z80assembler.MsgHandler(assembler_Msg);

            assembler.reset();

            foreach (file f in solution.details.files)
            {
                if (f.assemblefile == true)
                {
                    assembler_Msg("\r\n Staring file " + f.name);
                    assembler.partialreset();
                    assembler.parse(solution.loadfile(f.name), f.name);
                    assembler.link(); // This is the per file link
                }
            }

            assembler_Msg(" \r\n-------- LINKING -------------\r\n ");

            assembler.finallink(); // This is the per file link

            assembler_Msg("\r\n --------DONE -------------");

            return(error);
        }
Esempio n. 2
0
        public void loadfile(string name)
        {
            EditorWindow ew   = new EditorWindow(name, solution);
            string       data = solution.loadfile(name, ew);

            ew.EditorClosing += new EditorWindow.EditorClosingHandler(ew_Closing);
            ew.settext(data);

            ew.MdiParent = this;
            ew.DockPanel = this.dockPanel;
            ew.Show();
            editors.Add(name, ew);
        }