Path: utzoo!attcan!uunet!husc6!ukma!simon From: simon@ms.uky.edu (Simon Gales) Newsgroups: comp.sys.ibm.pc Subject: Re: Where is the paralell port??? Message-ID: <10690@s.ms.uky.edu> Date: 12 Dec 88 23:03:18 GMT References: <464@octopus.UUCP> Reply-To: simon@ms.uky.edu (Simon Gales) Organization: U of Kentucky, Mathematical Sciences Lines: 22 In article <464@octopus.UUCP> pete@octopus.UUCP (Pete Holzmann) writes: >be ignored. LPT1 is at whatever I/O address is stored in the 16 bits at >40:8, LPT2 at 40:0a, etc. > >unsigned far *lpts = 0x00400008L; /* Define a pointer to the LPT ports */ >unsigned LPT1Base = lpts[0]; > should be: unsigned far *lpts = 0x00000408L; /* Addr = Segment * 16 + Offset */ unsigned Lpt1Base = lpts[0]; /--------------------------------------------------------------------------\ Simon Gales@University of Ky UUCP: {rutgers, uunet}!ukma!simon Arpa: simon@ms.uky.edu MaBell: (606) 263-2285/257-3597 BitNet: simon@UKMA.BITNET -- /--------------------------------------------------------------------------\ Simon Gales@University of Ky UUCP: {rutgers, uunet}!ukma!simon Arpa: simon@ms.uky.edu MaBell: (606) 263-2285/257-3597 BitNet: simon@UKMA.BITNET