Xref: news2.mv.net comp.os.msdos.djgpp:4188 From: mhommel AT trumpet DOT aix DOT calpoly DOT edu (Michael Edwin Hommel) Newsgroups: comp.os.msdos.djgpp Subject: COM port access Date: 23 May 1996 15:27:52 -0700 Organization: California Polytechnic State University, San Luis Obispo Lines: 33 Message-ID: <4o2op8$ncg@trumpet.aix.calpoly.edu> NNTP-Posting-User: mhommel AT trumpet DOT aix DOT calpoly DOT edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Fair warning: feel free to flame and yell if you think I am completely wrong on this thing, because I probably am, but dammit, I need HELP! I am writing a VERY simple "networked" game. The network in question is just a null modem cable from COM1 of computer A into COM2 of computer B. Someone else wrote a little chat program for this network in ASM, which works flawlessly. Well, I tried my game a million ways, to no avail. So finally I wrote basically a clone of this talk program, but in DJGPP as opposed to the real-mode TASM used by the other guy. What it comes down to is his works, mine doesn't. In fact, mine managed to crash the computer so hard, it wiped out the CMOS values (don't tell the guys who run the lab! I fixed it though- good thing there were 20 identical computers in there). So it seems to me that the flaw in mine (after retrying hundreds of different ways) is simply that it's in protected mode. That's it. I am using standard inportb and outportb calls to do my I/O. It seems to get past the initialization of the rs232 port just fine... although I just realized I did that via an inline asm "int" command - should that be __dpmi_intblahblah or whatever that's called? Or simply is there something other than inportb and outportb I should be using? Or more likely, am I just WAY off here, and does somebody have some sample COM-port code in DJGPP they'd like to share? I couldn't find any on any of the DJGPP web pages I checked. So does anyone have any handy advice for me? I can't post the code- I only have it on the computer at school at the moment. (And thanks to all the guys who helped me with my other stupid questions before!) ***************************************************************************** * Jamul(ha-MOOL) aka Mike Hommel * "It's too bad that whole families have * * Head Honcho, Jamul Software * to be torn apart by something as simple * * mhommel AT trumpet DOT calpoly DOT edu * as wild dogs." - Jack Handy * * http://ppp110.callamer.com * * *********SPISPOPD VII: SPISHULK: THE SEARCH FOR BOUAPHA, COMING SOON!********