Control Flow and Arrays COE 301 Computer

Control Flow and Arrays COE 301 Computer
1 / 1
Control Flow and Arrays COE 301 Computer - slide 1 of 37 Control Flow and Arrays COE 301 Computer - slide 2 of 37 Control Flow and Arrays COE 301 Computer - slide 3 of 37 Control Flow and Arrays COE 301 Computer - slide 4 of 37 Control Flow and Arrays COE 301 Computer - slide 5 of 37 Control Flow and Arrays COE 301 Computer - slide 6 of 37 Control Flow and Arrays COE 301 Computer - slide 7 of 37 Control Flow and Arrays COE 301 Computer - slide 8 of 37 Control Flow and Arrays COE 301 Computer - slide 9 of 37 Control Flow and Arrays COE 301 Computer - slide 10 of 37 Control Flow and Arrays COE 301 Computer - slide 11 of 37 Control Flow and Arrays COE 301 Computer - slide 12 of 37 Control Flow and Arrays COE 301 Computer - slide 13 of 37 Control Flow and Arrays COE 301 Computer - slide 14 of 37 Control Flow and Arrays COE 301 Computer - slide 15 of 37 Control Flow and Arrays COE 301 Computer - slide 16 of 37 Control Flow and Arrays COE 301 Computer - slide 17 of 37 Control Flow and Arrays COE 301 Computer - slide 18 of 37 Control Flow and Arrays COE 301 Computer - slide 19 of 37 Control Flow and Arrays COE 301 Computer - slide 20 of 37 Control Flow and Arrays COE 301 Computer - slide 21 of 37 Control Flow and Arrays COE 301 Computer - slide 22 of 37 Control Flow and Arrays COE 301 Computer - slide 23 of 37 Control Flow and Arrays COE 301 Computer - slide 24 of 37 Control Flow and Arrays COE 301 Computer - slide 25 of 37 Control Flow and Arrays COE 301 Computer - slide 26 of 37 Control Flow and Arrays COE 301 Computer - slide 27 of 37 Control Flow and Arrays COE 301 Computer - slide 28 of 37 Control Flow and Arrays COE 301 Computer - slide 29 of 37 Control Flow and Arrays COE 301 Computer - slide 30 of 37 Control Flow and Arrays COE 301 Computer - slide 31 of 37 Control Flow and Arrays COE 301 Computer - slide 32 of 37 Control Flow and Arrays COE 301 Computer - slide 33 of 37 Control Flow and Arrays COE 301 Computer - slide 34 of 37 Control Flow and Arrays COE 301 Computer - slide 35 of 37 Control Flow and Arrays COE 301 Computer - slide 36 of 37 Control Flow and Arrays COE 301 Computer - slide 37 of 37
Control Flow and Arrays COE 301 Computer Organization Prof. Aiman El-Maleh College of Computer Sciences and Engineering King Fahd University of Petroleum and Minerals Adapted from slides of Dr. M. Mudawar, COE 301, KFUPM Presentation

Related Topics

Download this presentation From Below

"Control Flow and Arrays COE 301 Computer" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Presentation Transcript

01
Control Flow and Arrays COE 301 Computer Organization
Prof. Aiman El-Maleh
College of Computer Sciences and Engineering
King Fahd University of Petroleum and Minerals
[Adapted from slides of Dr. M. Mudawar, COE 301, KFUPM]<br>
02
Presentation Outline Control Flow: Branch and Jump Instructions
Translating If Statements and Boolean Expressions
Arrays
Load and Store Instructions
Translating Loops and Traversing Arrays
Addressing Modes<br>
03
Control Flow High-level programming languages provide constructs:
To make decisions in a program: IF-ELSE
To repeat the execution of a sequence of instructions: LOOP
The ability to make decisions and repeat a sequence of instructions distinguishes a computer from a calculator
All computer architectures provide control flow instructions
Essential for making decisions and repetitions
These are the conditional branch and jump instructions<br>