Help with homework

After , start by modifying the MIPS code examples found in the and then:

Write 2 programs, one in C and one in MIPS assembly language that:

  • prints your name and Red ID
  • inputs an integer number from the keyboard
  • shifts the input number equivalent to multiplying it by 8
    • Shifting a binary number left or right is the same as multiplying or dividing by a power of 2. Similarly in decimal numbers moving the decimal point right or left is the same as multiplying or dividing by a power of 10. The point is to use a shift operation, not a multiply instruction.
  • prints the result

You must submit THREE files:

1) Your .asm MIPS assembly file named as: HW2-YourName.asm

2) Your main.c source file

3) A brief report document file in .pdf .doc or .docx including:

  • a description of the program
  • a screen shot showing both C and MIPS programs working
  • the .c and .asm source code MUST be pasted as TEXT at the end of the doc file, NOT screenshots of the code