Joseph Smith wrote:
Hello, How do I convert an Assembly JMP instruction to C. What I would like to do is execute an executable assembly blob located in memory. From the docs I have read, for assembly you just need to issues a JMP to the memory location to execute it. How to do the same in C, that is the question...
P.S. This question is leading up to something great :-)
Does that code return via "ret"? If so, you'd need a call instead of a jmp, which is basically a function call.
If it does not return, I suggest you use asm volatile (" jmp 0xADDR;\n");
Stefan