figasm64/figa.s

34 lines
422 B
ArmAsm
Raw Permalink Normal View History

2020-11-26 20:37:30 +01:00
/* vim: set filetype=gas : */
2020-07-01 00:22:49 +02:00
2020-11-26 20:37:30 +01:00
.data
figa: .string "Che schifo la figa\n"
figa_len: .quad .- figa
2020-07-01 00:22:49 +02:00
2020-11-26 20:37:30 +01:00
linux: .string "Meglio Linux!\n"
linux_len: .long .- linux
.text
.globl _start
2020-07-01 00:22:49 +02:00
_start:
2020-11-26 20:37:30 +01:00
push %rbp
mov %rsp, %rbp
mov $1, %rax
mov $1, %rdi
lea figa, %rsi
mov figa_len, %rdx
syscall
mov $1, %rax
lea linux, %rsi
mov linux_len, %rdx
syscall
xor %rdi, %rdi
mov $60, %rax
syscall