{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ICS233_Lecture7 Slides

ICS233_Lecture7 Slides - Computer Architecture Assembly...

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

View Full Document Right Arrow Icon
1 Lecture Slides on Computer Architecture ICS 233 @ Dr A R Naseer 1 MIPS MIPS PROCESSOR PROCESSOR INSTRUCTION SET INSTRUCTION SET ICS 233 ICS 233 Computer Architecture & Computer Architecture & Assembly Language Assembly Language Lecture Slides on Computer Architecture ICS 233 @ Dr A R Naseer 2 ICS 233 ICS 233 Computer Architecture & Computer Architecture & Assembly Language Assembly Language Lecture 7 Lecture 7
Background image of page 1

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

View Full Document Right Arrow Icon
2 Lecture Slides on Computer Architecture ICS 233 @ Dr A R Naseer 3 Lecture Outline MIPS Instruction I-Type Format MIPS I-type ALU Instructions MIPS I-type Data Transfer Instructions (Load & Store Instructions) Lecture Slides on Computer Architecture ICS 233 @ Dr A R Naseer 4 I-Type Format Constants are used quite frequently in programs The R-type shift instructions have a 5-bit shift amount constant What about other instructions that need a constant? I-Type: Instructions with Immediate Operands 16-bit immediate constant is specified immediately in the instruction Rs is the source register number Rt is now the destination register number (for R-type it was Rd) Examples of I-Type ALU Instructions: Add immediate: addi $s1, $s2, 5 # $s1 = $s2 + 5 OR immediate: ori $s1, $s2, 5 # $s1 = $s2 | 5 Op 6 Rs 5 Rt 5 immediate 16
Background image of page 2