Esempio n. 1
0
        public Program Assemble(Address addrBase, TextReader reader)
        {
            Assembler = new Pdp11Assembler(arch, addrBase, emitter);
            lexer     = new Lexer(reader);

            // Assemblers are strongly line-oriented.

            while (lexer.Peek().Type != TokenType.EOF)
            {
                ProcessLine();
            }

            //asm.ReportUnresolvedSymbols();
            StartAddress = addrBase;
            return(Assembler.GetImage());
        }
Esempio n. 2
0
        public Program Assemble(Address addrBase, TextReader reader)
        {
            arch      = new Pdp11Architecture(new ServiceContainer(), "pdp11", new Dictionary <string, object>());
            Assembler = new Pdp11Assembler(arch, addrBase, emitter);
            lexer     = new Lexer(reader);

            // Assemblers are strongly line-oriented.

            while (lexer.Peek().Type != TokenType.EOF)
            {
                ProcessLine();
            }

            //asm.ReportUnresolvedSymbols();
            StartAddress = addrBase;
            return(Assembler.GetImage());
        }
Esempio n. 3
0
        public Program Assemble(Address addrBase, TextReader reader)
        {
            arch = new Pdp11Architecture();
            Assembler = new Pdp11Assembler(arch, addrBase, emitter);
            lexer = new Lexer(reader);

            // Assemblers are strongly line-oriented.

            while (lexer.Peek().Type != TokenType.EOF)
            {
                ProcessLine();
            }

            //asm.ReportUnresolvedSymbols();
            StartAddress = addrBase;
            return Assembler.GetImage();
        }