TheGreyBeast
Programmer
Hi,
A friend gave me lots of .obj files which have useful functions. Some of the functions use parameters in registers. How can I do that in Visual C++?
Something like
void ClTile(reg al, reg ah, reg cx);
The function is supposed to expect parameter1 in al, parameter2 in ah and parameter3 in cx. How can I instruct the compiler to do such a thing? I know the above posted prototype won't work, so is there a way to do it?
Then I'd like to call the function like:
unsigned char a,b;
unsigned short c;
ClTile(a,b,c);
This was a very 'ugly' example, but I think you get the idea.
Thanks in advance.
A friend gave me lots of .obj files which have useful functions. Some of the functions use parameters in registers. How can I do that in Visual C++?
Something like
void ClTile(reg al, reg ah, reg cx);
The function is supposed to expect parameter1 in al, parameter2 in ah and parameter3 in cx. How can I instruct the compiler to do such a thing? I know the above posted prototype won't work, so is there a way to do it?
Then I'd like to call the function like:
unsigned char a,b;
unsigned short c;
ClTile(a,b,c);
This was a very 'ugly' example, but I think you get the idea.
Thanks in advance.