delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/02/23/06:45:13

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Differences in LPT1 base address in protected/real mode?
Date: 23 Feb 2005 11:42:46 GMT
Lines: 20
Message-ID: <3838hmF5hk4jbU3@news.dfncis.de>
References: <ac2773cb DOT 0502230222 DOT 656c5cf3 AT posting DOT google DOT com>
X-Trace: news.dfncis.de VdgFnt8TevsisiUejlpGygW9h4tmP2Cd+A46Xti8c2zBiNnEA8nfFWUo9Z
X-Orig-Path: not-for-mail
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Karl-Heinz Pischke <pischke DOT karl-heinz AT web DOT de> wrote:
> Hello World,

> if I try to get the LPT1 base address at 0x408 with inportw 

Hold on there.  Are you sure that you're supposed to look at I/O port
0x408 for this information, rather than memory address 0x0408?  I somewhat
doubt that can be the case.

> document so far that could help me with finding the correct address of
> 0040h:0008h in the protected mode ... 

And this supports my idea.  40:0008 is not a way anybody would refer
to a port address.  

The function you're searching for is one of the dosmemget* functions.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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