mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 22:12:25 +00:00
46 lines
933 B
C#
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;
|
|
}
|
|
}
|
|
|
|
}
|