From: G DOT Ohrner AT t-online DOT de (Gunter Ohrner) Newsgroups: comp.os.msdos.djgpp Subject: Re: serial ports: library supported? Date: 29 Jan 1997 22:39:38 GMT Organization: Telekom Online Internet Gateway Lines: 38 Message-ID: <5cojja$6e3@news00.btx.dtag.de> References: <32EFB19C DOT 7B06 AT opentext DOT com> Reply-To: G DOT Ohrner AT t-online DOT de 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 Bill Murphy wrote: > A friend of mine asked me to dig up information regarding rs232 (serial > or com port) use with dgjpp -- and though I dug (read the dgjpp faq, > stuff about capturing interupts, etc...) I just didn't see anything > appropriate. > How can you set port parameters {baud, parity, etc}? > > How can you send/recieve a character to/from a com port? > > Will he need to catch the interupt, and look at some icky > absolute memory location? > > Where can I find the hex location for common com1 com2 ports? > IRQ numbers? You can access the serial port via the BIOS. I don't know if DJGPP already has special functions but using int 14h you'll be able to access the com-port from any language. For details (int 14 interface description, etc) just send a mail to me. I only fear I cannot help you implementing the int calls in DJGPP for I'm a C newbie... I don't know how to call realmode interrupts from protected mode. (I think you'll have to use the DPMI) If someone could help me with this problem that would be quite nice. -- C U ! Gunter "REBOOT" Ohrner ************************************************************************* eMail: | T /\ G DOT Ohrner AT t-online DOT de | I R E B O / \ O T ' S | S ___________/ \___________ URL: | I <___________ ___________> http://home.t-online.de/home/G.Ohrner/ |V \ / (REBOOT'S CASTLE 2.40 | C A S \ / T L E Komfortabler und gebugfixed!!!) | \/