Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- section .data
- msg db "Hello, World!", 0x0a ; Hello, World! and newline
- len equ $-msg ; Length of msg
- section .text
- global _start
- _start:
- mov cx, 9
- loop_start:
- push cx
- add ecx, 0x30
- push cx
- mov eax, 0x04
- mov ebx, 0x01
- mov ecx, esp
- mov edx, 1
- int 0x80
- pop cx
- pop cx
- dec cx
- cmp cx, 0
- jge loop_start
- mov eax, 0x01 ; sys_exit
- mov ebx, 0x00 ; no file descriptor
- int 0x80
Advertisement
Add Comment
Please, Sign In to add comment