* device/include/pic16/pic18f*.h: add bit aliases in INTCONbits_t
[fw/sdcc] / device / examples / crcs.c
1 #include <8051.h>
2 typedef unsigned char byte;
3
4 byte accum_checksum(byte cs, byte val)
5 {
6         register unsigned char tmp;
7
8         tmp = ((cs<<1) | (cs>>7)) + val;
9
10         return (CY ? ( tmp + 1 ) : tmp);
11 }