added stuff
This commit is contained in:
parent
51f7f0e9b3
commit
0593429e8c
|
@ -0,0 +1,11 @@
|
||||||
|
format ELF64 executable 0
|
||||||
|
|
||||||
|
segment readable executable
|
||||||
|
|
||||||
|
entry $
|
||||||
|
; read from stdin
|
||||||
|
xor rax, rax
|
||||||
|
|
||||||
|
|
||||||
|
segment readable writable
|
||||||
|
buf rb 80
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue