mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 22:12:25 +00:00
25 lines
642 B
C#
25 lines
642 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.IO;
|
|
|
|
namespace Indy.IL2CPU.Assembler {
|
|
public class RawAssembler : Assembler {
|
|
public RawAssembler() : base(null, false) { }
|
|
|
|
public string GetContents() {
|
|
using (var sw = new StringWriter()) {
|
|
var xLabels = new List<string>();
|
|
foreach (var xGroup in
|
|
(from item in Instructions select item.Key).Distinct()) {
|
|
EmitCodeSection(xGroup, sw, xLabels);
|
|
}
|
|
return sw.ToString();
|
|
}
|
|
}
|
|
|
|
protected override void EmitHeader(string aGroup, TextWriter aOutputWriter) { }
|
|
|
|
}
|
|
}
|