assembly - MIPS: Check how many alphabetic characters are in a string -



assembly - MIPS: Check how many alphabetic characters are in a string -

right i'm trying load null-terminated string , homecoming number of alphabetic characters in string. have 3 functions: main, countalpha (which intended count number of characters), , isalpha, determines whether character alphabetic or not. help algorithm.

so, main load string, jump , link countalpha, , load syscall commands print int , exit program.

for countalpha, having problem with, want create loop goes through each character in string , if isalpha returns 1 (indicating character alphabetic), increment count.

isalpha straightforward-just determine if character between specific numbers in ascii.

so guess question how attack countalpha. help. (note: don't want actual code, tips , hints)

sounds want test homecoming value / register phone call isalpha , add/increment seperate register/count var everytime test true. or add together homecoming value straight count register every time through loop if value returned 0 or 1. then, setup loop maintain going until current character '\0' char. count register holds final value.

is in-depth plenty help out?

string assembly ascii mips

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -