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,436 of 4,675   
   wolfgang kern to Mohammad Fayad   
   Re: Nasm error undefined reference to pr   
   20 Dec 21 10:29:11   
   
   From: nowhere@nospicedham.nevernet.at   
      
   On 20/12/2021 02:04, Mohammad Fayad wrote:   
   > Hello this is my code im trying to do a program that checks if a number is   
   divisble by 2 and 8 and im getting an error undefined printf   
   > This is the code:   
      
   cant help with the error but:   
   dividable by two:   
      test[variable],01   
      jnz not_by_2   
   dividable by eight:   
      test[variable],07   
      jnz by_2_but_not_by8   
   by2and8:   
   ...   
      
   or much easier:   
     test[variable],15   
     ;dividable by 2 and 8 if four least significant bits are zero   
     jnz failed   
   by2and8:   
   ...   
   __   
   wolfgang   
      
   --- 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