COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE

Slides:



Advertisements
Similar presentations
INTRODUCTION OF COMPUTER
Advertisements

Introduction to Computer Systems
Computing Components 01/26/11. Announcements & Reminders Programs 1 due Friday, 9/2/11 What is my late policy? Proxy Codes for Labs  You should be able.
Introduction to Computers and Programming. Some definitions Algorithm: –A procedure for solving a problem –A sequence of discrete steps that defines such.
Chapter 2: Impact of Machine Architectures What is the Relationship Between Programs, Programming Languages, and Computers.
Topic 1: Introduction to Computers and Programming
Chapter 17 Microprocessor Fundamentals William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper.
CH01: Architecture & Organization 1 Architecture is those attributes visible to the programmer  Instruction set, number of bits used for data representation,
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#1) By Dr. Syed Noman.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
1 Chapter-01 Introduction to Computers and C++ Programming.
2 nd Year - 1 st Semester Asst. Lect. Mohammed Salim
Computer Architecture and Organization
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
Computer Architecture and Organization Introduction.
Introduction to Programming Using C Introduction to Computer Programming.
EKT 422 Computer Architecture
Chapter 1 Introduction. Architecture & Organization 1 Architecture is those attributes visible to the programmer —Instruction set, number of bits used.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
COMPUTER ORGANIZATIONS CSNB123 Ver.1Systems and Networking1.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Intro to Computers Computer Applications. What is a Computer? Initially the term computer referred to an individual whose job it was to perform mathematical.
Computer Architecture And Organization UNIT-II General System Architecture.
Computer Organization & Assembly Language © by DR. M. Amer.
1 Text Reference: Warford. 2 Computer Architecture: The design of those aspects of a computer which are visible to the programmer. Architecture Organization.
Introduction Computer System “An electronic device, operating under the control of instructions stored in its own memory unit, that can accept data (input),
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
Beginning Snapshots Chapter 0. C++ An Introduction to Computing, 3rd ed. 2 Objectives Give an overview of computer science Show its breadth Provide context.
Chapter 1 Introduction.  Architecture is those attributes visible to the programmer ◦ Instruction set, number of bits used for data representation, I/O.
William Stallings Computer Organization and Architecture Chapter 1 Introduction.
Chapter 1 An Overview of Computers and Programming Languages.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
Computer Organization IS F242. Course Objective It aims at understanding and appreciating the computing system’s functional components, their characteristics,
Unit 3 - Computer Systems. Logical vs Physical A computer system can be represented in either a logical or physical form Both are useful in understanding.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
Chapter 1 Introduction.   In this chapter we will learn about structure and function of computer and possibly nature and characteristics of computer.
Computer Architecture and Number Systems
William Stallings Computer Organization and Architecture 8th Edition
William Stallings Computer Organization and Architecture 7th Edition
CSNB COMPUTER SYSTEM CHAPTER 1 INTRODUCTION CSNB153 computer system.
Computer Architecture
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design
Computer Science I CSC 135.
PARTS OF THE COMPUTER squires productions.
Computer Electronic device Accepts data - input
Chapter One: Introduction
ECEG-3202 Computer Architecture and Organization
Text Book Computer Organization and Architecture: Designing for Performance, 7th Ed., 2006, William Stallings, Prentice-Hall International, Inc.
William Stallings Computer Organization and Architecture 8th Edition
William Stallings Computer Organization and Architecture 7th Edition
ECEG-3202 Computer Architecture and Organization
Overview of Computer Architecture and Organization
INTRODUCTION TO COMPUTER ARCHITECTURE
Logical Computer System
Fundamental of computer
Chapter 1 Introduction.
Introduction to Computer Programming
INTRODUCTION TO COMPUTERS
William Stallings Computer Organization and Architecture 8th Edition
William Stallings Computer Organization and Architecture 7th Edition
Dept. of Computer & Information Sciences (Course Introduction)
Computer components is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. Computer The computer.
William Stallings Computer Organization and Architecture 7th Edition
Presentation transcript:

COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE INTRODUCTION Introduction 6/16/2018

