Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,493 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,681 people online right now. Registration is fast and FREE... Join Now!




Printing Digit Names in MIPS

 
Reply to this topicStart new topic

Printing Digit Names in MIPS

JediSpam
5 Feb, 2008 - 07:11 PM
Post #1

New D.I.C Head
Group Icon

Joined: 6 Sep, 2006
Posts: 42


My Contributions
Hello, I am new to MIPS Assembly and I am honestly just trying to understand a way to go about starting this program.

QUOTE
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."


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.

This post has been edited by JediSpam: 5 Feb, 2008 - 07:11 PM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 07:53PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month