I\'m struggling with learning MIPS right now, and I\'m finding it isn\'t as easy
ID: 3846358 • Letter: I
Question
I'm struggling with learning MIPS right now, and I'm finding it isn't as easy as C++ was.
Right now, I'm to edit/write a program that will take ten number's from a user, then print those numbers out at the end with commas between them, and no comma after the last number. Example:
This is the given code:
Where I believe I'm struggling at is the "print" portion. I have the following for printstr: and for getdata:
And then this is the code I've been trying to use for the loop...
However, when I run the program it spits out "268500992, ,". So I'm not getting my input numbers or the correct number of commas even. I know that means that my loop isn't running all the way through. I'm not supposed to use and pseudo code, and only what I've learned so far - so array's are out of the question.
Can someone help me figure out what I'm missing? Does it have something to do with the stack values (which I don't completely understand)?
Explanation / Answer
Where I believe I'm struggling at is the "print" portion. I have the following for printstr: and for getdata:
And then this is the code I've been trying to use for the loop...