home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 4,473 of 4,675   
   Phu Tran Hoang to All   
   Optimize speed 8086 instruction "rep mov   
   21 Jul 22 22:19:55   
   
   From: phutranhoang@nospicedham.gmail.com   
      
   Replace "rep movsb" by the following code   
   test di,1  ; alaign by word   
   jz $+4   
   movsb   
   dec cx   
      
   shr cx,1   
   rep movsw   
   jnc $+3   
   movsb   
      
      
      
   Replace "rep stosb" by the following code   
   mov ah, al   
   test di,1  ; alaign by word   
   jz $+4   
   stosb   
   dec cx   
      
   shr cx,1   
   rep stosw   
   jnc $+3   
   stosb   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca