From fa0436bd9f69083bdcb1fa7596dbe65f325124b2 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Wed, 15 Aug 2018 17:29:30 -0400 Subject: Move nasd to shell script --- home/.local/bin/nasd | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 home/.local/bin/nasd (limited to 'home/.local/bin') 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 -- cgit 1.4.1