X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Eph Newsgroups: comp.os.msdos.djgpp Subject: Re: calling a RM function which is placed below 1 MB Date: Fri, 25 Jul 2008 07:55:32 -0700 (PDT) Organization: http://groups.google.com Lines: 16 Message-ID: <8fceb180-5d7a-45e8-a585-0d001b3ba089@1g2000pre.googlegroups.com> References: NNTP-Posting-Host: 80.70.169.36 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1216997733 29979 127.0.0.1 (25 Jul 2008 14:55:33 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Fri, 25 Jul 2008 14:55:33 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: 1g2000pre.googlegroups.com; posting-host=80.70.169.36; posting-account=jZZPxgoAAAAqQ_zmNV7SH4j6l4lfRyOd User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 abgpro01 (NetCache NetApp/6.0.6) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hey again, I think, it got confused everything :). So I try to start over. So. I have a function which waits in the memory below 1MB. This function awaits parameter on the stack at [06], [10] a. [14]. This function must be called from 16Bit RM. How should I do this? I found the function __dpmi_simulate_real_mode_procedure_retf_stack(...) which I think is the right one for my problem. But how do I create the stack parameter and the regs? The segment and offset of the function entry is known. The parameters too. I just need to know how to call the function correctly or if someone knows a better way to do this I would be glad too!! Ciao Eph