Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- section .data ;; The section of the assembly code is where we
- ; keep the constants
- hello db "+",10 ;;declare constant hello that
- ; points to �Hello world!� 10 equates to the
- ; line character
- helloLen equ $-hello ;; This returns the length of the
- ; �Hello world!� string
- section .text ;; This is the section where the assembly code
- ; is stored
- global _start
- _start
- mov si, 0
- mov bp, 5
- L1:
- mov eax,4
- mov ebx,1
- mov ecx, hello
- mov edx, helloLen
- int 80h
- dec bp
- jnz L1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement