Cosmos/source/Indy.IL2CPU/Assembler/ElementReference.cs
mterwoord_cp 5928581f2f
2008-11-07 12:27:08 +00:00

36 lines
759 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU.Assembler {
public class ElementReference {
public ElementReference(string aName, int aOffset)
: this(aName) {
Offset = aOffset;
}
public ElementReference(string aName) {
Name = aName;
}
public int Offset {
get;
set;
}
public string Name {
get;
set;
}
public override string ToString() {
if (Offset != 0) {
return Name + " + " + Offset;
}else {
return Name;
}
}
}
}