Pretty simple question but why does this code result in an infinite loop?
It should iterate 10 times but its iterating forever for some reason
Assembly x86 64 bit btw
_start:
mov ecx, 0
loop:
add ecx, 1
mov eax, 1
mov edi, 1
mov esi, filename
mov edx, 10
syscall
cmp ecx, 10
jne loop
```