X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=int%2Finterface.h;h=5a506b92dcd07d0e93e8cdf9220dcb748b19260d;hb=3698f150b0c5e5ebed23b0885ced2711ef16d9f5;hp=1c77b7a0b246d68ed2cf03453fd4129068e76ddc;hpb=8449be73c124cdccd37500c0d67d9404b94fc9c8;p=mTask.git diff --git a/int/interface.h b/int/interface.h index 1c77b7a..5a506b9 100644 --- a/int/interface.h +++ b/int/interface.h @@ -10,7 +10,8 @@ extern int gargc; extern char **gargv; #endif -#define read16() 256*read_byte() + read_byte() +#define read16() 256*(uint8_t)read_byte() + (uint8_t)read_byte() +#define from16(a, b) 256*a+b uint8_t read_byte(void); void write_byte(uint8_t b); @@ -26,7 +27,6 @@ void delay(long ms); void setup(void); void debug(char *fmt, ...); -void debugi(int i); void pdie(char *s); void die(char *fmt, ...);