added stuff

This commit is contained in:
Win 2024-06-11 19:54:36 +07:00
parent 51f7f0e9b3
commit 0593429e8c
2 changed files with 12 additions and 5 deletions

11
x86-64/in-out/in-out.asm Normal file
View File

@ -0,0 +1,11 @@
format ELF64 executable 0
segment readable executable
entry $
; read from stdin
xor rax, rax
segment readable writable
buf rb 80

View File

@ -34,12 +34,8 @@ loop_through:
mov rcx, rax mov rcx, rax
jmp loop_through jmp loop_through
print:
mov rax, 0x01
mov rdi, 1
mov esi
exit: exit:
mov rdi, rcx
mov rax, 0x3c mov rax, 0x3c
syscall syscall