I'm trying to translate a simple C function (that tells you whether a word, made by a char array, is a palindrome) into MIPS 32 but I'm having trouble using getting to load non-multiple-of-4 positions of the array.
Apparently,
`li t0,0(a0)`
loads the first letter (char), and
`li t0,4(a0)`
loads the fifth letter of the array (I thought it would have been the second one). Trying to load the second, as in:
`li t0,1(a0)`
gets me a segmentation fault. So does using shift left logical before loading 0(a0). How do I solve this?