CS 61C (Fall 2007)

Quiz 8

Two questions, submit as "quiz8".  Due 2:45pm before lecture 9/17/2007.


1.

Name two MIPS assembly instructions, which together can be used to create the effect of "branch on less than". Note that we just want the instruction names, not complete assembly (see template.txt). There are multiple answers, all of which will be accepted. Why isn't this instruction built in to MIPS assembly?

2.

Write some MIPS assembly code to load the constant 0xDEADBEEF into $s0 (formatted as specified in template.txt). Why does this work?