X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=runsed.sh;h=ba98e5411fa7095e8432c954fefc87d5a6b88ce1;hb=d458c38041b6c2749a58f5d056d2403c13efc088;hp=c2821ba2a599761361e9446e3dec14ac46a757a3;hpb=60f7539b5bd64b7bbcd43ef0de297a705e1c1633;p=ia32rtools.git diff --git a/runsed.sh b/runsed.sh index c2821ba..ba98e54 100755 --- a/runsed.sh +++ b/runsed.sh @@ -16,6 +16,16 @@ 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_/;\ ' StarCraft.asm" >> $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' +# - 0FFFFh constant - masm treats a byte, sometimes prefix with 'word ptr'