How do i convert char into integer. I am using arm komodo. so far i have managed to take an input from the user and print this out to the screen. However i need to covert this chosen char "number" into a integer "number". I have no idea where to start please help! Also i know I have a loop that will not stop. I will try fix that problem later on.
B main
question DEFB "How many verses do you want to print?",0
answer DEFB "",0
input DEFB "a",0
newline DEFB "\n",0
done DEFB "done\n",0
ALIGN
main
loop ADR R0,question
SWI 3
SWI 1
STR R0,answer
ADR R0,answer
SWI 3
ADR R0,newline
SWI 3
B loop
ADR R0,done
SWI 3
SWI 2