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 2,858 of 4,675   
   Melzzzzz to All   
   Branching two check increment pays of?   
   19 Jul 17 17:13:54   
   
   From: Melzzzzz@nospicedham.zzzzz.com   
      
   I have following code snippet:   
      
       cmp r9,1   
       je .one   
       add rdi,r9   
       sub rdx,r9   
       jmp .L0   
   .one:   
       inc rdi   
       dec rdx   
       jmp .L0   
      
   For some reason I did it like that and it seems that doesn't hurt, but   
   gives significant boost in some cases?   
   Am I doing it wrong or is this good practice?   
      
   --   
   press any key to continue or any other to quit...   
      
   --- 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