git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@574
4a8a32a2-be11-0410-ad9d-
d568d2c75423
if (fmt && *fmt)
sprintf(lb,"%s\t",inst);
else
+#if 1
+ {
+ /* for some reason the parser throws in a mysterious "Y" at
+ the end of inline assembly code.
+ Do a make in device/lib and you know all about it.
+ */
+ int i=0;
+ while(inst[i]==' ')
+ i++;
+ if (strcmp(&inst[i],"Y")==0) {
+ fprintf (stderr, "===> BEWARE of the inline Y bug hack <===\n");
+ return;
+ } else {
+ sprintf(lb,"%s",inst);
+ }
+ }
+#else
sprintf(lb,"%s",inst);
+#endif
vsprintf(lb+(strlen(lb)),fmt,ap);
} else
vsprintf(lb,fmt,ap);