Doomulation
?????????????????????????
Finally, I'm messing with assembly on my own :whistling
But, I couldn't get some things to work. Maybe you can help me out here...
See, I'm using a threaded approach with trying to communicate over functions by returning a value by processor registers. It doesn't work very well, though.
The thread is run for 1000 ms, then terminated by the TerminateThread api.
This is my approach to the asm within the function. Note that I've tried several registers without any luck. Here's my typical code so far:
Either the register will be used for something else or it will be nullified when trying to access the data. I suppose I could push it onto the stack when done, but then I will have to use a more refined method than TerminateThread. And I'm not too terribly good at using check instructions in asm. It would also mean to add one other instruction in the loop.
Any suggestions? And ideas?
But, I couldn't get some things to work. Maybe you can help me out here...
See, I'm using a threaded approach with trying to communicate over functions by returning a value by processor registers. It doesn't work very well, though.
The thread is run for 1000 ms, then terminated by the TerminateThread api.
This is my approach to the asm within the function. Note that I've tried several registers without any luck. Here's my typical code so far:
Code:
...create thread...
...set priority & resume...
Sleep(1000);
TerminateThread(hThread);
int var;
__asm mov var, edi;
void func()
{
__asm pop edi;
for(;;) __asm inc edi;
}
Either the register will be used for something else or it will be nullified when trying to access the data. I suppose I could push it onto the stack when done, but then I will have to use a more refined method than TerminateThread. And I'm not too terribly good at using check instructions in asm. It would also mean to add one other instruction in the loop.
Any suggestions? And ideas?