From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: Hardware Ports? Date: 26 May 2003 09:33:35 GMT Organization: Aachen University of Technology (RWTH) Lines: 24 Message-ID: References: <%BLza.96378$cO3 DOT 6712844 AT bgtnsc04-news DOT ops DOT worldnet DOT att DOT net> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1053941615 18051 137.226.32.75 (26 May 2003 09:33:35 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 26 May 2003 09:33:35 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com bill wrote: > I am trying to set up the UART of a PC. Can anyone tell me how to set > and read hardware ports using DJGPP, or possably a refference to the > information. For the case of the UART, save yourself the hassle and use an existing library instead. As to direct port programming: it's done essentially the same way on all DOS-based compilers, with only minor differences. There are specialized support calls in the runtime library, like outportb inportw and so on. Learn about them in info libc alpha outportb Each compiler tends to give these a slightly different name, thus the synonyms provided by DJGPP: outb, outp, outpw, inb, inp, ... -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.