0004-z80-v.sh (641B)
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 -v z80.out > $tmp1 10 11 cat <<! > $tmp2 12 U text6 13 0000000000000000 t .text 14 0000000000000000 d .data 15 0000000000000000 b .bss 16 0000000000000000 T text1 17 0000000000000000 D data1 18 0000000000000000 B bss1 19 0000000000000001 T averylongtext 20 0000000000000001 D averylongdata 21 0000000000000001 B averylongbss 22 0000000000000002 t text3 23 0000000000000002 d data3 24 0000000000000002 b bss3 25 000000000000000a C text4 26 000000000000000a C data4 27 000000000000000a C bss4 28 0000000000000012 C text5 29 0000000000000012 C data5 30 0000000000000012 C bss5 31 ! 32 33 diff $tmp1 $tmp2