delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/02/23/05:30:11

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: pischke DOT karl-heinz AT web DOT de (Karl-Heinz Pischke)
Newsgroups: comp.os.msdos.djgpp
Subject: Differences in LPT1 base address in protected/real mode?
Date: 23 Feb 2005 02:22:30 -0800
Organization: http://groups.google.com
Lines: 14
Message-ID: <ac2773cb.0502230222.656c5cf3@posting.google.com>
NNTP-Posting-Host: 217.5.150.146
X-Trace: posting.google.com 1109154150 11834 127.0.0.1 (23 Feb 2005 10:22:30 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Wed, 23 Feb 2005 10:22:30 +0000 (UTC)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello World,

if I try to get the LPT1 base address at 0x408 with inportw I get
FFFFh back instead of the expected 7803h ... as I googled around just
now I found out that there is a significant difference in the
addressing of memory between real and protected mode ... I guess this
is the crux of the 'phenomenon' ... unfortunately I didn't found any
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?

Greetings from Cologne,

KH

- Raw text -


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