vkdot/cl/cl.s
2025-03-02 03:05:35 -05:00

25 lines
295 B
ArmAsm

#Clear the screen
#By vilyaem
# you cant have this with libc
.global _start
# you need this with libc
#.global main
str:
.asciz "\x1b[H\x1b[J"
_start:
#lea str, %rdi
#mov $0, %rax
#call puts
mov $1, %rax
mov $1, %rdi
mov $str, %rsi
mov $6, %rdx
syscall
mov $60, %rax
mov $0, %rdi
syscall