I'm trying to take a string of numbers and convert it to an actual number. I can successfully convert it if it's just one digit, but I'm unsure how to convert a number with two or more digits.
section .data
str: db '3' ;string to be converted
section .text
global _start
_start:
mov ebx, [str]
sub ebx, 48 ;convert character to number
mov eax, 1
int 0X80 ;exit, returning the converted number