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 section .data
text1 db "Che schifo la figa.",10,"Meglio Linux",10
schifo:
.ascii "Che schifo la figa.\n"
schifo_len:
.long . - schifo
meglio: section .text
.ascii "Meglio Linux!\n" global _start
meglio_len:
.long . - meglio
.section .text
.global _start
_start: _start:
movl $4, %eax mov rax, 1
movl $1, %ebx mov rdi, 1
leal schifo, %ecx mov rsi, text1
movl schifo_len, %edx mov rdx, 33
int $0x80 syscall
movl $4, %eax
movl $1, %ebx mov rax, 60
leal meglio, %ecx mov rdi, 0
movl meglio_len, %edx syscall
int $0x80
movl $1, %eax
xorl %ebx, %ebx
int $0x80