Related questions
Accessing one character in a string
I am using something like SPIMS or MARS with syscall functions.
I am reading in a string (and it works because I can print it out) as follows:
li $v0, 8
la $a0, string
li $a1, 256
syscall
However, I am having …
Storing values in HI and LO registers of MIPS
I am writing certain code in MIPS and I've come to the point where the requirement is to store the result, temporarily, in HI and LO special registers (both are 4 bytes wide). These instructions are at my disposal:
divu s,…
Reversing a string in MIPS Assembly
I'm trying to prompt the user for the length of a string, allocate space for that string, then print it out in reverse.
For the life of me, I can't figure out why this isn't working..
Sample Output:
(spim) run
…