public static void ToConsole(this IAssemblerConfig config) { Console.WriteLine(); OutputFileInfo("Source file:", config.SourceFilename); OutputFileInfo("Output file:", config.BinaryFilename); OutputFileInfo("Symbol file:", config.SymbolFilename); Console.WriteLine(); }
public Assembler(IParser parser, ICodeGenerator codeGenerator, IHostApplicationLifetime applicationLifetime, IAssemblerConfig config, ILogger <Assembler> logger) { this.parser = parser ?? throw new ArgumentNullException(nameof(parser)); this.applicationLifetime = applicationLifetime; this.config = config; this.logger = logger; CodeGenerator = codeGenerator ?? throw new ArgumentNullException(nameof(codeGenerator)); }
public CodeGenerator(ISymbolTable symbolTable, IRandomAccessMemory ram, IAssemblerConfig config) { this.config = config ?? throw new ArgumentNullException(nameof(config)); SymbolTable = symbolTable ?? throw new ArgumentNullException(nameof(symbolTable)); Ram = ram ?? throw new ArgumentNullException(nameof(ram)); }