X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;ds=sidebyside;f=int%2Finterface.h;h=d3361dfa9fb8d46af47f9594449c37e705cc9e72;hb=5ffe54378cb4b91ee2a5717d57c1bf4ba4ca563e;hp=614155911f931a0d9ddf75dbd7175d2851288414;hpb=2baa7d4b9df523436b38a4a7a0d9cb4e75fb527c;p=mTask.git diff --git a/int/interface.h b/int/interface.h index 6141559..d3361df 100644 --- a/int/interface.h +++ b/int/interface.h @@ -10,8 +10,9 @@ 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 +#define write16(i) { write_byte((uint8_t)i/256); write_byte((uint8_t)i%256); } uint8_t read_byte(void); void write_byte(uint8_t b); @@ -27,7 +28,6 @@ void delay(long ms); void setup(void); void debug(char *fmt, ...); -void debugi(int i); void pdie(char *s); void die(char *fmt, ...);