pic16initialComments (asmFile);
/* print module name */
- fprintf (asmFile, ";\t.module %s\n", moduleName);
+// fprintf (asmFile, ";\t.module %s\n", moduleName);
+ fprintf(asmFile, "#FILE\t\"%s\"\n", fullSrcFileName);
/* Let the port generate any global directives, etc. */
if (port->genAssemblerPreamble) {
{
_asmCmd, /* assembler command and arguments */
NULL, /* alternate macro based form */
- NULL, /* arguments for debug mode */
+ "-g", /* arguments for debug mode */
NULL, /* arguments for normal mode */
0, /* print externs as global */
".asm", /* assembler file extension */
SAFE_snprintf(&s,&size,";\t--FLOW change\n");
break;
case PC_CSOURCE:
- SAFE_snprintf(&s,&size,";#CSRC\t%s %d\t%s\n", PCCS(pc)->file_name, PCCS(pc)->line_number, PCCS(pc)->line);
+// SAFE_snprintf(&s,&size,";#CSRC\t%s %d\t%s\n", PCCS(pc)->file_name, PCCS(pc)->line_number, PCCS(pc)->line);
+ SAFE_snprintf(&s,&size,"#LINE\t%d; %s\t%s\n", PCCS(pc)->line_number, PCCS(pc)->file_name, PCCS(pc)->line);
break;
case PC_ASMDIR:
if(PCAD(pc)->directive) {
break;
case PC_CSOURCE:
- fprintf(of,";#CSRC\t%s %d\t\t%s\n", PCCS(pc)->file_name, PCCS(pc)->line_number, PCCS(pc)->line);
+// fprintf(of,";#CSRC\t%s %d\t\t%s\n", PCCS(pc)->file_name, PCCS(pc)->line_number, PCCS(pc)->line);
+ fprintf(of,"#LINE\t%d; %s\t%s\n", PCCS(pc)->line_number, PCCS(pc)->file_name, PCCS(pc)->line);
+
break;
case PC_ASMDIR: