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

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Karl-Heinz Pischke" <pischke DOT karl-heinz AT web DOT de>
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: <cvim9i$mc8$01$1@news.t-online.com>
References: <ac2773cb DOT 0502230222 DOT 656c5cf3 AT posting DOT google DOT com>
Mime-Version: 1.0
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 <go32.h>
#include <stdio.h>
#include <sys/farptr.h>

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;
}


- Raw text -


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