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

  1. Path: sparky!uunet!wupost!travel!chris.lincoln
  2. From: chris.lincoln@travel.com (Chris Lincoln) 
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Inline ASM in Quick C/ MS C 5.1
  5. Message-ID: <11683.87.uupcb@travel.com>
  6. Date: 23 Dec 92 08:47:00 GMT
  7. Distribution: world
  8. Organization: Travel Online / St. Louis Online - St. Louis, MO
  9. Reply-To: chris.lincoln@travel.com (Chris Lincoln) 
  10. Lines: 27
  11.  
  12. To: ericwebb@blackwlf.gwinnett.com
  13. Date: Thu, 17 Dec 92 16:41:33 EST
  14.  
  15. EW.Hi...  Does anyone know if one can do inline ASM in Quick C?  How does
  16. EW.one do it?  I have version 1.01, but tell me about it even if it's for a
  17. EW.different version..   Can you do it with MS C 5.1?  I also have a copy of
  18.  
  19.   I had 1.0x and don't think it can do inline asm, and it has been a loong
  20.   time since I've used MSC 5.1.  QC 2.x and MSC > 6.x support it.  I'm not
  21.   sure of any earlier versions. In a nutshell:
  22.   void foo( void )
  23.   {
  24.   int a;
  25.  
  26.   _asm {
  27.        ;asm statements
  28.        }
  29.   }
  30.   or
  31.  
  32.   _asm ;asm statement
  33.  
  34.   I don't use it often enough to tell you the rules for variable access
  35.   off the top of my head.  It is quite handy for interupts and the sort.
  36. ---
  37.  . SLMR 2.0 . This tagline stolen by Silly Little Mail Reader!
  38.              
  39.