Message-ID: <32FBBA4C.5582@post.comstar.ru> Date: Fri, 07 Feb 1997 15:27:08 -0800 From: Dim Zegebart Reply-To: zager AT post DOT comstar DOT ru Organization: zager AT post DOT comstar DOT ru MIME-Version: 1.0 To: DJGPP Mail List Subject: Some Asm and C questions. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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.