Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- section .data
- msg db "Hello, World!", 0x0a
- len equ $-msg
- section .text
- global _start
- _start:
- mov edx, 20
- add edx, '0' ; convert to ASCII
- push dx ; push to stack
- mov eax, 0x04 ; write
- mov ebx, 0x01 ; to STDOUT
- mov ecx, esp
- mov edx, 0x01 ; write 1 byte
- int 0x80
- mov ebx, 0x00
- mov eax, 0x01
- int 0x80
Advertisement
Add Comment
Please, Sign In to add comment