home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / sysv386 / 13403 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.4 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!Chico.Chemie.FU-Berlin.DE!melchers
  2. From: melchers@Chico.Chemie.FU-Berlin.DE (Bernd Melchers)
  3. Newsgroups: comp.unix.sysv386
  4. Subject: inline _asm support for DELLs cc?
  5. Message-ID: <KM05HEM@math.fu-berlin.de>
  6. Date: 21 Aug 92 12:55:20 GMT
  7. Sender: news@math.fu-berlin.de (Math Department)
  8. Organization: Free University of Berlin, Germany
  9. Lines: 44
  10.  
  11. Does the c compiler for DELL Unix support inline
  12. assembler within a c program like this:
  13.  
  14. ...
  15. C-Code
  16. ...
  17.             *left++ = *rigth;
  18.             *rigth-- = tmp;
  19.             }
  20.         left += loops;
  21.         rigth += size15;
  22.         }
  23.     return array;
  24. }
  25.  
  26. #ifdef MSDOS
  27. long int _fastcall Mips2IntelDoubleword(long int dw /* in DX:AX */)
  28. {
  29.     _asm
  30.         {
  31.         ;exchange most with least significant word
  32.         mov cx, dx
  33.         mov dx, ax
  34.         mov ax, cx
  35.         ;exchange most with least significant byte
  36.         rol ax, 8
  37.         rol dx, 8
  38.         }
  39. }/*Mips2IntelDoubleWord*/
  40. ...
  41. c code
  42. ...
  43. #endif /* MSDOS */
  44.  
  45.  
  46. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  47. Bernd Melchers                   | melchers@chico.chemie.fu-berlin.de
  48. Freie Universitaet Berlin        | Lieblingsessen: Pizza, aber nur
  49. Institut fuer Kristallographie   |              selbstgemachte...
  50. Takustr. 6                       |              und ohne Tierkadaver
  51. D 1000 Berlin 33                 |
  52. Earth                            |
  53. Tel.: 0049-30-8383612            |
  54. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  55.