Now calling trace with the current line number as parameter.
This commit is contained in:
parent
e9850f2691
commit
8a7ee2ea50
1 changed files with 5 additions and 1 deletions
|
@ -52,7 +52,11 @@ int nr;
|
||||||
fprintf(tmpfile,"%d\n",currline->emlabel);
|
fprintf(tmpfile,"%d\n",currline->emlabel);
|
||||||
fprintf(tmpfile," lin %d\n",nr);
|
fprintf(tmpfile," lin %d\n",nr);
|
||||||
emlinecount += 2;
|
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)
|
emcode(operation,params)
|
||||||
|
|
Loading…
Add table
Reference in a new issue