Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            bool             tf = false;
            AssembledProgram ap;
            List <string>    fl = new List <string>();

            foreach (string s in args)
            {
                if (s == "/t" || s == "/trace")
                {
                    tf = true;
                }
                else
                {
                    fl.Add(s);
                }
            }
            ArmAssembler arms = new ArmAssembler(fl);

            arms.TraceParse = tf;
            arms.PerformPass();
            if (AssemblerErrors.ErrorReports.Count == 0)
            {
                arms.DumpInfo();
                arms.PlaceCode();
                ap = new AssembledProgram(arms.pcs.LoadPoint, arms.pcs.Length);
                arms.PerformPass(ap);
            }
            arms.DumpInfo();
        }
Ejemplo n.º 2
0
 public AssembledProgram(ArmAssembler ar) :
     this(ar.LoadPoint, ar.Length)
 {
 }