7 - — rs rt and rd are source and destination registers...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
March 2, 2005 A single-cycle MIPS processor 7 Encoding R-type instructions A few weeks ago, we saw encodings of MIPS  instructions as 32-bit values. Register-to-register arithmetic instructions use the  R-type  format. —  op  is the instruction opcode, and  func  specifies a  particular arithmetic operation (see the back of the textbook).
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: — rs , rt and rd are source and destination registers. An example instruction and its encoding: add $s4 , $t1 , $t2 6 bits 5 bits 5 bits 5 bits 5 bits 6 bits op rs rt rd shamt func 000000 01001 01010 10100 00000 1000000...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online