Added labels, SIEZ attribute for labels, dependent labels etc.

git-svn-id: svn://svn.cc65.org/cc65/trunk@343 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2000-09-29 12:26:34 +00:00
parent c15fb9b50f
commit 97f9682307
11 changed files with 273 additions and 48 deletions

View File

@@ -146,8 +146,8 @@ void LineFeed (void)
++Page;
PageHeader ();
Line = 4;
}
Col = 1;
}
Col = 1;
}
}
@@ -158,7 +158,7 @@ void DefLabel (const char* Name)
{
Output ("%s:", Name);
/* Don't start a new line if the label is fully in the left column */
if (Col >= MIndent-1) {
if (Col > MIndent) {
LineFeed ();
}
}
@@ -174,11 +174,11 @@ void DataByteLine (unsigned ByteCount)
Output (".byte");
Indent (AIndent);
for (I = 0; I < ByteCount; ++I) {
if (I > 0) {
Output (",$%02X", CodeBuf[PC+I]);
} else {
Output ("$%02X", CodeBuf[PC+I]);
}
if (I > 0) {
Output (",$%02X", CodeBuf[PC+I]);
} else {
Output ("$%02X", CodeBuf[PC+I]);
}
}
LineComment (PC, ByteCount);
LineFeed ();