home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!Chico.Chemie.FU-Berlin.DE!melchers
- From: melchers@Chico.Chemie.FU-Berlin.DE (Bernd Melchers)
- Newsgroups: comp.unix.sysv386
- Subject: inline _asm support for DELLs cc?
- Message-ID: <KM05HEM@math.fu-berlin.de>
- Date: 21 Aug 92 12:55:20 GMT
- Sender: news@math.fu-berlin.de (Math Department)
- Organization: Free University of Berlin, Germany
- Lines: 44
-
- Does the c compiler for DELL Unix support inline
- assembler within a c program like this:
-
- ...
- C-Code
- ...
- *left++ = *rigth;
- *rigth-- = tmp;
- }
- left += loops;
- rigth += size15;
- }
- return array;
- }
-
- #ifdef MSDOS
- long int _fastcall Mips2IntelDoubleword(long int dw /* in DX:AX */)
- {
- _asm
- {
- ;exchange most with least significant word
- mov cx, dx
- mov dx, ax
- mov ax, cx
- ;exchange most with least significant byte
- rol ax, 8
- rol dx, 8
- }
- }/*Mips2IntelDoubleWord*/
- ...
- c code
- ...
- #endif /* MSDOS */
-
-
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Bernd Melchers | melchers@chico.chemie.fu-berlin.de
- Freie Universitaet Berlin | Lieblingsessen: Pizza, aber nur
- Institut fuer Kristallographie | selbstgemachte...
- Takustr. 6 | und ohne Tierkadaver
- D 1000 Berlin 33 |
- Earth |
- Tel.: 0049-30-8383612 |
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-