ASSEMBLY LANGUAGE PROGRAMMING. Course Objectives Identify the major component of a PC-based system, describe the steps involving in assembling, linking,

Slides:



Advertisements
Similar presentations
 2002 Prentice Hall Hardware Basics: Inside The Box Chapter 2.
Advertisements

INTRODUCTION OF COMPUTER
© Paradigm Publishing, Inc. 2-1 Chapter 2 Input and Processing Chapter 2 Input and Processing.
FIRST COURSE Essential Computer Concepts. New Perspectives on Microsoft Office 2007: Windows XP Edition 2 Objectives Compare the types of computers Describe.
Computer Components.
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.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
CS 0008 Day 2 1. Today Hardware and Software How computers store data How a program works Operators, types, input Print function Running the debugger.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
How Computers Work. A computer is a machine f or the storage and processing of information. Computers consist of hardware (what you can touch) and software.
Aug CMSC 104, LECT-021 Machine Architecture and Number Systems Some material in this presentation is borrowed form Adrian Ilie From The UNIVERSITY.
Lesson 3 — How a Computer Processes Data
Topics Introduction Hardware and Software How Computers Store Data
© Paradigm Publishing Inc. 2-1 Chapter 2 Input and Processing.
INTRODUCTION TO COMPUTING
E0001 Computers in Engineering1 The System Unit & Memory.
Lesson 2 — How Does A Computer Process Data?
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
Personal Computer Adapted by Dr. Semmes from Mrs. Jungman’s Hardware Presentation and Mrs. Belisle’s Class Notes.
Tomorrow’s Technology and You 8/e Chapter 2 Hardware Basics: Inside the Box.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 1 Introduction to Computers and Programming.
Computer Basics By: Nicole Hayes. Purposes of Computers Business – Track inventory. – Calculate payroll. – Maintain databases. Personal – Surf the web.
Introduction to Programming Using C Introduction to Computer Programming.
Computer Hardware Information Technology Week 5 and 6
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
© Paradigm Publishing Inc. 2-1 Chapter 2 Input and Processing.
1 Fundamental of Computer Suthida Chaichomchuen : SCC
The Central Processing Unit: What Goes on Inside the Computer
Discovering Computers Fundamentals, Third Edition CGS 1000 Introduction to Computers and Technology Spring 2007.
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
Intro to Computers Computer Applications. What is a Computer? Initially the term computer referred to an individual whose job it was to perform mathematical.
Introduction to Computer Systems
Computer Basic Vocabulary
10 Internal parts of a PC Created by Federica Proietti Cesaretti.
CSCI-100 Introduction to Computing Hardware Part I.
Scott Marino MSMIS Kean University MSAS5104 Introduction to Programming with Data Structures and Algorithms Week 2 Scott Marino.
General Computer Knowledge COE 201- Computer Proficiency.
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
Basic Computer Organization Rashedul Hasan.. Five basic operation No matter what shape, size, cost and speed of computer we are talking about, all computer.
The Computer System.
Chapter 2 Turning Data into Something You Can Use
PARTS OF A COMPUTER 2 Hardware Computer Hardware is any of the physical parts of the computer you can touch. There are 4 categories: 1. Input Devices.
The System Unit What is the system unit? p Fig. 4-1 Next  Case that contains electronic components of the computer used to process data  Sometimes.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
BY MANJU Lesson 21 Computer Hardware. System Components A computer system requires many components to do its job: Input: Device to input data so it can.
Information Technology INT1001 Lecture 2 1. Computers Are Your Future Tenth Edition Chapter 6: Inside the System Unit Copyright © 2009 Pearson Education,
IC 3 BASICS, Internet and Computing Core Certification Computing Fundamentals Lesson 2 How Does a Computer Process Data?
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.
Introduction To Computer Programming – 1A Computer Parts, Words, and Definition Herriman High School.
INTRODUCTION TO COMPUTERS. A computer system is an electronic device used to input data, process data, store data for later use and produce output in.
Chapter 4 Components of the System. Data Representation How do computers represent data?  Recognize only two discrete states: on or off  Use a binary.
An Overview of the Computer System
Topics Introduction Hardware and Software How Computers Store Data
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Chapter 2 – Computer hardware
Introduction of microprocessor
Week 3 The Components of the System Unit
Looking Inside the machine (Types of hardware, CPU, Memory)
Lecture 3 The Hardware.
An Overview of the Computer System
Number Representations and Basic Processor Architecture
Chapter One: Introduction
Topics Introduction Hardware and Software How Computers Store Data
Logical Computer System
Chapter 2 Processing Data Peter Norton’s  Introduction to Computers Data Useful output.
Chapter 4: Hardware for Educators
COMPUTER FUNDAMENTALS i
Computer components is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. Computer The computer.
Presentation transcript:

