Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CompareSecretPlay:
- push ebp
- mov ebp, esp
- mov eax,0
- mov edx,0
- forHits:
- cmp eax,5
- je next
- mov [hits+eax],0
- inc eax
- jmp forHits
- next:
- mov eax,0
- mainIter:
- cmp eax,5
- je out
- mov ebx, [play+eax]
- cmp ebx,[secret+eax]
- je igual
- jne desigual
- igual:
- mov [hits+eax],1
- inc eax
- jmp mainIter
- desigual:
- cmp edx,5
- je noinsecret
- cmp ebx,[secret+eax]
- je insecret
- inc edx
- jmp desigual
- noinsecret:
- mov [hits+eax],0
- inc eax
- jmp mainIter
- insecret:
- out:
- pop esi
- mov esp, ebp
- pop ebp
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement