diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-06-24 20:48:32 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-06-24 22:10:50 +0300 |
| commit | 422b6c976e28445d2a6e14586fa416b0f16c093f (patch) | |
| tree | a6bf3364cec45ed0c5d48e346a76a98fe9d0094a /ops/li/gen_li.sh | |
| download | copyjit-422b6c976e28445d2a6e14586fa416b0f16c093f.tar.gz copyjit-422b6c976e28445d2a6e14586fa416b0f16c093f.zip | |
initial commit
Diffstat (limited to 'ops/li/gen_li.sh')
| -rwxr-xr-x | ops/li/gen_li.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ops/li/gen_li.sh b/ops/li/gen_li.sh new file mode 100755 index 0000000..a844de4 --- /dev/null +++ b/ops/li/gen_li.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +for i in $(seq 0 255); do + filename=li"$i".c + echo "#include \"../common.h\"\n" \ + "DEFINE_OP(li$i) {" \ + "UNUSED(o);" \ + "NEXT_OP(sp, a, x, y, $i);" \ + "}" > "$filename" +done |
