10 cat $asm | fromdos | sed -e \
11 '1,/^_rdata.*segment/d;/^_data.*\<ends\>/q;/^[[:blank:];]/d;/^;/d;/^_r\?data\>/d;' | awk '{print $1}' | \
13 test -z "$a" && continue
25 echo "_$a equ $a" >> $public_inc
26 echo "PUBLIC _$a" >> $public_inc
29 if test -n "$c_list"; then
30 # make a list of functions in asm
31 grep '\<endp\>' $asm | awk '{print $1}' | grep -v '\<rm_' \
32 > ${asm}_funcs || true
34 echo "; funcs called from C" >> $public_inc
38 name=`echo $a | awk -F@ '{print $1}'`
39 n=`grep "\<$name\>" ${asm}_funcs` || \
40 n=`grep "\<_$name\>" ${asm}_funcs` || true
42 echo "\"$name\" is expected to be in asm, but was not found"
46 echo "PUBLIC $n" >> $public_inc