From: "Anders Clerwall" Newsgroups: comp.os.msdos.djgpp Subject: flip routine in asm Date: 19 Oct 1997 18:51:51 GMT Organization: OMGIM Productions Lines: 17 Message-ID: <01bcdcc7$98621a60$296df482@scavvis> NNTP-Posting-Host: mn8.swip.net Cache-Post-Path: mn8!s-319918 AT dialup109-3-9 DOT swipnet DOT se To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi!.. I have made a flip routine in inline asm, why doesn't it work!!.. Can anyone help? Here it is: void flip(short source, short dest) { asm( "movw %0, %%ds\n\t" "movw %1, %%es\n\t" "rep\n\t" "movsl" : : "r" (source), "r" (dest), "S" (0), "D" (0), "c" (16000) : "memory", "%esi", "%edi", "%ecx"); } -- * * * *************************************************