private void FirstPass(LabelStore labelStore, MacroStore macroStore) { var instructionResolver = new InstructionResolver(labelStore, macroStore); var parser = new Parser(instructionResolver); parser.Parse(source); }
private MemoryImage SecondPass(LabelStore labelStore, MacroStore macroStore) { labelStore.ClearReferencedLabels(); var instructionResolver = new InstructionResolver(labelStore, macroStore); var parser = new Parser(instructionResolver); parser.Parse(source); return instructionResolver.CreateMemoryImage(); }