www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/07/07:41:45

Message-ID: <32FBBA4C.5582@post.comstar.ru>
Date: Fri, 07 Feb 1997 15:27:08 -0800
From: Dim Zegebart <zager AT post DOT comstar DOT ru>
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 <djgpp AT delorie DOT com>
Subject: Some Asm and C questions.

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019