Lecture_5 - ECE 445 Computer Organization Machine...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ECE 445 Computer Organization Machine Instructions Decision Making Instructions Decision Making Instructions These include- Conditional Branch instructions- Unconditional Branch (Jump) instructions They affect the program flow- Continue program execution with next instruction.- Branch to new location in program and execute instruction at that location. The Program Counter (PC) 04/16/10 Chapter 4 The Processor 5 A Portion of the MIPS Datapath 32-bit register Increment by 4 for next instruction Program Counter ECE 445 - Computer Organization 6 Conditional Branch Instructions ECE 445 - Computer Organization 7 Conditional Branch Instructions High-Level Language instruction (C) if ( x == y ) f = g + h; else f = g - h; MIPS Assembly Language instructions beq Ra, Rb, Label bne Ra, Rb, Label Branch on Equal Branch on Not Equal registers address of instruction to branch to ECE 445 - Computer Organization 8 Conditional Branch Instructions MIPS Assembly Language Instruction beq R1, R2, Label1 If true , the PC needs to be updated to point to...
View Full Document

Page1 / 21

Lecture_5 - ECE 445 Computer Organization Machine...

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

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