Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

MIPS Program Assignment for Computer Architecture Course, Assignments of Computer Architecture and Organization

Details about an assignment for the computer architecture course (csc 320) in the spring semester 2008. Students are required to write a mips program that prompts the user to input a positive integer value and the power to which it should be raised. The program should contain a main function, a function to prompt for and input values, a recursive function to perform the operation, and a function to print the result. The output should display 'x raised to the y power is z'. The program must indicate the assembler being used in the header information.

Typology: Assignments

Pre 2010

Uploaded on 08/19/2009

koofers-user-lo7
koofers-user-lo7 🇺🇸

10 documents

1 / 1

Toggle sidebar

Related documents


Partial preview of the text

Download MIPS Program Assignment for Computer Architecture Course and more Assignments Computer Architecture and Organization in PDF only on Docsity! Program Assignment Number Four CSC 320 Computer Architecture Spring Semester 2008 Due February 26, 2008 Write a MIPS program which will prompt the user to input a positive integer value which is to be raised to a power. The user should then be prompted to input the power to which the value should be raised. Your program should raise the first value to the power of the second value. Your program must contain: The usual required main function. A separate function to prompt for and input the required values. A separate function to recursively perform the required operation A separate function to print the result. The output should be “ X raised to the Y power is Z”. One additional note: You must indicate in your header information which assembler you are using. Also, make the first line of your source code a comment indicating which assembler you are using. A 10 point penalty will be applied to any program turned in which does not do this. Many of you are already doing it. For example: #MARS OR #SPIM….. then write your program.
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved