Path: utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!ncar!ames!vsi1!octopus!pete From: pete@octopus.UUCP (Pete Holzmann) Newsgroups: comp.sys.ibm.pc Subject: Re: Where is the paralell port??? Summary: Port lists are at 40:0 and 40:8 Message-ID: <464@octopus.UUCP> Date: 12 Dec 88 18:08:24 GMT References: Reply-To: pete@octopus.UUCP (Pete Holzmann) Organization: Octopus Enterprises, Cupertino CA Lines: 23 The table of serial port addresses is at 40:0 (16 bits per port), but should probably be ignored. Most software just assumes that COM1 is 3F8 (or whatever it is), etc. The table of parallel port addresses is at 40:8. This table should NOT be ignored. LPT1 is at whatever I/O address is stored in the 16 bits at 40:8, LPT2 at 40:0a, etc. e.g.: unsigned far *lpts = 0x00400008L; /* Define a pointer to the LPT ports */ unsigned LPT1Base = lpts[0]; ... or whatever you like to do... Pete -- OOO __| ___ Peter Holzmann, Octopus Enterprises OOOOOOO___/ _______ USPS: 19611 La Mar Court, Cupertino, CA 95014 OOOOO \___/ UUCP: {hpda,pyramid}!octopus!pete ___| \_____ Phone: 408/996-7746