Advertisement
Guest User

main.asm

a guest
Jul 25th, 2017
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [BITS 32]
  2. global _start
  3.  
  4. section .idata
  5.     extern printf
  6.     import printf msvcrt.dll
  7.  
  8. section .data
  9.     format db "%s", 13, 0
  10.     string db "Hello, world!", 0
  11.  
  12. section .code
  13.     _start:
  14.  
  15.         push dword string
  16.         push dword format
  17.         call printf
  18.         ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement