Class Notes (838,386)
Canada (510,872)
CS 240 (49)
Lecture

tutorial 2

2 Pages
86 Views
Unlock Document

Department
Computer Science
Course
CS 240
Professor
Brad Lushman
Semester
Winter

Description
CS 241 { Week 2 Tutorial Assembly Language Programming Winter 2014 1 Tutorial 1 Topics ▯ MIPS to Machine Code ▯ How to write a MIPS loop 2 Problem 1 - Convert MIPS to ML Consider the following instructions: 1. add $3, $3, $0 2. slt $3, $20, $30 3. beq $0, $0, -4 Compute the machine language (32-bit binary, and hexadecimal) equivalent to these instructions. 3 Problem 2 - How to write a MIPS loop Consider the following loops from a high-level programming language. (n is an unsigned integer in this problem.) (a) result = 0; while(n > 0) { result = re
More Less

Related notes for CS 240

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit