Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extern ExitProcess
- %include "io.inc"
- section .data
- x dd 151
- msg0 dw "Hello, odd world!", 0xa
- len0 equ $ - msg0
- msg1 dw "Hello, even world!", 0xa
- len1 equ $ - msg1
- section .text use32
- ..start:
- mov eax, [x]
- xor edx, edx
- mov ebx, 2
- div ebx
- if:
- cmp edx, 0
- jne else
- then:
- push len1
- push msg1
- jmp endif
- else:
- push len0
- push msg0
- endif:
- call outa
- push dword 0
- call ExitProcess
Advertisement
Add Comment
Please, Sign In to add comment