rdos/host/as

8 lines
256 B
Plaintext
Raw Normal View History

#!/bin/sh
outfile="$1"
infile="$2"
listing="${outfile%.*}.lst"
( awk -f host/asm.awk -v of=sym <"$infile"; cat "$infile") | awk -f host/asm.awk -v of=lst >"$listing"
grep -A1 '\*\*\*\*' "$listing" && exit 1
cut -d' ' -f2 "$listing" | xxd -r -p >"$outfile"