public ushort[] Assemble(AssemblyContext ctx) { ctx.FullyResolvedLabels = text.Labels.Concat(globals.Labels).ToList(); return text.Assemble(ctx) .Concat(globals.Assemble(ctx)) .ToArray(); }
public ushort[] Assemble(AssemblyContext ctx) { var image = new ushort[instructions.AssembledLength()]; ushort memoryIndex = 0; foreach (var instruction in instructions) { Buffer.BlockCopy(instruction.Assemble(ctx), 0, image, memoryIndex * 2, instruction.AssembledLength * 2); memoryIndex += instruction.AssembledLength; } return image; }
public ushort[] Assemble(AssemblyContext ctx) { ctx.FullyResolvedLabels = text.Labels.Resolve(0).ToList(); return text.Assemble(ctx); }
public ushort[] Assemble(AssemblyContext ctx) { throw new NotImplementedException(); }