Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .686
- .model flat
- extern _ExitProcess@4 : PROC
- extern __write : PROC
- extern __read : PROC
- public _main
- .data
- liczba dd 12345678h
- .code
- _main:
- mov eax, 1011712 ;; liczba testowana
- mov ecx, 0 ;; rejestr wyniku
- sprawdzaj:
- mov ebx, eax
- and ebx, 00000001h
- add ecx, ebx
- shr eax, 1
- test eax, eax
- jnz sprawdzaj
- push 0
- call _ExitProcess@4 ; zakończenie programu
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement