Home > Software design >  error: unable to find valid values for all labels after 1003 passes; stalled for 1001, giving up
error: unable to find valid values for all labels after 1003 passes; stalled for 1001, giving up

Time:11-16

I am new to Nasm coding , was trying string operations but keep receiving the error: unable to find valid values for all labels after 1003 passes; stalled for 1001, giving up. Tried all methods on internet but couldn't find any solution.

%macro scall 4          
    mov rax,%1
    mov rdi,%2
    mov rsi,%3
    mov rdx,%4
    syscall         ;call the kernel           
%endmacro

%macro quit 0
    mov rax,60 
    mov rdi,0 
    syscall

%endmacro

section .data
    m1 db 10d,13d,"Enter the String",10d
    l1 equ $-m1
    m2 db 10d,13d,"Length of string",10d,13d
    l2 equ $-m2
    m3 db 10d,13d,"Reversed String",10d,13d
    l3 equ $-m3
    m4 db 10d,13d,"           
  • Related