]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_t.h
ok wwwww zscroll and scroll compile disabled due to me being too tired to whack at...
[16.git] / src / lib / 16_t.h
index ada39a1145faa6f11af51421646ab8257bb0be2b..b0fdb481224a45b257143f5b067ba414df1c6e68 100755 (executable)
@@ -41,6 +41,11 @@ typedef unsigned long int diword;
 typedef signed long int sdiword;\r
 \r
 typedef        enum    {false,true}    boolean;\r
+typedef        enum    {ichi,ni,san,yon,go,roku,shichi,hachi,kyu,ju,juichi,juni,jusan,juyon,jugo,juroku}       nibble;\r
+//typedef      unsigned nibb:4 nibble;\r
+\r
+#define HI_NIBBLE(b) (((b) >> 4) & 0x0F)\r
+#define LO_NIBBLE(b) ((b) & 0x0F)\r
 /*typedef unsigned memseg;\r
 \r
 memptr should be replaced by memseg in code.\r