Advertisement
Guest User

Untitled

a guest
Nov 30th, 2015
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. CompareSecretPlay:
  2. push ebp
  3. mov ebp, esp
  4.  
  5. mov eax,0
  6. mov edx,0
  7.  
  8. forHits:
  9. cmp eax,5
  10. je next
  11. mov [hits+eax],0
  12. inc eax
  13. jmp forHits
  14.  
  15. next:
  16. mov eax,0
  17.  
  18. mainIter:
  19. cmp eax,5
  20. je out
  21. mov ebx, [play+eax]
  22. cmp ebx,[secret+eax]
  23. je igual
  24. jne desigual
  25.  
  26. igual:
  27. mov [hits+eax],1
  28. inc eax
  29. jmp mainIter
  30.  
  31. desigual:
  32. cmp edx,5
  33. je noinsecret
  34. cmp ebx,[secret+eax]
  35. je insecret
  36. inc edx
  37. jmp desigual
  38.  
  39. noinsecret:
  40. mov [hits+eax],0
  41. inc eax
  42. jmp mainIter
  43.  
  44. insecret:
  45.  
  46.  
  47.  
  48.  
  49. out:
  50.  
  51.  
  52. pop esi
  53. mov esp, ebp
  54. pop ebp
  55. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement