summary refs log tree commit diff
path: root/home/.local/bin/nasd
blob: 203fdd2dfe9417520d4cc38b3de4f79d2b01843a (plain) (blame)
1
2
3
4
5
6
7
8
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