summary refs log tree commit diff
path: root/home/.local/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-15 17:29:30 -0400
committerJune McEnroe <june@causal.agency>2018-08-15 17:29:30 -0400
commitbf44030c9ac34f8ad2bc24f023cc08f7f644e415 (patch)
tree7605f947ed63a14793ceae4a0a2a689b567bccb2 /home/.local/bin
parentAdd kshrc (diff)
downloadsrc-bf44030c9ac34f8ad2bc24f023cc08f7f644e415.tar.gz
src-bf44030c9ac34f8ad2bc24f023cc08f7f644e415.zip
Move nasd to shell script
Diffstat (limited to '')
-rwxr-xr-xhome/.local/bin/nasd9
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