using System; using System.Linq; namespace Indy.IL2CPU.Assembler { public class Comment: Instruction { public readonly string Text; public Comment(string aText) { if(aText.StartsWith(";")) { aText = aText.TrimStart(';').TrimStart(); } Text = aText; } public override string ToString() { return "; " + Text; } public override bool DetermineSize(Assembler aAssembler, out ulong aSize) { aSize = 0; return true; } public override bool IsComplete(Assembler aAssembler) { return true; } public override byte[] GetData(Assembler aAssembler) { return new byte[0]; } } }