fix first pass size estimation to ensure no ZP modes get used for in-line data
This commit is contained in:
1 parent
3b7c941494
commit
d283c3243d
1 file changed
+3
-1
+3
-1
@@ -139,7 +139,9 @@ int main(int argc,char **argv)
|
|||||||
unlink("temp.s");
|
unlink("temp.s");
|
||||||
FILE *out=fopen("temp.s","w");
|
FILE *out=fopen("temp.s","w");
|
||||||
if (!out) DO_ERROR("Could not write to temp.s");
|
if (!out) DO_ERROR("Could not write to temp.s");
|
||||||
fprintf(out,"\t.org 0\n");
|
// Start at $100, so that no local data gets accesses using ZP addressing modes during this pass,
|
||||||
|
// which would otherwise upset things later
|
||||||
|
fprintf(out,"\t.org $100\n");
|
||||||
for(int i=0;i<source_count;i++) {
|
for(int i=0;i<source_count;i++) {
|
||||||
fprintf(out,"; Source file '%s'\n",source_files[i].file);
|
fprintf(out,"; Source file '%s'\n",source_files[i].file);
|
||||||
if (source_files[i].file[0]!=',')
|
if (source_files[i].file[0]!=',')
|
||||||
|
|||||||
Reference in new issue
Block a user