Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SECTION .data ;initialized data
- ; db = define byte (8-bit), dw = define word (16-bit), dd = define double-word (32-bit), equ = constant
- msg: db "Hello world!",10,0 ; this is our message
- ;printf
- SECTION .bss ;uninitialized data
- ; resb resw resd = db dw dd
- SECTION .text ;asm code
- extern printf
- global main
- main:
- push ebp
- mov ebp, esp
- push msg
- call printf
- mov esp, ebp
- pop ebp
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement