27 lines
322 B
NASM
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
|
|
|
|
|