0003-z80-g.sh (493B)
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 -g z80.out > $tmp1 10 11 cat <<! > $tmp2 12 0000000000000001 B averylongbss 13 0000000000000001 D averylongdata 14 0000000000000001 T averylongtext 15 0000000000000000 B bss1 16 000000000000000a C bss4 17 0000000000000012 C bss5 18 0000000000000000 D data1 19 000000000000000a C data4 20 0000000000000012 C data5 21 0000000000000000 T text1 22 000000000000000a C text4 23 0000000000000012 C text5 24 U text6 25 ! 26 27 diff $tmp1 $tmp2