0013-z80-a.sh (666B)
1 #!/bin/sh 2 3 set -e 4 5 tmp1=`mktemp` 6 tmp2=`mktemp` 7 trap "rm -f $tmp1 $tmp2; exit" 0 2 3 8 9 scc nm -a z80.out > $tmp1 10 11 cat <<! > $tmp2 12 0000000000000000 b .bss 13 0000000000000000 d .data 14 0000000000000000 N .file 15 0000000000000000 t .text 16 0000000000000001 B averylongbss 17 0000000000000001 D averylongdata 18 0000000000000001 T averylongtext 19 0000000000000000 B bss1 20 0000000000000002 b bss3 21 000000000000000a C bss4 22 0000000000000012 C bss5 23 0000000000000000 D data1 24 0000000000000002 d data3 25 000000000000000a C data4 26 0000000000000012 C data5 27 0000000000000000 T text1 28 0000000000000002 t text3 29 000000000000000a C text4 30 0000000000000012 C text5 31 U text6 32 ! 33 34 diff $tmp1 $tmp2