INTRODUCTION Computer is an electronic machine, which solves problem → deals with electrical signals Digital → information is presented by variables takes a limited number of discrete values. Discrete values are processed internally by components that contain a limited number of discrete states. Introduction 6/16/2018

INTRODUCTION Ex. Decimal digits: 0, 1, 2,…..9 → 10 discrete values. Binary number: 0, 1. Computers use binary system because: It is easy to tell if electrical devices are on (1) or off (0). Electrical and magnitude storage devices having 2 stable states are simple to construct. Digital circuits are less affected by noise. Introduction 6/16/2018

INTRODUCTION A binary digit is called a bit → information is represented in digital computer in groups of bits. Computer Hardware Software Introduction 6/16/2018

INTRODUCTION Hardware: All electronic components and electromechanical devices that comprise the physical entity of device. Software: Instructions and data that the computer manipulates to perform various tasks. Program: A sequence of instructions for the computer. Introduction 6/16/2018

BLOCK DIAGRAM OF COMPUTER CPU: ALU, CCU & registers Output units Input units Memory Introduction 6/16/2018

Central Processing Unit (CPU) Brain of the computer Consists of ALU ( Arithmetic and Logic Unit ): responsible for performing Arithmetic and Logical Operations. Consists of CU ( Control Unit ) : tells the ALU what to do. Consists of Registers : Internal memory of CPU to store temporary data. Also referred as Microprocessor Introduction 6/16/2018

MEMORY UNIT Memory devices are to store the data for later reference. Broadly classified into two : Primary Memory ( Main Memory ) Secondary Memory Introduction 6/16/2018

INPUT UNIT Accepts data from the outside world Converts data into the computer understandable form i.e. Binary form Example of Input devices: Keyboard, Mouse, Microphone, etc. Introduction 6/16/2018

OUTPUT UNIT Produces the output in user readable form. Example of input devices: Monitor, Printer, Speakers, Plotter Introduction 6/16/2018

Architecture & Organization Architecture is those attributes visible to the programmer Instruction set, number of bits used for data representation, I/O mechanisms, addressing techniques. e.g. Is there a multiply instruction? Organization is how features are implemented Control signals, interfaces, memory technology. e.g. Is there a hardware multiply unit or is it done by repeated addition? Introduction 6/16/2018

Architecture & Organization All Intel x86 family share the same basic architecture The IBM System/370 family share the same basic architecture This gives code compatibility At least backwards Organization differs between different versions Introduction 6/16/2018

Programming languages Machine language ML = binary Difficult to use by programmer Invented new notations that were closer to the way humans think→ program to translate from symbolic notations to binary = assembler Symbolic language = assembly language ASM Introduction 6/16/2018

Programming languages Assembly language → write one line for every instruction that the machine will follow (programmer must think like machine) → program that translates from higher level notations closer to natural languages (high-level language) to assembly language High-level language HLL Introduction 6/16/2018

Programming languages Machine language: The language a particular processor understands Assembly language: machine-specific language with a one-to-one correspondence with the machine language for that computer Introduction 6/16/2018

Software layers Machine language Assembly language High-level language 0010 1011 1101 1000 1001 0111 0101 1110 Assembly language MOV AX, 3CH ADD AX, 20H High-level language y = 15; y = y+32; Introduction 6/16/2018

Advantages of HLL It is easier to convert a natural language algorithm to a HLL program. It is easier to read & understand HLL program than ASM program. ASM generally contains more statements than equivalent HLL program → more time is required to code the ASM program. Introduction 6/16/2018

Advantages of HLL Each computer has its own ASM → ASM programs are limited to one machine, but HLL program can be executed on any machine that has a compiler for that language. Introduction 6/16/2018

Advantages of ASM language Efficiency: A well-written assembly language program produces a faster, shorter machine language program. Some operations, such as reading or writing to specific memory locations & I/O ports, can be done easily in ASM but may be impossible at a higher level. Introduction 6/16/2018

Advantages of ASM language Studying ASM → gain a feeling for the way the computer thinks and the way that things happen inside the computer. Introduction 6/16/2018