ASSEMBLY LANGUAGE PROGRAMMING

Course Objectives Identify the major component of a PC-based system, describe the steps involving in assembling, linking, and executing a program Write/Debug programs in assembly language to perform the given task and run them

Textbook/Technology requirement Textbook: IBM PC Assembly Language and Programming. Peter Abel Fifth Edition. Prentice Hall. ISBN: X Software: Emu8086 microprocessor assembler and emulator software. Available at

Introduction Tell me about yourself and what you expect to get out from this course

Course detail - Topics Write a program in assembly language Understanding of a PC-based system Fundamentals of assembly language & program Specific Applications

What does it take to success -Attend the class regularly and actively participate in the class discussion (ask questions, answer questions, etc..) -Don’t give up on programming assignments. Pay attention to detail -Try many options when doing programming assignments

Questions?

Overview Fundamental of PC Hardware and Software

Basic features of PC Hardware Binary and Hexadecimal Number Systems –Bits/bytes –Binary number systems –Hexadecimal –ASCII PC Components –Processor –Memory

Bits/bytes and Binary system Bits: 0(off) & 1(on) Bytes: –Represents a storage location in memory and devices. –8 bits => 2 8 combination of 0/1.

Bits/bytes and Binary system Address 40 Husky Road Storrs, CT Word Doubleword Quadword Paragraph Kilobyte Megabyte

Bits/bytes and Binary system Bit value Position value Bit number Operations 0+0=0 1+1=10 1+0=1 Negative binary numbers 2’s complement’s notation Reverse the bit values and add Add

1. What is the value of ? 2. How to represent -25 in 2’s complement notation?

Bits/bytes and Binary system Bit value Position value Bit number Parity bit: forcing the number of bits always odd Example: Parity bit = Parity bit = 0

Hexadecimal presentation Disadvantage of binary representation: –Is not “user-friendly” –Complicated when computing manually Hexadecimal representation

Hexadecimal presentation Hexadecimal arithmetic 7+1=8 7+2=9 7+3=A 7+4=B 7+8=F 7+9=?

Practice Convert from decimal to hexadecimal 23 = ???? 254 = ???? Adding hexadecimal value 13B4H H = ???? DCBEH + 35B5H = ????

Popular coding systems to represent data  ASCII—American Standard Code for Information Interchange  EBCDIC—Extended Binary Coded Decimal Interchange Code  Unicode—coding scheme capable of representing all world’s languages

Conversion from letter to binary format and back Step 1. The user presses the capital letter D (shift+D key) on the keyboard. Step 2. An electronic signal for the capital letter D is sent to the system unit. Step 3. The signal for the capital letter D is converted to its ASCII binary code ( ) and is stored in memory for processing. Step 4. After processing, the binary code for the capital letter D is converted to an image, and displayed on the output device.

Question?

PC Components printer scanner speaker PC camera microphone digital camera system unit keyboard modem speaker monitor mouse

PC Components Central Processing Unit (CPU) Also called a processor Carries out instructions that tell computer what to do Memory Temporary holding place for data and instructions

Central processing unit (CPU) (Processor)  Interprets and carries out basic instructions that operate a computerProcessor Control Unit Arithmetic Logic Unit (ALU) Input Devices Storage Devices Output Devices Memory DataInformation Instructions Data Information Control Unit  Control unit directs and coordinates operations in computer  Arithmetic logic unit (ALU) performs arithmetic, comparison, and logical operations

Memory Operating system Applications Data Three basic items stored in memory Temporary storage place for data, instructions, and information Consists of one or more chips on the motherboard or some other circuit board

Memory  Size of memory is measured by the number of bytes available Kilobyte - 1,024 bytes Megabyte – approximate one million bytes

Volatile Memory Loses its contents when the computer's power is turned off volatile memory Loses its contents when the computer's power is turned off Memory What are the two types of memory in the system unit? nonvolatile memory Does not lose its contents when the computer’s power is turned off

Memory Memory chips that can be read from and written to by the processor and other devices When the computer starts, operating system files are loaded from a hard disk into RAM What is random access memory (RAM)? As additional programs and data are requested, they also load from storage into RAM Most RAM is volatile

Addressing data in Memory Difference between address of a memory Location and its content Processor stores the data in memory in reverse by sequence Two types of addressing schemes absolute address segment-offset address

Segment Code segment (CS) Data segment (DS) Stack segment (SS) Extra segment (ES) Actual address = segment address + offset

Registers Segment register –CS,DS,SS,ES, FS and GS Pointer register –IP,SP,BP General purpose register –AX,BX,CX,DX Index register –SI, DI

Flags OF, DF, IF, SF, ZF,AF,PF,CF If cleared: NV,UP,EI,PL,NZ,NA,PO,NC If set: OV,DN,EI,NG,ZR,AC,PE,CY