PART 1: Design a program (using only native MIPS instructions, no pseudo instructions) that will prompt...

50.1K

Verified Solution

Question

Electrical Engineering

PART 1: Design a program (using only native MIPS instructions,no pseudo instructions) that will prompt user to enter threedecimal numbers. Each decimal number will not exceed six digits Theprogram can't ask user how many digits will be entered. Bothnumbers must be stored in memory as NULL terminated strings. Thefirst number must be stored at the memory address 0x10000000. Thesecond number must be stored in the memory 0x10000008. The thirdnumber must be stored at the memory 0x10000010. The user may entera comma(e.g 123,456) when entering the numbers, but not required.If a comma is entered, it should not be stored as part of thestring.

PART 2: write a MIPS assemlby language subroutine called sumthat accepts arguments in $a0 and $a1. The arguments are theaddress of the two NULL terminated strings. The subroutine shouldconvert each of the two strings to intgers, and return the sun in$v0. Note that the strings must NOT be modified by the routine!Your subroutine must adhere to the MIPS software conventions.

THE TWO PARTS MUST BE SEPERATED BY:

#_CUT_HERE

Answer & Explanation Solved by verified expert
4.2 Ratings (559 Votes)
part1 import javaio class OddEvens public static void mainString argsthrows IOException int input0evenNum0oddNum0 boolean flagtrue    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students