made length only print the length and nothing else

This commit is contained in:
zombie maniac 2021-09-18 05:45:19 -04:00
parent bc103e75bd
commit ad76e24e30

View file

@ -7,7 +7,7 @@ default rel
section .rodata section .rodata
format db "%#x", 10, 0 format db "%#d", 10, 0
section .data section .data
text db "rEE",0 text db "rEE",0
@ -24,10 +24,6 @@ main:
call length_func call length_func
mov [testasd], rax mov [testasd], rax
mov rdi, text
cld
call puts ;this is the puts way of printing a string
mov rsi, [testasd] mov rsi, [testasd]
lea rdi, [rel format] lea rdi, [rel format]