mov eax, 4
mov ebx, 1
mov ecx, promptUser
mov edx, len
int 0x80
mov eax, 3
mov ebx, 0
mov ecx, userInput
mov edx, 10
int 0x80
mov eax, 4
mov ebx, 1
int 0x80 : everything works until here
cmp ecx, 1
jle elseif
cmp ecx, 20
jge elseif
mov eax, 4
mov ebx, 1
mov ecx, if
mov edx, ifLen
int 0x80 : doesn't work
label1: cmp ecx, 21
jle aelseif
cmp ecx, 41
jge aelseif
mov eax, 4
mov ebx, 1
mov ecx, aIf
mov edx, aIfLen
int 0x80 : doesn't work
Do I have to add this: str2int data so that we can compare ecx with decimal numbers?
Also do I have to remove int0x80, because it erase the value of ecx?
mov eax, 4
mov ebx, 1
mov ecx, promptUser
mov edx, len
int 0x80
mov eax, 3
mov ebx, 0
mov ecx, userInput
str2int data : converts userInput intro decimal int
mov edx, 10
int 0x80
mov eax, 4
mov ebx, 1
int 0x80 : everything works until here
cmp ecx, 1
jle elseif
cmp ecx, 20
jge elseif
mov eax, 4
mov ebx, 1
mov ecx, if
mov edx, ifLen
int 0x80 : doesn't work
label1: cmp ecx, 21
jle aelseif
cmp ecx, 41
jge aelseif
mov eax, 4
mov ebx, 1
mov ecx, aIf
mov edx, aIfLen
int 0x80 : doesn't work