X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Lines: 25 X-Admin: news AT aol DOT com From: captainpita AT aol DOT com (Captainpita) Newsgroups: comp.os.msdos.djgpp Date: 01 Mar 2002 02:17:00 GMT Organization: AOL http://www.aol.com Subject: Problems with int86X Message-ID: <20020228211700.28734.00001853@mb-fo.aol.com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello, I am trying to migrate from "C" code from the Microsoft "C" complier to the DJGPP compiler and I am having difficulty with the int86X function. This function is used to communicate with the TSR that services the RS232 port via interrupt 0X60. Here is the area of the code what calls the interrupt inregs.x.cx = length; inregs.x.dx = (int) address; segregs.ds = data_segment; int86x(0x60,&inregs,&outregs,&segregs); The problem is that the segread function does not exist in DJGPP, which is what I used in the Microsoft "C" compiler to get the data segment of the char string that contained the stuff to send out of the RS232 port. So I spent some time going thru the on line docs for DJGPP and thought I found the fix to not having the "segread" function. I thought that I could use the "_my_ds()" macro that is defined in the go32.h include file to get the data segment. Well... that does not work and the rest of the online docs are confusing. I have not programmed in C on a PC in a while, so I am rusty. Can anyone out there give me some guidance on the DJGPP equivalent to the Microsoft segread function so that I can use the int86x function to communicate with the TSR that services my RS232 port?