Exemplo n.º 1
0
        /// <summary>
        /// Assembles the Code and populates Instructions, Symbols and Errors.
        /// </summary>
        /// <returns>A value indicating if the assembly has been successful</returns>
        public bool Process()
        {
            Instructions.Clear();
            Symbols.Clear();
            Errors.Clear();
            DebugInformation.Clear();

            Parse();
            if (Errors.Count > 0)
            {
                return(false);
            }

            Translate();
            if (Errors.Count > 0)
            {
                return(false);
            }

            return(true);
        }