diff --git a/src/preprocess.c b/src/preprocess.c index 5a669483..5ec3273b 100644 --- a/src/preprocess.c +++ b/src/preprocess.c @@ -139,7 +139,9 @@ int main(int argc,char **argv) unlink("temp.s"); FILE *out=fopen("temp.s","w"); 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