home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / os2 / programm / 7002 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.5 KB  |  43 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!walter!att-out!pacbell.com!sgiblab!spies!wicat!kevin
  3. From: kevin@wicat.com (Kevin Vigor)
  4. Subject: Re: DOS Box Programming
  5. Message-ID: <1992Dec14.180704.29564@wicat.com>
  6. Organization: WICAT Systems
  7. References: <boh.724320875@sfu.ca>
  8. Date: Mon, 14 Dec 1992 18:07:04 GMT
  9. Lines: 32
  10.  
  11. boh@fraser.sfu.ca (Changhao Boh) writes:
  12.  
  13. >Hi, I am wondering about programming a serial communication programme in DOS
  14. >but would like to make it "OS/2 aware".  Thus I have the following questions.
  15.  
  16. >   1.  Is there a way to detect if a programme is operation in OS/2 2.0's
  17. >       dos box ?
  18.  
  19. A question I'd like an answer to myself; however, at the moment, I am just 
  20. checking the DOS version; if the major version is 20 or higher, I assume
  21. I'm dealing with OS/2 2.x or better.
  22.  
  23. >   2.  Is there a way a programme, running in OS/2 2.0's DOS box, can release
  24. >       clock cycles to OS/2 ?
  25.  
  26. Call interrupt 2F (hex) with AX set to 1680 (hex). The call returns with
  27. AL set to zero on sucess and 80 on failure. N.B.: this same call works
  28. in a Windows 3.x DOS box and under DPMI.
  29.  
  30. >   3.  What happens when a programme hooks onto the serial communication
  31. >       inturrupt as provided by DOS INT 21h ? Will a interrupt driven
  32. >       serial communication driver written this way be efficient in the
  33. >       DOS box of OS/2 ?
  34.  
  35. Don't know, but as it's completely inefficient under DOS, I doubt it'll be
  36. any better under OS/2 DOS box.
  37.  
  38. -- 
  39.         Peace & PopTarts, 
  40.             Kevin
  41. Email to the reply address will almost certainly bounce; use
  42. 72500.3705@compuserve.com
  43.