X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=as%2Fxa51%2Fxa_main.c;h=63152a6216633444a29a76fac3a8e1f8527ca352;hb=7bd65e1fe4f20a1fbfd8efee29982849824704bd;hp=50c1d44d0c758c99251f831bb3c574694a5cf778;hpb=0f13c644cfaea92c44ee33764cce21da520676f1;p=fw%2Fsdcc diff --git a/as/xa51/xa_main.c b/as/xa51/xa_main.c index 50c1d44d..63152a62 100644 --- a/as/xa51/xa_main.c +++ b/as/xa51/xa_main.c @@ -473,14 +473,16 @@ void out(int *byte_list, int num) { void pad_with_nop() { - static int nops[] = {NOP_OPCODE, NOP_OPCODE, NOP_OPCODE, NOP_OPCODE}; - int num; - - last_line_text[0] = '\0'; - - for(num=0; (MEM_POS + num) % BRANCH_SPACING; num++) ; - if (p3) out(nops, num); - MEM_POS += num; + static int nops[] = {NOP_OPCODE, NOP_OPCODE, NOP_OPCODE, NOP_OPCODE}; + int num; + + last_line_text[0] = '\0'; + + for(num=0; (MEM_POS + num) % BRANCH_SPACING; num++) { + sprintf (last_line_text, "\tnop\t; word allignment"); + } + if (p3) out(nops, num); + MEM_POS += num; } /* print branch out of bounds error */ @@ -533,9 +535,8 @@ void relPrelude() { } for (p=sym_list; p; p=p->next) { if (p->isdef) { - // skip temp labels, sfr and sbit - if (p->name[strlen(p->name)-1]!='$' && - p->area) { + // skip temp labels + if (p->name[strlen(p->name)-1]!='$') { globals++; } }