In article <200303101900.36167.osuchj@avalon.net>, Jonathan Osuch <osuchj@avalon.net> writes:
is available for DOS/WIN. The initial port is painful because the syntax is different from the Intel syntax (oper src,dst instead of oper dst,src= ). Can't this be handled with an awk script?
That's a thought. I don't have enough experience with it to know for sur= e.
If its just a simple swapping of dst and src operands, it could easily be done with an awk or sed script. You're basically matching for each op code and doing a regexp replace. For instance sed 's/mov \([^,]*\),\([^,]*\)$/mov \2, \1/' would swap the two arguments of any 'mov' instruction with two arguments. -- "The Direct3D Graphics Pipeline"-- code samples, sample chapter, FAQ: <http://www.xmission.com/~legalize/book/> izfree: Open source tools for Windows Installer <http://izfree.sourceforge.net>