I'm gathering an input from the user (a string they wish to use), I then want to ask them what offset they'd like to use after storing this I know it's stored as a string, this isn't much use to me as I need to be able to use the value in a loop. Is there some way that I can convert the string for example ("2") to 2?
I have gathered an input from the user and a offset value, I then have stored these values
SECTION .data
userMsg db 'Please enter a name: ', 0
userMsgLen equ $-userMsg 
valMsg db 'Offset value: '
valMsgLen equ $-valMsg
s1 resb 10
valStore resb 255
userStore resb 255
SECTION .bss
s2 resb 10
SECTION .text
global  _start
 
_start:
mov edx, userMsgLen
mov ecx, userMsg 
mov ebx, 1 
mov eax, 4 
int 80h 
; Read the input from the keyboard
mov edx, 255        
mov ecx, userStore   
mov ebx, 0          
mov eax, 3          
int 80h 
mov edx, valMsgLen
mov ecx, valMsg 
mov ebx, 1 
mov eax, 4 
int 80h 
; Read the input from the keyboard
mov edx, 255        
mov ecx, valStore   
mov ebx, 0          
mov eax, 3          
int 80h 
mov ecx, userMsg
mov esi, s1
mov edi, s2
    
; loop here
         
I want to convert the value of valStore to a integer so it can be used in a loop to add the value of valStore
Loop ideas from here
