Cosmos/source2/VSIP/Cosmos.VS.Windows/AsmLine.cs
kudzu_cp ff07240335
2012-03-25 21:55:46 +00:00

69 lines
1.4 KiB
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 string Text {
get { return mText; }
set { mText = value; }
}
public override string ToString() {
return mText;
}
protected AsmLabel mLabel;
public AsmLabel Label {
get { return mLabel; }
set { mLabel = value; }
}
public AsmCode(string aText) {
mText = aText;
}
}
public class AsmComment : AsmLine {
protected string mComment;
public override string ToString() {
return "; " + mComment;
}
public AsmComment(string aComment) {
mComment = aComment;
}
}
public class AsmLabel : AsmLine {
protected string mLabel;
public string Label {
get { return mLabel; }
}
protected string mComment = "";
public string Comment {
get { return mComment; }
set { mComment = value; }
}
public override string ToString() {
string xResult = mLabel + ":";
if (mLabel.Length > 0) {
xResult = xResult + " ;" + mComment;
}
return xResult;
}
public AsmLabel(string aLabel) {
mLabel = aLabel;
}
}
}