diff options
Diffstat (limited to 'kernel/make-opcodes')
-rw-r--r-- | kernel/make-opcodes | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/make-opcodes b/kernel/make-opcodes new file mode 100644 index 00000000..c8f573c6 --- /dev/null +++ b/kernel/make-opcodes @@ -0,0 +1,2 @@ +$1=="enum" {n=0; next; } + {for (i = 1; i <= NF; i++) {printf("let op%s = %d\n", $i, n++);}} |