Mail Archives: djgpp/1994/01/27/12:36:01
One way of doing this, if you have access to Watcom C, is to use
wdisasm. It can dissasemble a .OBJ and write it out in unix AS format.
I have used the follwing dmake rule and sed script :
---- makefile ------
...
%.s: %.asm
ml -c -Cp -DDOS386 -D__GNUC__=1 -Fotmp.obj $<
wdisasm -au -l=tmp.lst tmp.obj
sed -f wattogas.sed <tmp.lst >$@
...
--------------------
--- wattogas.sed ---
s/+0x/0x/g
s/repe[ ]*stos/repe ; stos/
--------------------
------------------------------------------
Sam Littlewood sam AT argonaut DOT com
Argonaut Software Ltd. saml AT cix DOT compulink DOT co DOT uk
Tel: +44 81 200 5777 Fax: +44 81 200 9866
- Raw text -