Mail Archives: djgpp/1997/02/07/07:41:45
Hi,
I have some questions about mixing ASM and C code.
Unfortunately, I couldn't find answers in FAQ or somewhere in the Net.
So,
I have in C code some structure
typedef struct
{ int event;
int param1;
int param2;
} Events;
[snip]
Events EventsQueue[1000];
Also I have a function
void PostEvent(int Event,int Param1,int Param2)
{
[snip]
PostEvent[EventCounter].event=Event;
PostEvent[EventCounter].param1=Param1;
PostEvent[EventCounter].param2=Param2;
[snip]
}
And also I have in .s file interupt handler function for com port.
So, my questions:
1. How can I call PostEvent with parameters from asm code?
2. How can I read and write to EventsQueue fields in asm code?
--
Regards,
Dim Zegebart,
Moscow Russia.
- Raw text -