Mail Archives: djgpp/1997/02/04/13:08:33
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!!!) | \/
- Raw text -