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,264 of 4,675   
   Kerr-Mudd,John to notsaying@nospicedham.127.0.0.1   
   Re: test al,al setting of ZF   
   31 Dec 20 11:30:12   
   
   From: notsaying@nospicedham.127.0.0.1   
      
   On Wed, 30 Dec 2020 19:58:19 GMT, "Kerr-Mudd,John"   
    wrote:   
      
   > On Wed, 30 Dec 2020 18:12:37 GMT, Terje Mathisen   
   >  wrote:   
      
   []   
      
   >> for CMP AL,0? I.e. is there a one-byte form of CMP AL with a one-byte   
   >> immediate?   
   >>   
   >> Terje   
   >   
   > Hugi tips & tricks snippet:   
   >   
   >   
   >  1. Test the value in AL   
   >   
   >  To test whether AL is 0 or 1, one single-byte instruction is enough:   
   >   
   >         aaa   
   >         jz      @zero   
   >   
   >   
   > I'm not claiming it's faster than "test".   
   >   
      
   Oops; also jumps if AL is 0x0A   
      
      
      
   --   
   Bah, and indeed, Humbug.   
      
   --- 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