mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-21 13:28:41 +00:00
This commit is contained in:
parent
f9fdd0ec3a
commit
4212e55c81
1 changed files with 22 additions and 0 deletions
|
|
@ -26,5 +26,27 @@ namespace XSharp.Nasm {
|
|||
public void Cmp(string aSize, string aDst, string aSrc) {
|
||||
Code.Add("Cmp " + (aSize + " ").TrimStart() + aDst + ", " + aSrc);
|
||||
}
|
||||
|
||||
public string GetCode(bool endNewLine = true) {
|
||||
string ret = "";
|
||||
|
||||
foreach (string c in Code)
|
||||
ret += c + Environment.NewLine;
|
||||
if (!endNewLine)
|
||||
ret = ret.Remove(ret.Length - Environment.NewLine.Length);
|
||||
|
||||
return ret;
|
||||
}
|
||||
public string GetData(bool endNewLine = true)
|
||||
{
|
||||
string ret = "";
|
||||
|
||||
foreach (string d in Data)
|
||||
ret += d + Environment.NewLine;
|
||||
if (!endNewLine)
|
||||
ret = ret.Remove(ret.Length - Environment.NewLine.Length);
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue