shahab03 0 Light Poster

Write a main program for the MIPS machine that uses syscall to repeatedly prompt the user to enter strings one per line representing valid decimal integers in the range 0 to 999999999999. Use 64 bits for each integer. Valid strings may only contain the characters ‘0’ through ‘9’. All strings other than valid decimal integers should be rejected. The numeric value indicated by each of the decimal strings should be added into a running 64-bit sum until a total of 10 strings have been entered or until the user indicates that there is no more input. The computed 64-bit sum should then be displayed on the console.

This exercise involves converting between external and internal representation for input and between internal and external representation for output.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.