repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
update now working
[mTask.git]
/
int
/
interface.h
diff --git
a/int/interface.h
b/int/interface.h
index
2d54bdf
..
5a506b9
100644
(file)
--- 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);