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,866 of 4,675   
   Melzzzzz to Rod Pemberton   
   Re: Branching two check increment pays o   
   19 Jul 17 20:46:11   
   
   From: Melzzzzz@nospicedham.zzzzz.com   
      
   On 2017-07-19, Rod Pemberton    
   wrote:   
   > On Wed, 19 Jul 2017 17:13:54 +0000 (UTC)   
   > Melzzzzz  wrote:   
   >   
   >> 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   
   >>   
   >   
   > Eh, where is "cmp r9,0" check?   
   It is never 0.   
      
   > What about a .two section? .three? .four?   
   Heh, you gave me idea ;)   
      
      
      
   --   
   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