Update figa.s

This commit is contained in:
davtur19 2023-10-30 01:12:20 +01:00
parent 91c847659e
commit f1008e49ad

41
figa.s
View File

@ -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