Thread: Debian Lenny
View Single Post
  #7  
Old 11-06-2008, 04:46 PM
Kobaz
Hill Giant
 
Join Date: Nov 2008
Location: Gold Coast, Oz
Posts: 119
Default

Fixed code seems to be:

Code:
__asm __volatile (

             "push  %%ebx\n"

             "xorl   %%ebx, %%ebx\n"
              "movl   %1, %%esi\n"   

(cut many lines)

              "xorl   (%%edi,%%ebx,4), %%eax\n"

      "2:\n"
               "pop  %%ebx\n"

              :
              : "a" (val), "g" (buf), "g" (bufsize)
              : "cx", "dx", "si", "di"
      );
        
      return val;
Reply With Quote