Printing Digit Names in MIPS

liunx

Guest
Hello, I am new to MIPS Assembly and I am honestly just trying to understand a way to go about starting this program.<br /><br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->Using SPIM, write and test a program that reads in a positive integer using the SPIM system calls. If the integer is not positive, the program should terminate the message "Invalid Entry"; otherwise the program should print out the names of the digits of the integers, delimited by exactly one space. For example, if the user entered "728", the output would be "Seven Two Eight."<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />If I typed in 728, I don't understand how you can separate the digits in the code in MIPS. I have some experience with Java/C++ and I know I have done something similar to it. Any ideas would be greatly appreciated.<br /><br /><span class='edit'>This post has been edited by <b>JediSpam</b>: 5 Feb, 2008 - 08:11 PM</span>
</div>
 
Back
Top