| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| Date: | Wed, 23 Feb 2005 12:53:06 +0100 |
| From: | Egon Eckert <egon AT heaven DOT industries DOT cz> |
| To: | djgpp AT delorie DOT com |
| Subject: | Re: Differences in LPT1 base address in protected/real mode? |
| Message-ID: | <20050223115306.GB31124@webhome.cz> |
| References: | <ac2773cb DOT 0502230222 DOT 656c5cf3 AT posting DOT google DOT com> |
| Mime-Version: | 1.0 |
| In-Reply-To: | <ac2773cb.0502230222.656c5cf3@posting.google.com> |
| User-Agent: | Mutt/1.5.6+20040722i |
| Sender: | Egon Eckert <egon AT webhome DOT cz> |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
> document so far that could help me with finding the correct address of
> 0040h:0008h in the protected mode ... is anyone here in the know how
> to get the LPT1 base adress from bios in protected mode?
Something like
#include <go32.h> // _dos_ds
#include <sys/farptr.h> // _far*
unsigned short lpt1_base = _farpeekw(_dos_ds, 0x408);
Look into libc.inf (node "_far*") for more information.
--
Egon Eckert, Heaven Industries, s.r.o.
E-mail: egon AT heaven DOT industries DOT cz
EARTH
smog | bricks
AIR -- mud -- FIRE
soda water | tequila
WATER
-- with thanks to fortune
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |