RE: creating an asm opcode
I almost drew that exact diagram myself, although I thought you may need an extra operation to resolve the address of the function [but I think maybe I'm being pedantic].
Why should 64 bit alignment be a problem? I think it should be nice and simple like
asm (jmp $0xE900000000)
make sure you can get back to the original code to!
edit: I mean, you can maybe align it with nops or instructions that don't get touched anyway? create as much breathing room as you need.
This post was edited on 06-28-2007 at 01:50 AM by Verte.
was put impeccably into words at DebianDay for me last Saturday, by Knut Yrvin of Trolltech - adults try something once, fail, and then are like "ffs this doesn't work". Children try, fail, and then try again, and succeed - maybe on the second, or even fifth retry. But the thing is that they keep at it and overcome the problems in the end.
-andrewdodd13
|