Download
assembly language lecture 0 introduction n.
Skip this Video
Loading SlideShow in 5 Seconds..
Assembly Language Lecture 0: Introduction PowerPoint Presentation
Download Presentation
Assembly Language Lecture 0: Introduction

Assembly Language Lecture 0: Introduction

288 Views Download Presentation
Download Presentation

Assembly Language Lecture 0: Introduction

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Assembly LanguageLecture 0: Introduction

  2. Outline • What is Assembly Language? • Why learn Assembly Language? • Grade • Text Book

  3. What is Assembly Language? • Basic Microcomputer Design • Instruction Execution Cycle • Machine Language • Assembly Language • High-Level Language

  4. Basic Microcomputer Design • clock synchronizes CPU operations • control unit (CU) coordinates sequence of execution steps • ALU performs arithmetic and bitwise processing

  5. Instruction Execution Cycle • Fetch • Decode • Fetch operands • Execute • Store output

  6. Machine Language • A100000000 move the value at memory address 00000000 to eax • 83C004  eax=eax+04 • BB00000003 move 00000003 to ebx • F7EB  eax=ebx*eax • A300000004 move the value at eax to memory address 00000004 to eax

  7. Assembly Language • mov eax, Y // Y’s memory address: 00000000 • add eax, 4 • mov ebx, 3 • imul ebx • mov X,eax // X’s memory address: 00000004

  8. High-Level Language • X = (Y + 4) * 3;

  9. Why learn Assembly Language?

  10. Grade • Midterm: 30% • Final: 30% • Program Assignment: 40%

  11. Text Book • k.R. Irvine, "Assembly Language for Intel-Based Computers", 4th Ed., Prentice Hall, 2003. • L. Beck, "System Software“, 3rd Ed., Addison Wesley Longman, 1997.