X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Karl-Heinz Pischke" Newsgroups: comp.os.msdos.djgpp Subject: Re: Differences in LPT1 base address in protected/real mode? Date: Wed, 23 Feb 2005 20:47:14 +0100 Organization: T-Online Lines: 29 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.t-online.com 1109187699 01 22920 iE5UrsaLvPZSQMu 050223 19:41:39 X-Complaints-To: usenet-abuse AT t-online DOT de X-ID: JOjQPGZO8ex-TqTHBXS9wMy17FGz-bf9R6jf-6TqVGPdbfrUaImQcC X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello Gisle, Hans-Bernhard and Egon, thanks for your effort ... the program is running now! Greetings from Cologne, KH ----- for the usenet archive: /* Find the base address from the first parallel interface LPT1 from BIOS */ /* DJGPP V2 */ #include #include #include int LPT1_base_address; int main (void) { LPT1_base_address=_farpeekw (_dos_ds,0x408); printf("LPT1 base address is: %Xh\n",LPT1_base_address); return 0; }