Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. section .text
  2. global _start
  3.  
  4. _start:
  5. mov ecx, string
  6.  
  7. .loop:
  8. mov ax, [ecx]
  9. cmp ax, 0
  10. jz .fin
  11. cmp ax, 'a'
  12. jl .inc
  13. cmp ax, 'z'
  14. jg .inc
  15. add ax, 32
  16.  
  17. .inc:
  18. inc ecx
  19. jmp .loop
  20.  
  21. .fin:
  22. mov eax, 4 ;system call number (sys_write)
  23. mov ebx,1 ;file descriptor (stdout)
  24. mov ecx,string
  25. int 80h
  26. mov eax,1 ;system call number (sys_exit)
  27. int 0x80
  28.  
  29. section .data
  30. string db 'h4ppy c0ding',0xa
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement