home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / c / 18735 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.2 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!agate!dog.ee.lbl.gov!network.ucsd.edu!munnari.oz.au!goanna!escargot!monu6!giaeb!s1110238
  2. From: s1110238@giaeb.cc.monash.edu.au (Lee Hollingworth)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Inline ASM in Quick C/ MS C 5.1
  5. Message-ID: <s1110238.724922103@giaeb>
  6. Date: 21 Dec 92 07:15:03 GMT
  7. References: <yR5XVB4w165w@blackwlf.gwinnett.com>
  8. Sender: news@monu6.cc.monash.edu.au (Usenet system)
  9. Organization: Monash University, Melb., Australia.
  10. Lines: 34
  11.  
  12. ericwebb@blackwlf.gwinnett.com (eric webb) writes:
  13.  
  14. >Hi...  Does anyone know if one can do inline ASM in Quick C?  How does
  15. >one do it?  I have version 1.01, but tell me about it even if it's for a
  16. >different version..   Can you do it with MS C 5.1?  I also have a copy of
  17. >it, and if neccessary to do inline ASM, can use it.
  18. >
  19. >Tks!!!
  20.  
  21. >Eric Webb
  22.  
  23. Wrong newsgroup Eric...
  24.  
  25. Not sure what version it was introduced (I know it works with QC2.0+ and
  26. MSC6.0+)..
  27.  
  28. /*
  29.  * clear a 25 rows * 80 col display
  30.  */
  31. void clearscr(void) {
  32. {
  33.     _asm {
  34.         mov     ah, 06h
  35.         xor     al, al
  36.         mov     bh, 07h
  37.         xor     cx, cx
  38.         mov     dh, 79
  39.         mov     dl, 24
  40.         int     10h
  41.     }
  42. }
  43.  
  44. Lee Hollingworth
  45. s1110238@giaeb.cc.monash.edu.au
  46.