Mail Archives: djgpp/2002/03/02/17:30:04
Hello,
I am still having problems with understanding how to use the __dpmi_int()
function. I have looked at FAQ 18.2, 18.4 and the "C" library reference
materials.
Maybe I am stupid, dumb and/or thick, so I am looking for is another "set of
eyes" on my code to see what I have hosed up!
Here is the code
/* put 4 bytes into the transfer buffer */
dosmemput((char*)__tb,4,(unsigned int)card_parms);
inregs.x.ax = 0x0000; /* set COM1 */
inregs.x.ds = __tb >> 4;
inregs.x.dx = __tb & 0X0F;
return_code=__dpmi_int(0X60,&inregs); /* execute int */
Please be aware that "card_parms" is a 5 byte unsigned char string that
contains the init stuff for the RS232 port, the contents are correct. So, could
someone look at the code above and PLEASE tell me where I have hosed things up?
I would like to avoid going back to a old version of the Microsoft "C"
compiler so that I can upgrade my application program wih new features.
- Raw text -