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(); }
public OperandParser(Pdp11Architecture arch, Lexer lexer, Pdp11Assembler asm) { this.arch = arch; this.lexer = lexer; this.asm = asm; }