Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .686
- .model flat
- extern _ExitProcess@4 : PROC
- public _main
- .data
- iskry db 16 dup (?)
- .code
- _main PROC
- lea esi, iskry
- mov ebx, 11100100b
- mov eax, 11b
- mov edi, 0
- ptl:
- cmp edi, 16
- je koniec
- rol ebx, 2
- mov ecx, ebx
- and ecx, eax
- cmp ecx, 0
- je trzy
- cmp ecx, 1
- je cztery
- cmp ecx, 2
- je siedem
- mov edx, '9'
- mov [esi+edi], edx
- inc edi
- jmp ptl
- trzy:
- mov edx, '3'
- mov [esi+edi], edx
- inc edi
- jmp ptl
- cztery:
- mov edx, '4'
- mov [esi+edi], edx
- inc edi
- jmp ptl
- siedem:
- mov edx, '7'
- mov [esi+edi], edx
- inc edi
- jmp ptl
- koniec:
- push 0
- call _ExitProcess@4
- _main ENDP
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement