X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=run_sed.sh;h=637486a879ba8deed326f9f1a630fd854fb1f4be;hb=c8fb3694c071ffe819509e01292b2a1520a70017;hp=115ab6a3f7e922ccf2a090d6708439c8e9d58275;hpb=c378213ad0770e0919916c265999f357a49ad75f;p=ia32rtools.git diff --git a/run_sed.sh b/run_sed.sh index 115ab6a..637486a 100755 --- a/run_sed.sh +++ b/run_sed.sh @@ -12,7 +12,7 @@ for sym in $usyms; do done echo "\ -s/^\(loc[r_].*[0-9A-F]:\)[^:]\(.*\;\)/\1:\t\2/g;\ +s/^\([ +-]\?loc[r_].*[0-9A-F]:\)[^:]\(.*\;\)/\1:\t\2/g;\ s/dd[[:blank:]]rva/dd/;\ s/\\t\[esp+4+var_4\]/fldcw\tword ptr \[esp\]/;\ s/\/pushfd/;\ s/\/popfd/;\ s/\(\\)\tloc_/\1\tnear ptr loc_/;\ s/\> $f +' $1" >> $f . $f - -# manual fixup: -# - 'end start' -> 'end' -# - 'lea ecx, [ecx+0]' -> align -# - add 'near ptr' to some jumps -# - 'cmp [ebp+edx+0], cl' -> 'cmp [edx+ebp+0], cl' -# - 0FFxxh constants - masm treats a byte, ONLY sometimes prefix with 'word ptr' -# - jmp near: -# - jmp _strchr