Cosmos/source/Indy.IL2CPU.Assembler/Comment.cs
2007-11-17 12:53:28 +00:00

19 lines
No EOL
364 B
C#

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;
}
}
}