Class Notes (836,826)
CS 230 (51)
Lecture

# mipsref.pdf

1 Page
116 Views

School
Department
Computer Science
Course
CS 230
Professor
Diana Parry
Semester
Winter

Description
MIPS Reference Sheet Basic Instruction Formats Register 0000 00ss ssst tttt dddd d000 00ff ffff R s, t, d are interpreted as unsigned Immediate oooo ooss ssst tttt iiii iiii iiii iiii I i is interpreted as two’s complement Instructions Word .word i iiii iiii iiii iiii iiii iiii iiii iiii Add add \$d, \$s, \$t0000 00ss ssst tttt dddd d000 0010 0000 R \$d = \$s + \$t Subtract sub \$d, \$s, \$t0000 00ss ssst tttt dddd d000 0010 0010 R \$d = \$s - \$t Multiply mult \$s, \$t 0000 00ss ssst tttt 0000 0000 0001 1000 R hi:lo = \$s * \$t Multiply Unsigned multu \$s, \$t 0000 00ss ssst tttt 0000 0000 0001 1001 R hi:lo = \$s * \$t Divide div \$s, \$t 0000 00ss ssst tttt 0000 0000 0001 1010 R lo = \$s / \$t; hi = \$s % \$t Divide Unsigned divu \$s, \$t 0000 00ss ssst tttt 0000 0000 0001 1011 R lo = \$s / \$t; hi = \$s % \$t Move From High/Remainder mfhi \$d 0000 0000 0000 0000 dddd d000 0001 0000 R \$d = hi Move From Low/Quotient m o \$d 0000 0000 0000 0000 dddd d000 0001 0010 R \$d = lo Load Immediate And Skip li
More Less

Related notes for CS 230
Me

OR

Join OneClass

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

Join to view

OR

By registering, I agree to the Terms and Privacy Policies
Just a few more details

So we can recommend you notes for your school.