Relative Content

Tag Archive for linuxassemblyx86-64nasm

Why does this program produce an infinite loop, using LOOP around a SYSCALL?

section .data lol: db “lol”,10 global _start section .text _start: mov rcx, 5 mainloop: mov rax,1 mov rdi,1 mov rsi, lol mov rdx, 4 syscall loop mainloop mov rax, 60 syscall nasm linux x86_64 I wanted to output 5 times, but it ended up being an infinite loop. linux assembly x86-64 nasm New contributor GT […]

Why does this program produce an infinite loop, using LOOP around a SYSCALL?

section .data lol: db “lol”,10 global _start section .text _start: mov rcx, 5 mainloop: mov rax,1 mov rdi,1 mov rsi, lol mov rdx, 4 syscall loop mainloop mov rax, 60 syscall nasm linux x86_64 I wanted to output 5 times, but it ended up being an infinite loop. linux assembly x86-64 nasm New contributor GT […]