Lecture06_handout-F09

Lecture06_handout-F09 - CE-320 Microcomputers I Fall B 2009...

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

View Full Document Right Arrow Icon
CE-320 Microcomputers I Fall B 2009 Lecture 6 Page 1 Lecture 6 Simple Conditional Branches Purpose: Understand the function of the Condition Code Register and how the bits are set Use the Simple, Unsigned, and Signed conditional branches to control the flow of programs
Background image of page 1

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

View Full DocumentRight Arrow Icon
CE-320 Microcomputers I Fall B 2009 Lecture 6 Page 2 Making Decisions Interesting programs require the microcomputer to execute some pieces of code multiple times or skip over sections of instructions. You might call this conditional execution: code is executed, possibly multiple times, based on the conditions (i.e. data provided). However, any instruction pointed at by the PC is always executed. Therefore, we need a group of instructions that has a conditional effect, meaning that they may or may not cause a change in the processor when they are executed. These are called conditional branches . Using these to make decisions in the processor requires two steps: 1. Evaluating some Boolean statement to generate a true or false
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.

This document was uploaded on 11/12/2009.

Page1 / 6

Lecture06_handout-F09 - CE-320 Microcomputers I Fall B 2009...

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