Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # $ cat hello-lkf-programming-practice.s
- # This is a programming practice. Tämä on ohjelmointiharjoitus.
- # Muokkasin tämän yhdestä ohjeesta WWW:stä.
- # Compile and run with (käännä ja aja komennoilla):
- # gcc -s hello-lkf-programming-practice.s && ld hello-lkf-programming-practice.o && ./a.out
- .global _start
- .text
- _start:
- mov $1, %rax
- mov $1, %rdi
- mov $viesti, %rsi
- mov $16, %rdx
- syscall
- mov $60, %rax
- xor %rdi, %rdi
- syscall
- viesti:
- .ascii "Terve Laurilta!\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement