Autor Beitrag
Flamefire
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1207
Erhaltene Danke: 31

Win 10
Delphi 2009 Pro, C++ (Visual Studio)
BeitragVerfasst: Fr 08.02.08 16:39 
Was ganeu macht der code?
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
0074A1D8                        > \8B7C24 70                 MOV EDI,[ESP+70]
0074A1DC                        .  BE 08000000               MOV ESI,8
0074A1E1                        .  39B424 84000000           CMP [ESP+84],ESI
0074A1E8                        .  73 04                     JNB SHORT 0074A1EE
0074A1EA                        .  8D7C24 70                 LEA EDI,[ESP+70]
0074A1EE                        >  68 2077C000               PUSH 00C07720

Er läd also den Wert von ESP+$70 in EDI und vergleicht den wert von ESP+$84 mit 8
Wenn der Vergleich fehlschlägt nimmt er stattdessden die addresse von ESP+$70
Wann springt das JNB nun?
Bei größer/gleich oder bei kleiner?
Vielen Dank
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Fr 08.02.08 16:57 
Jump if not below. ;) Springe, wenn ESP+$84 größer ESI. Wenn ich micht nicht gerade ganz Irre. :P
Bei "nicht kleiner gleich" hieß es JNBE. e wie equal.

cu
Allesquarks
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 510

Win XP Prof
Delphi 7 E
BeitragVerfasst: Fr 08.02.08 17:06 
Deine Übersetzungen sind richtig nur die Negationen nicht not below=greater or equal und
not below or equal = greater
Flamefire Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1207
Erhaltene Danke: 31

Win 10
Delphi 2009 Pro, C++ (Visual Studio)
BeitragVerfasst: Sa 09.02.08 14:51 
also wäre die delphi übersetzung davon
ausblenden Delphi-Quelltext
1:
2:
If(PCardinal(ESP+$84)^<8then EDI:=ESP+$70
else EDI:=PCardinal(ESP+$70)^;

Richtig?
Mitmischer 1703
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Sa 09.02.08 16:11 
Was ist das überhaupt für eine Sprache? :shock:

_________________
Die Lösung ist nicht siebzehn.
Flamefire Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1207
Erhaltene Danke: 31

Win 10
Delphi 2009 Pro, C++ (Visual Studio)
BeitragVerfasst: Sa 09.02.08 16:21 
das letze von mit ne mischung aus ASM und delphi ^^