X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=runsed.sh;h=115ab6a3f7e922ccf2a090d6708439c8e9d58275;hb=cfd234794a54dcea07c55ee5b2fdadd7a18fbb5f;hp=ba98e5411fa7095e8432c954fefc87d5a6b88ce1;hpb=feb96a61a94dddba9f9520d8741ed47122d2de29;p=ia32rtools.git diff --git a/runsed.sh b/runsed.sh index ba98e54..115ab6a 100755 --- a/runsed.sh +++ b/runsed.sh @@ -18,14 +18,20 @@ s/\\t\[esp+4+var_4\]/fldcw\tword ptr \[esp\]/;\ s/\/pushfd/;\ +s/\/popfd/;\ s/\(\\)\tloc_/\1\tnear ptr loc_/;\ +s/\> $f . $f # manual fixup: -# = 'end start' -> 'end' +# - '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' +# - 0FFxxh constants - masm treats a byte, ONLY sometimes prefix with 'word ptr' +# - jmp near: +# - jmp _strchr