Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. section .data ;; The section of the assembly code is where we
  2. ; keep the constants
  3. hello db "+",10 ;;declare constant hello that
  4. ; points to �Hello world!� 10 equates to the
  5. ; line character
  6. helloLen equ $-hello ;; This returns the length of the
  7. ; �Hello world!� string
  8. section .text ;; This is the section where the assembly code
  9. ; is stored
  10. global _start
  11. _start
  12. mov si, 0
  13. mov bp, 5
  14. L1:
  15. mov eax,4
  16. mov ebx,1
  17. mov ecx, hello
  18. mov edx, helloLen
  19. int 80h
  20.  
  21. dec bp
  22. jnz L1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement