Assembly Language for x86 Processors 6th Edition

Slides:



Advertisements
Similar presentations
Programming Concepts What we are going to learn in this subject? The basic concepts of writing computer programs commonly known as software.
Advertisements

Assembly Language for x86 Processors 6 th Edition Chapter 1: Introduction to ASM (c) Pearson Education, All rights reserved. You may modify and copy.
Assembly Language for Intel-Based Computers, 4 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify and.
Basic Concepts COE 205 Computer Organization and Assembly Language
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Data Representation Computer Organization &
Data Representation COE 205
Introduction to Computers and Programming. Some definitions Algorithm: –A procedure for solving a problem –A sequence of discrete steps that defines such.
Assembly Language for Intel-Based Computers, 4th Edition
Assembly Language for Intel-Based Computers, 5 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify.
Assembly Language for Intel-Based Computers, 5 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify.
1 Introduction Chapter 1 n What is Assembly Language? n Data Representation.
Introduction to Computers and Programming. Some definitions Algorithm: Algorithm: A procedure for solving a problem A procedure for solving a problem.
Basic Concepts Computer Organization and Assembly Language.
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#1) By Dr. Syed Noman.
Codes and number systems Introduction to Computer Yung-Yu Chuang with slides by Nisan & Schocken ( ) and Harris & Harris (DDCA)
Assembly Language for Intel-Based Computers, 5th Edition
Assembly Language for Intel-Based Computers, 5 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify.
Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify and copy this slide show for your personal use, or for.
Computers Organization & Assembly Language
Some material taken from Assembly Language for x86 Processors by Kip Irvine © Pearson Education, 2010 Slides revised 2/2/2014 by Patrick Kelley.
CSU0014 Assembly Languages Homepage: Textbook: Kip R. Irvine, Assembly Language for Intel-Based Computers,
Summer 2014 Chapter 1: Basic Concepts. Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Chapter Overview Welcome to Assembly Language.
Assembly Language for x86 Processors 7th Edition
ACOE2511 ACOE251/AEEC335 -Assembly Language for the 80X86/Pentium Intel Microprocessors Lecturer: Dr. Konstantinos Tatas.
Comp Sci 251 Intro 1 Computer organization and assembly language Wing Huen.
Chapter 1: Basic Concepts
Lec 3: Data Representation Computer Organization & Assembly Language Programming.
CS2422 Basic Concepts Department of Computer Science National Tsing Hua University.
Assembly Language for x86 Processors 7 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify and copy this.
The Beauty and Joy of Computing Lecture #3 : Creativity & Abstraction UC Berkeley EECS Lecturer Gerald Friedland.
CPU Internal memory I/O interface circuit System bus
Chapter 19 Number Systems. Irvine, Kip R. Assembly Language for Intel-Based Computers, Translating Languages English: Display the sum of A times.
Introduction to Programming Instructor: Yong Tang Brookhaven National Laboratory Working on accelerator control (BNL Phone #)
ACOE2511 Assembly Language for the 80X86/Pentium Intel Microprocessors Lecturer: Dr. Konstantinos Tatas.
Assembly Language for Intel-Based Computers Chapter 7: Integer Arithmetic (c) Pearson Education, All rights reserved. You may modify and copy.
Assembly Language for Intel-Based Computers, 4 th Edition Unpacked and Packed Integers (c) Pearson Education, All rights reserved. You may modify.
Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Signed Integers The highest bit indicates the sign. 1 = negative, 0 = positive.
Computer Organization and Assembly Languages 2007/11/10
Sahar Mosleh California State University San MarcosPage 1 Assembly language and Digital Circuit By Sahar Mosleh California State University San Marcos.
Suffolk County Community College Mathematics and Computer Science Ammerman Campus CST 121Spring 2013 Section 151CRN: Computer Organization And System.
1 Chapter 1: Introduction Appendix A: Binary and Hexadecimal Tutorial Assembly Language for Intel-Based Computers, 3rd edition Kip R. Irvine.
1 Chapter 1: Basic Concepts Assembly Language for Intel-Based Computers, 4th edition Kip R. Irvine 9/6/2003.
Data Representation COE 308 Computer Architecture
CSC235 Computer Organization & Assembly Language
Invitation to Computer Science, C++ Version, Fourth Edition
Data Representation ICS 233
Lec 3: Data Representation
Data Representation.
Assembly Language (CSW 353)
Data Representation Binary Numbers Binary Addition
Microprocessor and Assembly Language
Assembly Language for Intel-Based Computers, 5th Edition
Assembly Language for x86 Processors 6th Edition
Invitation to Computer Science, Java Version, Third Edition
Data Representation COE 301 Computer Organization
Assembly Language for Intel-Based Computers
Autumn Term Year 10 Slides
Computer Organization and Assembly Languages Yung-Yu Chuang 2006/09/18
C1 Number systems.
Low Level Programming Languages
Computer Organization and Assembly Language
Lecture 1 – pp 1 – 44 C++ program design by Cohoon & Davidson
University of Gujrat Department of Computer Science
Data Representation ICS 233
Review In last lecture, done with unsigned and signed number representation. Introduced how to represent real numbers in float format.
Assembly Language for Intel-Based Computers, 5th Edition
Computer Organization and Assembly Language
Data Representation COE 308 Computer Architecture
Presentation transcript:

Assembly Language for x86 Processors 6th Edition Kip Irvine Chapter 1: Basic Concepts Slides prepared by the author Revision date: 2/15/2010 (c) Pearson Education, 2010. All rights reserved. You may modify and copy this slide show for your personal use, or for use in the classroom, as long as this copyright statement, the author's name, and the title are not changed.

Assembly Language Applications Some representative types of applications: Business application for single platform Hardware device driver Business application for multiple platforms Embedded systems & computer games (see next panel) Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, 2010.

Comparing ASM to High-Level Languages Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, 2010.

Virtual Machines Tanenbaum: Virtual machine concept Programming Language analogy: Each computer has a native machine language (language L0) that runs directly on its hardware A more human-friendly language is usually constructed above machine language, called Language L1 Programs written in L1 can run two different ways: Interpretation – L0 program interprets and executes L1 instructions one by one Translation – L1 program is completely translated into an L0 program, which then runs on the computer hardware Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, 2010.

Translating Languages English: Display the sum of A times B plus C. C++: cout << (A * B + C); Assembly Language: mov eax,A mul B add eax,C call WriteInt Intel Machine Language: A1 00000000 F7 25 00000004 03 05 00000008 E8 00500000 Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, 2010.

Specific Machine Levels (descriptions of individual levels follow . . . ) Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, 2010.

High-Level Language Level 4 Application-oriented languages C++, Java, Pascal, Visual Basic . . . Programs compile into assembly language (Level 3) Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, 2010.

Assembly Language Level 3 Instruction mnemonics that have a one-to-one correspondence to machine language Programs are translated into Instruction Set Architecture Level - machine language (Level 2) Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, 2010.

Instruction Set Architecture (ISA) Level 2 Also known as conventional machine language Executed by Level 1 (Digital Logic) Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, 2010.

Digital Logic Level 1 CPU, constructed from digital logic gates System bus Memory Implemented using bipolar transistors next: Data Representation Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, 2010.

Binary Numbers Digits are 1 and 0 MSB – most significant bit 1 = true 0 = false MSB – most significant bit LSB – least significant bit Bit numbering: Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, 2010.

Integer Storage Sizes Standard sizes: What is the largest unsigned integer that may be stored in 20 bits? Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, 2010.

Ranges of Signed Integers The highest bit is reserved for the sign. This limits the range: Practice: What is the largest positive value that may be stored in 20 bits? Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, 2010.

Character Storage Character sets Null-terminated String Standard ASCII (0 – 127) Extended ASCII (0 – 255) ANSI (0 – 255) Unicode (0 – 65,535) Null-terminated String Array of characters followed by a null byte Using the ASCII table back inside cover of book Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, 2010.

Numeric Data Representation pure binary can be calculated directly ASCII binary string of digits: "01010101" ASCII decimal string of digits: "65" ASCII hexadecimal string of digits: "9C" next: Boolean Operations Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, 2010.

Summary Assembly language helps you learn how software is constructed at the lowest levels Assembly language has a one-to-one relationship with machine language Each layer in a computer's architecture is an abstraction of a machine layers can be hardware or software Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, 2010.