mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 12:58:39 +00:00
19 lines
No EOL
364 B
C#
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;
|
|
}
|
|
}
|
|
} |