diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/lgrind/example/asm2tex |
Initial commit
Diffstat (limited to 'support/lgrind/example/asm2tex')
-rwxr-xr-x | support/lgrind/example/asm2tex | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/support/lgrind/example/asm2tex b/support/lgrind/example/asm2tex new file mode 100755 index 0000000000..dcb2fc5a6f --- /dev/null +++ b/support/lgrind/example/asm2tex @@ -0,0 +1,17 @@ +#!/bin/sh +# convert .asm (Microsoft [or whatever] assembler) to .lg + +if [ -n "$1" ] && [ -f $1 -o -f $1.asm ] +then + if [ `basename $1` = `basename $1 .asm` ] + then + lgrind -i -lmasm $1.asm > $1.lg + echo Created $1.lg + else + lgrind -i -lmasm $1 > `basename $1 .asm`.lg + echo Created `basename $1 .asm`.lg + fi +else + echo Usage: $0 "<file>[.asm]" + echo $1.asm does not exist. +fi |