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 cx, 10 ; loop counter
- _loop_start:
- push cx ; push loop counter onto stack, so it doesn't get overwritten
- mov ebx, 0x01
- mov ecx, msg
- mov edx, len
- mov eax, 0x04
- int 0x80
- pop cx
- dec cx
- cmp cx, 0
- jge _loop_start
- _done:
- mov ebx, 0x00
- mov eax, 0x01
- int 0x80
Advertisement
Add Comment
Please, Sign In to add comment