Advertisement
Guest User

Untitled

a guest
Apr 25th, 2014
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. xor rax,rax;
  2. mov eax, 6 ;
  3. mov ecx, 1 ;
  4. loop:
  5. cmp ecx, 6
  6. jbe end_loop ; ecx >= bufor
  7.  
  8. xor edx ,edx ;
  9. mov eax, 6
  10. div ecx ; div dla edi
  11.  
  12. cmp edx, 0
  13. je not_prime
  14.  
  15. inc ecx ; i++
  16. jmp loop_for
  17.  
  18. mov ecx, 1 ;
  19. loop:
  20. cmp ecx, 6
  21. jbe end_loop ; ecx >= bufor
  22.  
  23. ecx = 1;
  24. do {
  25. if (ecx <= 6) goto end_loop;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement