Xref: news2.mv.net comp.os.msdos.djgpp:6597 From: Roland Exler Newsgroups: comp.os.msdos.djgpp Subject: Re: How to find printer port number? Date: Wed, 31 Jul 1996 08:05:17 -0700 Organization: Institute for el. Measurement, University of Linz, Austria Lines: 19 Message-ID: <31FF762D.6BAD@jk.uni-linz.ac.at> References: NNTP-Posting-Host: sensor4.emt.uni-linz.ac.at Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Jean Cote wrote: > I would like to know want is the port number to send > data to printer port of my PC. The io-adresses of the serial ports found by the bios are stored starting 0x0040:0x0000 (segment:offset), the printer-ports starting at 0x0040:0x0008 in physical (DOS) memory. Use some of the dosmemget or farpeek-functions to access this locations. Each adress is stored as 16 bit int. Use 'debug' 'd40:0' to take a look what your bios has found. Roland +---------------------------------------+---------------------------+ I Roland Exler I EMAIL: I I Universitaet Linz I R DOT Exler AT jk DOT uni-linz DOT ac DOT at I I Institut fuer Elektrische Messtechnik I I I Altenbergerstr. 69 I Phone: I I A-4040 Linz, AUSTRIA I + 43 732 2468 9205 I +---------------------------------------+---------------------------+