Mail Archives: djgpp/1997/10/19/16:19:28
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");
}
--
* <Anders Clerwall>
* <anders DOT clerwall AT swipnet DOT se>
* <http://home5.swipnet.se/~w-56212/>
*************************************************
- Raw text -