1 2 3 4 5 6 7 8 9 10 11 12 13
#include <xc.h> #include <stdint.h> #include "types.h" void addU16(U16 *a, U8 b) { a->lo += b; if (STATUSbits.C) { a->hi++; } }