t1nman

Arch_even

May 2nd, 2012
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. extern ExitProcess
  2. %include "io.inc"
  3.  
  4. section .data
  5. x dd 151
  6. msg0 dw "Hello, odd world!", 0xa
  7. len0 equ $ - msg0
  8.  
  9. msg1 dw "Hello, even world!", 0xa
  10. len1 equ $ - msg1
  11.  
  12. section .text use32
  13.  
  14. ..start:
  15.         mov eax, [x]
  16.         xor edx, edx
  17.         mov ebx, 2
  18.         div ebx
  19.     if:
  20.         cmp edx, 0
  21.         jne else
  22.     then:
  23.         push len1
  24.         push msg1
  25.         jmp endif
  26.     else:
  27.         push len0
  28.         push msg0
  29.     endif:
  30.         call outa
  31.        
  32.         push dword 0
  33.         call ExitProcess
Advertisement
Add Comment
Please, Sign In to add comment