Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- section .text
- global _start
- _start:
- mov ecx, string
- .loop:
- mov ax, [ecx]
- cmp ax, 0
- jz .fin
- cmp ax, 'a'
- jl .inc
- cmp ax, 'z'
- jg .inc
- add ax, 32
- .inc:
- inc ecx
- jmp .loop
- .fin:
- mov eax, 4 ;system call number (sys_write)
- mov ebx,1 ;file descriptor (stdout)
- mov ecx,string
- int 80h
- mov eax,1 ;system call number (sys_exit)
- int 0x80
- section .data
- string db 'h4ppy c0ding',0xa
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement