2023-01-01 20:04:31 +01:00
|
|
|
#!/bin/sh
|
|
|
|
outfile="$1"
|
|
|
|
infile="$2"
|
2023-01-01 21:44:43 +01:00
|
|
|
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"
|