On Wed, Sep 10, 2008 at 1:35 PM, Joseph Smith joe@settoplinux.org 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 :-)
one way to get an abs jump is something like:
void (*f) (void);
f = (some nice cast) 0x8010000;
f();
or some such. I've used many variants, over the years, exact invocation is compiler dependent.
ron