X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCglue.c;h=0347280d6f284fcd9356ddcf18a25997d27097c4;hb=e49e47171803d37105dcb71fa92f46b3984c0feb;hp=4b63602144e1d771f7f06f0e5424b52f012408a4;hpb=fc41563d33a3da06336117a698f00206800e7827;p=fw%2Fsdcc diff --git a/src/SDCCglue.c b/src/SDCCglue.c index 4b636021..0347280d 100644 --- a/src/SDCCglue.c +++ b/src/SDCCglue.c @@ -1657,14 +1657,18 @@ glue (void) if (port->assembler.externGlobal) printExterns (asmFile); - if(mcs51_like) + if(( mcs51_like ) + ||( TARGET_IS_Z80 )) /*.p.t.20030924 need to output SFR table for Z80 as well */ { /* copy the sfr segment */ fprintf (asmFile, "%s", iComments2); fprintf (asmFile, "; special function registers\n"); fprintf (asmFile, "%s", iComments2); copyFile (asmFile, sfr->oFile); - + } + + if(mcs51_like) + { /* copy the sbit segment */ fprintf (asmFile, "%s", iComments2); fprintf (asmFile, "; special function bits \n");