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 To: djgpp AT delorie DOT com Subject: Re: Differences in LPT1 base address in protected/real mode? Message-ID: <20050223115306.GB31124@webhome.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6+20040722i Sender: Egon Eckert 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 Precedence: bulk > 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 // _dos_ds #include // _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