diff options
author | June McEnroe <june@causal.agency> | 2018-08-15 17:29:30 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-08-15 17:29:30 -0400 |
commit | fa0436bd9f69083bdcb1fa7596dbe65f325124b2 (patch) | |
tree | b7318e0e6ec8957632bbd918f19736bb971c1841 /home/.local/bin/nasd | |
parent | Add kshrc (diff) | |
download | src-fa0436bd9f69083bdcb1fa7596dbe65f325124b2.tar.gz src-fa0436bd9f69083bdcb1fa7596dbe65f325124b2.zip |
Move nasd to shell script
Diffstat (limited to 'home/.local/bin/nasd')
-rwxr-xr-x | home/.local/bin/nasd | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/home/.local/bin/nasd b/home/.local/bin/nasd new file mode 100755 index 00000000..203fdd2d --- /dev/null +++ b/home/.local/bin/nasd @@ -0,0 +1,9 @@ +#!/bin/sh +set -e -u + +dir=$(mktemp -d) +echo 'bits 64' > $dir/input +cat >> $dir/input +nasm -o $dir/output $dir/input || true +ndisasm -b 64 $dir/output || true +rm -r $dir |