Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .align 32 #komentarz?
- .text
- msg_hello: .ascii "hello, world!\n"
- msg_hello_len = .-msg_hello
- .global _start
- _start:
- mov $0x400080,%edi #0x400080 adres pamieci gdzie w moim pc rozpoczynal sie ciag znakow
- do_it:
- mov $4, %eax
- mov $1, %ebx
- mov %edi, %ecx
- mov $1,%edx
- int $0x80
- inc %edi
- mov $0x400080,%eax #obsluga petli
- add $msg_hello_len,%eax
- cmp %edi,%eax #cmp ustawia flage z = 1 jak porownywane wartosci sa takie same
- jne do_it #jezeli flaga z=0 to do_it
- end:
- mov $1, %eax
- mov $0, %ebx
- int $0x80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement