summary refs log tree commit diff
path: root/home/.local/bin/nasd
blob: d64b2c3a2a87961f402c7fa6717a06f4ccf66536 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh
set -eu

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"