delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/03/02/17:30:04

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Lines: 24
X-Admin: news AT aol DOT com
From: captainpita AT aol DOT com (Captainpita)
Newsgroups: comp.os.msdos.djgpp
Date: 02 Mar 2002 22:25:36 GMT
Organization: AOL http://www.aol.com
Subject: Still having problems __dpmi_int()
Message-ID: <20020302172536.09697.00001834@mb-fc.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 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019