From f1008e49adf0f44a02e88e63b4d4793360b099ea Mon Sep 17 00:00:00 2001 From: davtur19 Date: Mon, 30 Oct 2023 01:12:20 +0100 Subject: [PATCH] Update figa.s --- figa.s | 41 +++++++++++++---------------------------- 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/figa.s b/figa.s index 147d541..20ee4c8 100644 --- a/figa.s +++ b/figa.s @@ -1,31 +1,16 @@ -.section .data - - schifo: - .ascii "Che schifo la figa.\n" - - schifo_len: - .long . - schifo +section .data +text1 db "Che schifo la figa.",10,"Meglio Linux",10 - meglio: - .ascii "Meglio Linux!\n" - - meglio_len: - .long . - meglio - -.section .text - .global _start +section .text +global _start _start: - movl $4, %eax - movl $1, %ebx - leal schifo, %ecx - movl schifo_len, %edx - int $0x80 - movl $4, %eax - movl $1, %ebx - leal meglio, %ecx - movl meglio_len, %edx - int $0x80 - movl $1, %eax - xorl %ebx, %ebx - int $0x80 +mov rax, 1 +mov rdi, 1 +mov rsi, text1 +mov rdx, 33 +syscall + +mov rax, 60 +mov rdi, 0 +syscall \ No newline at end of file