Following my previous question here, I have now a "error junk after expression" when the compiler try to compile the following code:
u32 jmpAdd = BW::BWFXN_SpendRepairReturnAddress;
//BW::BWFXN_SpendRepairReturnAddress has the following value: 0x0046700D
__asm__ __volatile__
(
"movl ds:0x+57f120(, %eax, 4), %ecx\n\t"
"jmp %0":"=m"(jmpAdd)
);
GCC gives me the following errors:
Error: junk ':0x+57f120' after expression
Error: invalid instruction suffix for 'jmp'
How can I correct those errors, please?
EDIT: the original code was the following (I converted it using ta2as v0.8.2) :
__asm
{
mov ecx, dword ptr ds:[eax*4+0x57f120]
jmp BW::BWFXN_SpendRepairReturnAddress
}