X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=as%2Fmcs51%2Flks19.c;h=26d8892e850de128e3d1d929b5c66fab5db3c7de;hb=f1c40004ae349f7cd3a1a5c5c85f62f695196370;hp=d75d2f9bcb5c563ca96dc043fe85d2e390b639ee;hpb=f93eb1eafde8985b8634d476b01641de63124b9e;p=fw%2Fsdcc diff --git a/as/mcs51/lks19.c b/as/mcs51/lks19.c index d75d2f9b..26d8892e 100644 --- a/as/mcs51/lks19.c +++ b/as/mcs51/lks19.c @@ -11,9 +11,6 @@ #include #include -#if !defined(_MSC_VER) -#include -#endif #include "aslink.h" /*)Module lks19.c @@ -80,14 +77,14 @@ * in the standard Motorola S19 format. * * local variables: - * addr_t chksum byte checksum + * Addr_T chksum byte checksum * * global variables: * int hilo byte order * FILE * ofp output file handle * int rtcnt count of data words * int rtflg[] output the data flag - * addr_t rtval[] relocated data + * Addr_T rtval[] relocated data * * functions called: * int fprintf() c_library @@ -99,7 +96,7 @@ VOID s19(i) { - register addr_t chksum; + register Addr_T chksum; if (i) { if (hilo == 0) { @@ -118,7 +115,7 @@ s19(i) chksum += rtval[i]; } } - fprintf(ofp, "%02X\n", (-chksum-1) & 0xff); + fprintf(ofp, "%02X\n", (0-chksum-1) & 0xff); } else { fprintf(ofp, "S9030000FC\n"); }