I’m doing some ASM code in a C code with the asm function.
My environment is DVL with gcc version 3.
Hi need to make a JMP to a relative address like %eip+0x1f.
How can I do this ?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
x86 supports a short jump (JMP, opcode EB + 1 byte relative address) which should do what you want.
In most assemblers (including gcc’s inline asm IIRC) you can just put a label where you want to jump to, and use
jmp mylabeland let the assember figure out the correct opcode and relative address for the jump.