delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | Eph <t DOT ephraim AT gmail DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: calling a RM function which is placed below 1 MB |
Date: | Tue, 29 Jul 2008 03:46:53 -0700 (PDT) |
Organization: | http://groups.google.com |
Lines: | 27 |
Message-ID: | <7f9a4974-44db-4956-b994-97a047d1a8ff@m45g2000hsb.googlegroups.com> |
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> | |
<g6dcq5$p6d$1 AT aioe DOT org> | |
NNTP-Posting-Host: | 80.70.169.36 |
Mime-Version: | 1.0 |
X-Trace: | posting.google.com 1217328413 19831 127.0.0.1 (29 Jul 2008 10:46:53 GMT) |
X-Complaints-To: | groups-abuse AT google DOT com |
NNTP-Posting-Date: | Tue, 29 Jul 2008 10:46:53 +0000 (UTC) |
Complaints-To: | groups-abuse AT google DOT com |
Injection-Info: | m45g2000hsb.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 |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id m6TB02as030120 |
Reply-To: | djgpp AT delorie DOT com |
Hey > First of all: have you a sample of the successful call to this function > in ordinary real mode assembly? In 16Bit Real I can just do something like this: ----------------------------- typedef void (__far *FUNC)(unsigned long, unsigned long, unsigned long); void callIt(unsigned long u1, unsigned long u2, unsigned long u3) { FUNC func; func = (FUNC)0xE0001234; func(u1, u2, u3); } ----------------------------- Thats all I want to do. Just call a function with _cdecl calling convention. But this function needs to be called 16 Bit Real. And the rest is just initalizing of the params, or finding the right func address. Now I think, the __far is my problem. Ciao Eph
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |