I'm currently stuck on a part of my code where I need to ask the user for a number between 0 and 25. If it is outside that range, I have to acknowledge it and request the user to ask for another number. This is done within a 64bit intel architecture.
section .data
    text1 db "Enter shift value: "
    text2 db "Enter original message: "
    text3 db "Current message: "
    text4 db "Encryption: "
    ;lowBound dword 0
    ;upBound dword 25
section .bss
    value resb 5
    message resb 100
section .text
    global main
main:
    call _printText1
    call _getVal
    call _checkVal  
    call _printText2
    call _getMes
    call _printText3
    call _printMes
    
    call _printText4
    ;call _printEncryp
    mov rax, 60
    mov rdi, 0
    syscall
_printText1:
    mov rax, 1
    mov rdi, 1
    mov rsi, text1
    mov rdx, 19
    syscall
    ret
_getVal:
    mov rax, 0
    mov rdi, 0
    mov rsi, value
    mov rdx, 5
    syscall
    ret
_checkVal:
    mov eax, value
    
    ret
This is what I have so far, with the _checkVal function being the place where I would check if the user input is between 0 and 25. Thanks in advance!
 
    