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.
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.
It also probably tells you that the effect of the custom asm and the function pointer are the same.
What game is this, anyway?
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law