I am new to x86 assembly. I am trying to write the following instruction in x86 assembly with minimum number of instructions.
Multiply the contents of ESP by 4 and add 0x11233344, storing the result in EDI. Multiply the contents of EAX by 9 and add 0x55667788, storing the result in EBX. Add the two results together and store the result in ECX.
This is what I have so far:
mov edi, esp
lea edi, [edi*4+0x11233344]
lea ebx, [eax*9+0x55667788]
add ebx, edi
mov ecx, ebx
I try to check the instruction with an online assembler, it shows that lea ebx, [eax*9+0x55667788] is an invalid instruction. How should i fix this?