After installing MARS, start by modifying the MIPS code examples found in the sh

Electrical Engineering

comment No Comments

By admin

Important - Read this before proceeding

These instructions reflect a task our writers previously completed for another student. Should you require assistance with the same assignment, please submit your homework details to our writers’ platform. This will ensure you receive an original paper, you can submit as your own. For further guidance, visit our ‘How It Works’ page.

After installing MARS, start by modifying the MIPS code examples found in the shared folder for CompE-271 containing course related files hereand 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 8Shifting 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

get this assignment from a professional tutor. 100% original paper.

learn how

Leave a Comment