X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=run_sed.sh;h=637486a879ba8deed326f9f1a630fd854fb1f4be;hb=226e8df1fab849b7f0d55989b13a002dadaf6b9c;hp=78f114f1fcb19460a1af3e4b49bccfbe5d64b312;hpb=e56ab892c4ff9eef34f85fab010d7084b9c59e81;p=ia32rtools.git diff --git a/run_sed.sh b/run_sed.sh index 78f114f..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_ -# - convert ds:0[eax*4] -> [eax*4+0] (h hotkey)