X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=ia32rtools.git;a=blobdiff_plain;f=run_sed.sh;h=637486a879ba8deed326f9f1a630fd854fb1f4be;hp=b1d094065fcb94ee7eb0d5fb6617bb0b77b35f2b;hb=4328117e09febd7f518b2ac7bb0a81be4bd79c02;hpb=9af99da37c3b50725fa04d343cb9b589e3da6f97 diff --git a/run_sed.sh b/run_sed.sh index b1d0940..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/\\)\tloc_/\1\tnear ptr loc_/;\ s/\> $f . $f - -# manual fixup: -# - 'end start' -> 'end' -# - 'mov edi, edi', 'lea ...' -> align -# - add 'near ptr' to some jumps -# - 'cmp [ebp+edx+0], cl' -> 'cmp [ebp+edx*1+0], cl' -# - 0FFxxh constants - masm treats a byte, ONLY sometimes prefix with 'word ptr' -# - jmp near: -# - jmp _strchr -# - search for 'dword_xx+N', make byte/word, also word->byte -# - get rid of type propagation, regenerate as 'simple' var_