Ok, so why does it then NOT work when you do it in assembler? Perhaps there is something ELSE that is wrong?
I have used "creative use" of function pointers, like what is described in a previous post. It works. But of course, if you pass in the wrong value, or in the wrong way, then you will end up with any sort of "bad" result.
What is the actual crash you are seeing?
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.