Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global _main ;declare main
- extern _printf ;declare printf
- section .text ;code section
- _main: ;main function
- push message ;push message to stack
- call _printf ;call printf from C
- add esp, 4 ;pull stack pointer back 4 bytes
- ret ;exit
- message:
- db 'Hello, World', 10, 0 ;message variable
Advertisement
Add Comment
Please, Sign In to add comment