Computer Architecture EKT 422 Chapter 10 Instruction Sets: Characteristics and Functions (cont.)

Slides:



Advertisements
Similar presentations
Instruction Sets: Characteristics and Functions Addressing Modes
Advertisements

CPU Review and Programming Models CT101 – Computing Systems.
CSC 3210 Computer Organization and Programming Introduction and Overview Dr. Anu Bourgeois.
10 PLC Math Instructions. 10 PLC Math Instructions.
Reported By: Michelle B. Alambra. Topics What is a stack? Stack Representation Stack Operations Example of a Stack.
CS 206D Computer Organization
Instruction Set Architecture & Design
Data Structures & Algorithms
Binary Decision Diagrams1 BINARY DECISION DIAGRAMS.
©Brooks/Cole, 2001 Chapter 13 Binary Files. ©Brooks/Cole, 2001 Figure 13-1.
CS 104 Introduction to Computer Science and Graphics Problems Data Structure & Algorithms (4) Data Structures 11/18/2008 Yang Song.
Consider With x = 10 we may proceed as (10-1) = 9 (10-7) = 3 (9*3) = 27 (10-11) = -1 27/(-1) = -27 Writing intermediates on paper.
Ceng-112 Data Structures ITurgut Kalfaoglu 1 Chapter 3 Stacks.
Stacks CISC181 Spring 2004 P. T. Conrad University of Delaware.
Lecture 17 Today’s Lecture –Instruction formats Little versus big endian Internal storage in the CPU: stacks vs. registers Number of operands and instruction.
COMPUTER ORGANIZATIONS CSNB123 May 2014Systems and Networking1.
Stacks and Queues Introduction to Computing Science and Programming I.
8.3 Stack Organization Stack: A storage device that stores information in such a manner that the item stored last is the first item retrieved. Also called.
Instruction Set Architecture
COMPUTER ORGANIZATION AND ASSEMBLY LANGUAGE Lecture 15 & 16 Stacks, Endianness Addressing Modes Course Instructor: Engr. Aisha Danish.
Pointers, Stacks and Memory Addressing Computer Science and Programming Concepts.
Adapted from instructor resources Nyhoff, ADTs, Data Structures and Problem Solving with C++, Second Edition, © 2005 Pearson Education, Inc. All rights.
CSC 3210 Computer Organization and Programming Chapter 1 THE COMPUTER D.M. Rasanjalee Himali.
Computer Architecture Lecture 13 – part 1 by Engineer A. Lecturer Aymen Hasan AlAwady 31/3/2014 University of Kufa - Information Technology Research and.
Foundation of Computing Systems Lecture 3 Stacks and Queues.
Do Now Find the domain & range:. Answers to Homework
Basic Data Structures Stacks. A collection of objects Objects can be inserted into or removed from the collection at one end (top) First-in-last-out.
COMPUTER ORGANIZATIONS CSNB123 NSMS2013 Ver.1Systems and Networking1.
Data Structures Chapter 6. Data Structure A data structure is a representation of data and the operations allowed on that data. Examples: 1.Array 2.Record.
Wednesday, March 2 Homework #2 is posted Homework #2 is posted Due Friday, March 4 (BOC) Due Friday, March 4 (BOC) Program #5 is posted Program #5 is posted.
CPU performs the bulk of data processing operations CPU performs the bulk of data processing operations The CPU is made up of three parts. They are Control.
Computer Engineering Rabie A. Ramadan Lecture 6.
Stack Data Structure By Marwa M. A. Elfattah. Stack - What A stack is one of the most important non- primitive linear data structure in computer science.
STACK Data Structure
MIPS Subroutines Subroutine Call – jal subname Saves RA in $31 and jumps to subroutine entry label subname Subroutine Return – jr $31 Loads PC with return.
Subroutines and Stacks. Stack The stack is a special area in memory used by the CPU to store register information or general data information during program.
Push Down Automata Chapter 14. Introduction We have seen different types of languages so far –Regular Languages –Nonregular Languages –Context Free Languages.
1 Chapter Pushdown Automata. 2 Section 12.2 Pushdown Automata A pushdown automaton (PDA) is a finite automaton with a stack that has stack operations.
Lecture # 21.
Comprehensive Introduction to OOP with Java, C. Thomas Wu Stack ADT
Set Collection A Bag is a general collection class that implements the Collection interface. A Set is a collection that resembles a Bag with the provision.
Overview of Instruction Set Architectures
Chapter 15 Lists Objectives
CS-401 Computer Architecture & Assembly Language Programming
STACK CHAPTER 03 Developed By :- Misha Ann Alexander Data Structures.
Visit for more Learning Resources
Overview Introduction General Register Organization Stack Organization
Directions: Read each question below. Circle the best answer.
In this lecture Global variables Local variables System stack
The Stack.
About Instructions Based in part on material from Chapters 4 & 5 in Computer Architecture by Nicholas Carter PHY 201 (Blum)
STACK By:- Rajendra ShakyawalP.G.T. Computer Science KV-No.1, AFS, Tambaram, Chennai.
Stacks, Queues, and Deques
Computer Organization and ASSEMBLY LANGUAGE
Flooding © 2018.
Subroutines and the Stack
The University of Adelaide, School of Computer Science
ECEG-3202 Computer Architecture and Organization
USING GRAPHS TO SOLVE EQUATIONS
CSE 214 – Computer Science II Stacks
ECEG-3202 Computer Architecture and Organization
Mutable Data (define mylist (list 1 2 3)) (bind ((new (list 4)))
A Closer Look at Instruction Set Architectures Chapter 5
ECEG-3202 Computer Architecture and Organization
(Part 2) Infix, Prefix & Postfix
Subroutines and the Stack
Chapter 5 Stack (part 1).
Optimizations for the CSE Machine
Understanding the Number Decimal to Binary Conversion
8/23/
Presentation transcript:

Computer Architecture EKT 422 Chapter 10 Instruction Sets: Characteristics and Functions (cont.)

Stacks Is an ordered set of elements. Accessed once at a time Point of access call top of the stack. Last element in stack call base of the stack. Last-in-first-out (LIFO)

Stack-oriented Operation PUSH —Append a new element on top of the stack POP —Delete the top element of the stack Unary operation —Perform operation on top of the stack and replace top element with the result Binary operation —Perform operation on top two element of the stack. It will delete top two element of the stack and replace it with the result of operation

Basic stack operation J K L M.... J K L M.... J K L M.... J X K L M.... I SP INITIAL STATEAFTER PUSHAFTER POP AFTER MULTIPLICATION OPERATION

Exercise 1 Writing a program to compute equation below using zero-address machine. X= (A + B x C) / ((D + E) x F) Draw the diagram to describe the stack process

Answer 1 PUSH A PUSH B PUSH C MUL ADD PUSH D PUSH E ADD PUSH F MUL DIV POP X