home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / programm / 4906 < prev    next >
Encoding:
Text File  |  1992-09-11  |  1.6 KB  |  35 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!spool.mu.edu!wupost!darwin.sura.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!ellis!sip1
  3. From: sip1@ellis.uchicago.edu (Timothy F. Sipples)
  4. Subject: Re: Inline assembler code with GNU GCC
  5. Message-ID: <1992Sep12.022307.19408@midway.uchicago.edu>
  6. Keywords: GNU C++, assembler, inline
  7. Sender: news@uchinews.uchicago.edu (News System)
  8. Reply-To: sip1@midway.uchicago.edu
  9. Organization: Dept. of Econ., Univ. of Chicago
  10. References: <1992Sep10.121235.1891@fzi.de>
  11. Date: Sat, 12 Sep 1992 02:23:07 GMT
  12. Lines: 21
  13.  
  14. In article <1992Sep10.121235.1891@fzi.de> fzi.de writes:
  15. >last week I tried to port an editor from DOS to OS/2. I got the following
  16. >problem: since the editor used the DOS mouse interface, which is accessible
  17. >through an interrupt call, I used inline assembler statements in the DOS C code.
  18. >When trying to compile this file with GCC, I got several error messages.
  19. >So, how can I in general use inline assembler statements when using GCC ?
  20. >And further, will the mouse interface still be accessible through that old
  21. >interrupt under OS/2, or will I have to reprogram the whole thing with
  22. >PM-calls?
  23.  
  24. No, the mouse is supported using 16-bit VIO calls.  You need to
  25. translate your DOS mouse interface to the OS/2 equivalent.
  26.  
  27. These mouse calls are documented in most OS/2 1.x programming
  28. references.
  29.  
  30. -- 
  31. Timothy F. Sipples      | The OS/2 FREQ. ASKED QUESTIONS LIST is avail. from
  32. sip1@ellis.uchicago.edu | 128.123.35.151, anonymous ftp, in /pub/os2/all/faq.
  33. Dept. of Econ., Univ.   | Or from LISTSERV@BLEKUL11.BITNET (send "HELP").
  34. of Chicago, 60637       | Family Values Means a Job
  35.