iI wanted to know if a jump instruction as JEJE must directly follow to a CMPCMP instruction. Until Until now, iI did always see that first a CMPCMP comes and after that a JMPJMP. But But today iI have discover the following:
... CMP DWORD PTR SS:[EBP+0xC], EAX MOV ECX, DWORD PTR SS:[EBP+0x18] PUSH ESI MOV ECX, DWORD PTR SS:[EBP+0x18] MOV DWORD PTR SS:[ECX],EAX MOV EAX, DWORD PTR SS:[EBP+0x10] MOV DWORD PTR SS:[EDI], 0x1 JE SHORT crtdll.6C250E66 .... First of all, iI am beginner. So i, I try to understand the assembly language. Logically i, I would say that the JEJE instruction is related to the CMPCMP instruction at the beginning of that sequence. So
So, my self-explanation was that we first compare, then do some MOVMOV and PUSHPUSH operations, after that all we are jumping, is that right?
But, as iI mentioned above, normally the jump comes in the next line after the comparison, could one say the reason for that late jump instruction here ? Or is it normal ?