mid-cs64-sol

mid-cs64-sol - CS64 Spring 2011 NAME_ Midterm Exam PERM_...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CS64 Spring 2011 NAME__________________________ Midterm Exam PERM__________________________ Midterm LAST NAME FIRST NAME PERM Number Instructions Please turn off all pagers, cell phones and beepers. Remove all hats & headphones. Place your backpacks, laptops and jackets at the front. Sit in every other seat. Nothing may be placed in the “no fly zone” spare seat/desk between students. You have 75 minutes to complete this exam. This exam is closed book, closed notes, no computers, PDAs or calculators. WRITE YOUR NAME on EACH PAGE OF THIS TEST. You will be deducted -1 points you can not finish this task. n 2 n n 2 n 1 2 17 131072 2 4 18 262144 3 8 19 524288 4 16 20 1048576 5 32 21 2097152 6 64 22 4194304 7 128 23 8388608 8 256 24 16777216 9 512 25 33554432 10 1024 26 67108864 11 2048 27 134217728 12 4096 28 268435456 13 8192 29 536870912 14 16384 30 1073741824 15 32768 31 2147483648 16 65536 32 4294967296
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CS64 Spring 2011 NAME__________________________ Midterm Exam PERM__________________________ Important – please note: The MIPS instructions shown in this table are the ones that you must use on the entire exam. Do not use any instructions that are not in this table. If you use any instructions not listed below, you will lose points. Name Syntax Meaning add add rd, rs, rt rd=rs+rt sub sub rd, rs, rt rd=rs-rt and and rd, rs, rt rd=rs AND rt or or rd, rs, rt rd=rs OR rt sll sll rd, rt, shamt rd=logic shift rt left shamt bits srl srl rd, rt, shamt rd=logic shift rt right shamt bits sra sra rd, rt, shamt rd=arithmetic shift rt right shamt bits slt slt rd, rs, rt If rs<rt, rd=1, else rd=0 slti slti rd, rs, imm If rs<imm, rd=1, else rd=0 jr jr rs jump to the instruction held by the memory location indicated by rs addi addi rt, rs, imm
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 7

mid-cs64-sol - CS64 Spring 2011 NAME_ Midterm Exam PERM_...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online