zombie-core-utils/yes.asm
2021-09-09 18:34:54 -04:00

27 lines
322 B
NASM

extern puts
section .data
text db "y",0
section .text
global main
main:
sub rsp, 8
_loop:
mov rdi, text
cld
call puts ;this is the put s way of printing a string
jmp _loop
_end:
add rsp, 8
ret
; mov rax, 60 ; exit
; mov edi, 1 ; error 1 dont need the exit anymore beacue libc or somthing
; syscall