💾 Archived View for thrig.me › software › assembly › runcalc.sh captured on 2023-12-28 at 17:18:55.

View Raw

More Information

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

#!/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