| www.delorie.com/archives/browse.cgi | search |
| From: | "Jonathan Villani" <jonathan DOT villani AT videotron DOT ca> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | VESA 1.2 banked - How do I call a far pointer function in DJGPP? |
| Lines: | 29 |
| X-Newsreader: | Microsoft Outlook Express 4.72.3007.0 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3007.0 |
| Message-ID: | <dFwZ1.1786$iT1.2887@weber.videotron.net> |
| Date: | Tue, 27 Oct 1998 22:58:51 -0500 |
| NNTP-Posting-Host: | 207.96.223.38 |
| X-Complaints-To: | abuse AT videotron DOT net |
| X-Trace: | weber.videotron.net 909547209 207.96.223.38 (Tue, 27 Oct 1998 23:00:09 EDT) |
| NNTP-Posting-Date: | Tue, 27 Oct 1998 23:00:09 EDT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Hello, I am currently porting my graphic library from Borland C to DJGPP and I would like to know how to call a far pointer function in DJGPP. I've checked with others VESA packages but all them seems to use the interupt 0x10 for bank switching (slower than a simple call, in real mode...protected mode not sure but I suppose it's also faster with a call. I could be wrong on that?!). My code (bank switching) worked fine in Borland C. (Intel Asm) void far *bankptr; /* Pointer to the banks switching function */ asm mov bx,write_win asm mov dx,bank asm call dword ptr bankptr How do I code theses 4 lines in DJGPP? Does DJGPP support that : call dword ptr bankptr part? Thank you for any suggestions! Jonathan Villani jonathan DOT villani AT videotron DOT ca
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |