delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2008/07/25/16:30:32

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Cesar Rabak <csrabak AT yahoo DOT com DOT br>
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: <g6dcq5$p6d$1@aioe.org>
References: <ca0df607-1be3-4358-b84f-f0ccddde3197 AT d77g2000hsb DOT googlegroups DOT com> <g67uat$di0$1 AT aioe DOT org> <f78b8a9f-b3ff-4ab6-b95b-151c822873f7 AT b1g2000hsg DOT googlegroups DOT com> <g6ath6$1lm$1 AT aioe DOT org> <8fceb180-5d7a-45e8-a585-0d001b3ba089 AT 1g2000pre DOT googlegroups DOT com>
NNTP-Posting-Host: AA51DbWPgc0wqw52Z/DRVw.user.aioe.org
Mime-Version: 1.0
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?


- Raw text -


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