CSc 252 Homework 4
Version 1.0
June 27, 2011
Homework 4 Solutions to Problems Turned-In
5. turnin this one (20 points) The Caller
passes 3 arguments to the function kilo. The Callers $fp
Caller nee
CSc 252 Homework 3
Version 1.0
June 20, 2011
Homework 3
Due: 6:00 p.m. Thursday, June 25th.
Turnin: Problems 5, 8, and 9. Solutions to the other problems are attached.
How to Turnin:
Bring your ho
CSc 252 Program 1
Version 1.0
Program 1: Array Practice
Program due: Thursday, September 29th, 11:59 p.m.
Write a MIPS program named prog1.s.Your program will use an array labeled values. The
number o
CSc 252 Homework 4
Version 1.0
Homework 4
Due: 10:30am Tuesday, O ct. 18, 2011
Turnin: T wo solutions: 3, and 4. To receive credit for your solutions, you must show your
work where applicable. Solutio
First Name: _
Last Name: _
Sample Quiz #7
CSc 252, Spring 2014
Use only these MIPS instructions in answering the questions that need MIPS solutions.
Category
Instruction
add
add
immediate
subtr
Solutions to Quiz #2 CSc 252, Summer 2011
Questions 1, 2, 3, 4, 5, 6 and 7 assume the following MIPS code, which sets up memory
locations: erie, drgw, cbq, epsw, fwd and newline. The code then loads t
Solutions to Quiz #4 CSc 252, Summer 2011
1. (10 points) The Caller sends 2
Callers $fp
Callers stack
Callers $sp
delta's $fp
contents of $a3
parameters to the procedure delta. The Caller
does not nee
package dicetray;
/*
* Model the tray of dice in the game Boggle.
* A DiceTray can be constructed with a 4x4 array of characters for testing.
*
* This does not include the 16 Boggle dice or the s
Solutions to Quiz #3 CSc 252, Summer 2011
1. (10 points) For
the logic circuit shown a
to the right, complete b
the truth table. For the
labeled gates, G1, G2, G3, G4,
G5, G6, and G7 state the
output
CSc 252 Homework 2
Version 1. 0
Homework 2
Due: 10am Tuesday, Sep. 20, 2011
Turnin: Three solutions: 1 g, 1 h, and 2 g. To receive credit for your solutions, you must show
your work where applicable.
CSc 252 Program 2
Version 1.0
Program 2: Swapping Numbers
Program due: Thursday, October 13th, 11:59p.m.
Write a program, named prog2.s, that will swap adjacent values in an array of integers. The
arr
CSc 252 Homework 1
Version 1.0
June 6, 2011
Solutions to Problems Turned In
1. Assume that 16-bit, twos complement, binary numbers are being used in this problem.
Some binary arithmetic and convers
CSc 252 Homework 1
Version 1.0
Homework 1
Due: 10am Tuesday, Sep. 06, 2011
Turnin: Four solutions: 1 iv, 1 v, 5 and 9. To receive credit for your solutions, you must show
your work where applicable. S
CSc 252 Homework 4 !
Version 1.0!
June 27, 2011
Homework 4
Due: 6:00 p.m. on Thursday, June 30th.
Turnin: Problems 5, 11 and 12. The others are practice for the quiz. Solutions to the practice
problem
CSc 252 Homework 5
Version 1.0
July 5, 2011
Homework 5
Due: nothing to turn in for this assignment. These exercises are intended to help you in
reviewing pipelining for the Final Exam.
Turnin: noth
CSc 252 Homework 3
Version 1.0
February 23, 2014
Homework 3
Due: 6:00 pm Thursday, February 27th
Turnin: Four solutions: 5, 13, 15, and 20. To receive credit for your solution, you must show
your
First Name: _
Last Name: _
Sample Quiz #2
CSc 252, Spring 2014
The questions on this quiz assume the following MIPS code, which sets up memory locations:
shiloh, sumter, antietam, aramis, portho
CSc 252 Program 1
Version 1.0
February 6, 2014
Program 1: Printing, Multiplying, Subtracting
Program due: Thursday, February 13th, 9 p.m.
Write a MIPS program named prog1.s. The program will perfo
First Name: _
Last Name: _
Sample Quiz #3
CSc 252, Fall 2015
This is a 30 minute quiz, and contains 5 questions on 7 pages worth a total of 55 points. It is a
closed-book, closed-notes quiz. Foreign-l
Storing Information Digitally
Read: Sections 2.4, 3.1, 3.2
Binary Basics:
Why binary numbers?
In a digital computer, all information is represented using the binary number system.
It is easy to build
First Name: _
Last Name: _
Sample Quiz #3
CSc 252, Fall 2013
This is a 30 minute quiz, and contains 6 questions on 4 pages worth a total of 54 points. It is a
closed-book, closed-notes quiz. For
CSc 252 Testing Programs
Version 1.0
February 6, 2014
Testing CSc 252 Programs
This document describes how to use the testing script along with the provided test cases with
your programs for CSc
CSc 252 MIPS to lectura
Version 1.0
February 6, 2014
Getting your MIPS program to lectura
To use the provided testing script, you will need to copy your MIPS program to lectura. This
page contains
MIPS Introduction
Read: Chapter 2 and Appendix B (4th edition)
The appendix is available as http:/pages.cs.wisc.edu/~larus/HP_AppA.pdf from spim website.
Note: The on-line version is named Appendix
First Name: _
Last Name: _
Sample Quiz #4
CSc 252, Spring 2014
Use only these MIPS instructions in answering the questions that need MIPS solutions.
Category
Instruction
Example
add
add
add
imm
CSc 252 Program 5
Version 1.0
November 5, 2015
Program 5: Average
Program due: Thursday, November 12th, 9:00 p.m.
Write a program named prog5.s. The program will compute baseball batting percentages.
Topic 5 Procedures in MIPS
Reading: Section 2.8, pages 112-122 (4th) or 96-106 (5th); Spim Appendix Section A.6, pages A-22 to A-33
Overview:
Structure programs:
Make them easier to understand, and
Ma