return (i+1);
}
- //dump1Token(*pat); DFPRINTF((stderr,"\n"));
+// dump1Token(*pat); fputc('\n', stderr); DFPRINTF((stderr,"\n"));
if(pct->tt != *pat)
return 0;
for( ; ln; ln = ln->next) {
//DFPRINTF((stderr,"%s\n",ln->line));
+// fprintf(stderr, "peep rule : %s\n", ln->line);
tokenizeLineNode(ln->line);
int i;
fprintf(stderr,"ERROR assembling line:\n%s\n",ln->line);
fprintf(stderr,"Tokens:\n");
- for(i=0; i<5; i++)
+ for(i=0; i<8; i++)
dump1Token(tokArr[i].tt);
fputc('\n',stderr);
exit (1);
peepRuleBlock2pCodeBlock(pr->match, ¤tRule->target);
//DFPRINTF((stderr,"finished target, here it is in pcode form:\n"));
- //pic16_printpBlock(stderr, currentRule->target.pb);
+// pic16_printpBlock(stderr, currentRule->target.pb);
//DFPRINTF((stderr,"target with labels merged:\n"));
//pic16_pBlockMergeLabels(curBlock);
if(!pcops || !pcopd)
return 0;
-/*
+
+#if 1
fprintf(stderr," Comparing operands %s",
pic16_get_op( pcops,NULL,0));
fprintf(stderr," to %s\n",
pic16_get_op( pcopd,NULL,0));
-*/
+#endif
if(pcops->type != pcopd->type) {
//fprintf(stderr," - fail - diff types\n");
if(!pcin && pct) {
DFPRINTF((stderr," partial match... no more code\n"));
- fprintf(stderr," partial match... no more code\n");
+// fprintf(stderr," partial match... no more code\n");
matched = 0;
}
if(!pct) {