Discussion Forum

Question about C call assemble function

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Ricky Lee
Posted
6-Jun-2002 10:44 GMT
Toolset
None
New! Question about C call assemble function
I have a function written in assemble,e.g. _MyFunc,which gets two paramenters and store something in the buffer.
The prototype in C is : void MyFunc(unsigned char*,unsigned char);

In c, I call it like this:
unsigned char databuf[10];
MyFunc(databuf,10);


The question is: Is my code responsible for the handling with different memory mode,such as small mode or large mode? If so,how can I do?
Read-Only
Author
Andrew Neil
Posted
6-Jun-2002 11:16 GMT
Toolset
None
New! RE: Question about C call assemble function
Read the section "Interfacing C Programs to Assembler" in the manual

Next Thread | Thread List | Previous Thread Start a Thread | Settings