summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2022-08-23 16:29:31 +0200
committerQuentin Carbonneaux <quentin@c9x.me>2022-10-03 10:41:03 +0200
commit0b26cd4f5ecff8a01fb3f0adb902c14e043581e9 (patch)
tree5357b1aeffed63d0b08274fee053182941f4f252 /tools
parentbdaf8d374e5054c7f0a006f6bc038ee08d165fd3 (diff)
downloadroux-0b26cd4f5ecff8a01fb3f0adb902c14e043581e9.tar.gz
parse sb,ub,sh,uh abi types
Diffstat (limited to 'tools')
-rw-r--r--tools/lexh.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/lexh.c b/tools/lexh.c
index 8d0af21..1aea3e0 100644
--- a/tools/lexh.c
+++ b/tools/lexh.c
@@ -27,8 +27,9 @@ char *tok[] = {
 
 	"call", "phi", "jmp", "jnz", "ret", "export",
 	"function", "type", "data", "section", "align",
-	"l", "w", "h", "b", "d", "s", "z", "loadw", "loadl",
-	"loads", "loadd", "alloc1", "alloc2",
+	"l", "w", "sh", "uh", "h", "sb", "ub", "b",
+	"d", "s", "z", "loadw", "loadl", "loads", "loadd",
+	"alloc1", "alloc2",
 
 };
 enum {
@@ -69,7 +70,7 @@ main()
 		th[i] = h;
 	}
 
-	for (i=0; 1<<i < Ntok; ++i);
+	for (i=9; 1<<i < Ntok; ++i);
 	M = 32 - i;
 
 	for (;; --M) {