Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C to MIPS32 assembly

Name: Anonymous 2009-11-11 1:35

I'm having some trouble figuring out how to express the following C segment, specifically the compound if statement, in MIPS32 assembly:
if((text[i] >= 65 && text[i] <= 90) || (text[i] >= 97 && text[i] <= 122))
{
    text[j] = text[i];
    charCount++;
}
else
{
    badword = true;
    last = last - charCount;
}

Can anybody give me some help with this?

Name: Anonymous 2009-11-11 2:25

oops I mean mov ax, [si+text]

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List