Now calling trace with the current line number as parameter.
authorkeie <none@none>
Fri, 8 Feb 1985 13:18:26 +0000 (13:18 +0000)
committerkeie <none@none>
Fri, 8 Feb 1985 13:18:26 +0000 (13:18 +0000)
lang/basic/src.old/gencode.c

index 03bcd17..e36aa7b 100644 (file)
@@ -52,7 +52,11 @@ int nr;
        fprintf(tmpfile,"%d\n",currline->emlabel);
        fprintf(tmpfile," lin %d\n",nr);
        emlinecount += 2;
-       if( tronoff || traceflag) emcode("cal","$_trace");
+       if( tronoff || traceflag) {
+               emcode("loc",itoa(nr));
+               emcode("cal","$_trace");
+               emcode("asp","EM_WSIZE");
+       }
 }
 
 emcode(operation,params)