X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Cesar Rabak Newsgroups: comp.os.msdos.djgpp Subject: Re: calling a RM function which is placed below 1 MB Date: Fri, 25 Jul 2008 17:29:06 -0300 Organization: Aioe.org NNTP Server Lines: 22 Message-ID: References: <8fceb180-5d7a-45e8-a585-0d001b3ba089 AT 1g2000pre DOT googlegroups DOT com> NNTP-Posting-Host: AA51DbWPgc0wqw52Z/DRVw.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse AT aioe DOT org In-Reply-To: User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eph escreveu: > 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!! > Eph, First of all: have you a sample of the successful call to this function in ordinary real mode assembly?