Cosmos/source2/VSIP/Cosmos.VS.Windows/AsmLine.cs
kudzu_cp 672b74000b
2012-03-25 20:39:21 +00:00

46 lines
933 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cosmos.VS.Windows {
public abstract class AsmLine {
}
public class AsmCode : AsmLine {
protected string mText;
public override string ToString() {
return mText;
}
public AsmCode(string aText) {
mText = aText;
}
}
public class AsmLabel : AsmLine {
protected string mLabel;
public string Label {
get { return mLabel; }
}
protected string mComment;
public string Comment {
get { return mComment; }
}
public override string ToString() {
string xResult = mLabel + ":";
if (mLabel.Length > 0) {
xResult = xResult + " ;" + mComment;
}
return xResult;
}
public AsmLabel(string aLabel, string aComment) {
mLabel = aLabel;
mComment = aComment;
}
}
}