Home > Software engineering >  "The first operand" inline assembly in the grammatical errors; Find a "constant"
"The first operand" inline assembly in the grammatical errors; Find a "constant"

Time:03-03

 __asm {
Mov eax, dword PTR ds: x7faf04 [0]
Mov eax, dword PTR ds: [eax + 0 by 8]
Mov eax, dword PTR ds: [eax + 0 by 8]
Mov eax, dword PTR ds: [eax + 0 x108]
CMP eax, 0 x8015a8
Je short 0 x000027
Push dword PTR ss: [ebp + 0 by 8]
Push eax
Mov edx, dword PTR ss: [ebp + 0 x0c]
The add edx, 0 x23736
Call edx
}


Error C2400: "the first operand" inline assembly in the grammatical errors; Find a "constant"
Namely the je short 0 x000027, short keyword conflict, how do I change

CodePudding user response:

 __asm {
Mov eax, dword PTR ds: x7faf04 [0]
Mov eax, dword PTR ds: [eax + 0 by 8]
Mov eax, dword PTR ds: [eax + 0 by 8]
Mov eax, dword PTR ds: [eax + 0 x108]
CMP eax, 0 x8015a8
Je mylabel1//short 0 x000027
Push dword PTR ss: [ebp + 0 by 8]
Push eax
Mov edx, dword PTR ss: [ebp + 0 x0c]
The add edx, 0 x23736
Call edx
}
Mylabel1:

CodePudding user response:

reference 1/f, zhao teacher reply:
 __asm {
Mov eax, dword PTR ds: x7faf04 [0]
Mov eax, dword PTR ds: [eax + 0 by 8]
Mov eax, dword PTR ds: [eax + 0 by 8]
Mov eax, dword PTR ds: [eax + 0 x108]
CMP eax, 0 x8015a8
Je mylabel1//short 0 x000027
Push dword PTR ss: [ebp + 0 by 8]
Push eax
Mov edx, dword PTR ss: [ebp + 0 x0c]
The add edx, 0 x23736
Call edx
}
Mylabel1:
mylabel1 should be how to write

CodePudding user response:

0 what x000027 corresponding to the original address, corresponding address defined mylabel1
I assume corresponding reply call edx followed by the address,
  • Related