💾 Archived View for thrig.me › software › assembly › runcalc.sh captured on 2024-03-21 at 15:56:55.

View Raw

More Information

⬅️ Previous capture (2023-12-28)

-=-=-=-=-=-=-

#!/bin/sh
bits=${1:-16}
width() {
	nasm -dBW="$bits" -dPADBY="$1" calc.asm -o cal"$1".o
	echo "WIDTH $1"
	hexdump -x cal"$1".o
	echo
	ndisasm -b "$bits" cal"$1".o
	echo
}
width 4
width 8