Top Banner
ﺑﺴﻤﻪ ﺗﻌﺎﻟﻲ رﻳﺰﭘﺮدازﻧﺪه زﺑﺎن و اﺳﻤﺒﻠﻲ ﻣﺪرس: ﻋﺒﺪﻟﻲ[email protected] Email: Web site: www.profs.basu.ac.ir/abdoli ﺗﺮم: 961 ﻛﻼس زﻣﺎن: ﺳﺎﻋﺖ ﺷﻨﺒﻪ ﺳﻪ و ﻳﻜﺸﻨﺒﻪ16 ﺗﺎ18 ﻛﻼس ﻣﺤﻞ: ﻛﻼس21 *** اﺳﺖ اﺟﺒﺎري ﺗﻤﺮﻳﻦ ﺣﻞ ﻛﻼس در ﺣﻀﻮر***
20

نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

Aug 25, 2018

Download

Documents

builien
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

تعالي بسمه

اسمبليو زبان ريزپردازندهعبدلي: مدرس

[email protected]: Web site: www.profs.basu.ac.ir/abdoli

961: ترم18تا 16يكشنبه و سه شنبه ساعت : زمان كالس

21كالس : محل كالس

***حضور در كالس حل تمرين اجباري است***

Page 2: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

طرح درس

Page 3: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

مرجع اصلي درس

”اسمبليو زبان ريزپردازنده“•...محمد مهدي همايون پور و –انتشارات شيخ بهايي –– 1392

Page 4: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

مراجع كمكي

• Title: The 80x86 Family• Author: John Effenbeck• Edition : Third• Year: 2001• Publisher: Prentice Hall

Page 5: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

مراجع كمكيTitle: The X86 PC: Assembly Language, Design, and Interfacing• Author: Muhammad Ali Mazidi• Edition: 5th• Year: 2010• Publisher: Prentice Hall

Page 6: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

مراجع كمكي

Title: Intel Microprocessors• Author: Barry B. Brey• Edition: 8th• Year: 2009• Publisher: Prentice Hall

Page 7: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

مراجع كمكي

• Title: Embedded C Programming and the Atmel AVR

• Author: Richard Barnett• Edition: 2th• Year: 2006• Publisher: Delmar Cengage

Learning

Page 8: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

شيوه ارزشيابي)پرتالاز طريق ( ٪10تكليف ٪5+ ٪10پروژه٪10كوييز

(+) ٪5فعاليت كالسي)96آبان 23سه شنبه : تاريخ( ٪30 ترمميان

٪40 ترمپايان

)كالس هاهفته پاياني : تحويل پروژه(

Page 9: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

مطالب سرفصلمقدمه: فصل اول•مفاهيم پايه: فصل دوم•8086مركزي و دستورات پردازشگرساختار واحد : فصل سوم•مركزي پردازشگرواحد طراحي : فصل چهارم•اسمبلي نويسيبرنامه : فصل پنجم•ريزپردازدهحافظه در سيستم هاي مبتني بر : فصل ششم•خروجي/روش هاي پايه ورودي: فصل هفتم•ميكروكنترلرمعرفي : فصل هشتم•از فصل نهم و دهم هاييبخش •

Page 10: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

Chapter 1

Introduction to the Microprocessor and Computer

Page 11: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

Chapter 1 Introduction to the Microprocessor and Computer

11

Introduction• Overview of the Intel family Microprocessors

– History of computers– Function of the microprocessor– Terms and Jargon – computerese

• Microprocessor-based Personal Computer system– Block diagram and description of function of each block– How the memory and I/O system of PC function– The way that data are stored in the memory

• Numeric data : integers, floating-point, BCD• Alphanumeric : ASCII

Page 12: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

Chapter 1 Introduction to the Microprocessor and Computer

12

A historical Background• The mechanical age

– abacus : 500 B.C.– calculator(with gears and wheels) : Pascal

• The Electrical age– Hollerith machine(1889):12-bit code on punched card– ENIAC(Electronics Numerical Integrator and Calculator) :

• 1946, Moore school of EE at Univ. of Pennsylvania• first general-purpose, programmable electronic computer• 17,000 vacuum tube, 500 miles of wire, 6000 switches• about 100,000 operations per second, 30 tons• hardware programmable : rewiring, switching• life of vacuum tube(3000 hours) : maintenance

Page 13: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

Chapter 1 Introduction to the Microprocessor and Computer

13

A historical Background• Stored Program concept(machines): Dr. John von Neumann

– program instruction should be stored in memory unit, just like the data• EDVAC(Electronic Discrete Variable Automatic Computer):1952

• UNIVAC(Universal Automatic Computer) :– delivered to Bureau of Census(1951), CBS(1952)

• Bipolar Transistor : 1948 by William Shockley, John Bardeen, Walter H. Brattain at Bell labs(1956, Novel physics award)

• 2nd-Generation Computer : TR– IBM : 7070/7090(1958), 1401(1959)– mainframe : describe CPU portion of computer– mainframe computer : designed to handle large volumes of data while

serving hundreds of users simultaneously– built on circuit boards mounted into rack panels(frame)

Page 14: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

Chapter 1 Introduction to the Microprocessor and Computer

14

• Integrated Circuit : 1958 by Jack Kilby of Texas Instruments and Dr. Robert Noyce of Fairchild Semiconductor

• digital IC(RTL, register-to-transistor logic) : in the 1960s• 3rd-Generation Computer : IC

– IBM : 32-bit 360 series(1964)• minicomputer : low-cost, scaled-down mainframe

– DEC : PDP-8(Programmed Data Processor)• INTEL(Integrated Electronics) : 1968

– Robert Noyce and Gorden Moore– 4000 family : 1971.11.15

• 4001 : 2K ROM with 4-bit I/O port• 4002 : 320-bit RAM with 4-bit output port• 4003 : 10-bit serial-in parallel-out shift register• 4004 : 4-bit processor

A historical Background

Page 15: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

Chapter 1 Introduction to the Microprocessor and Computer

15

• Programming Advancements– machine language – binary code– assembly language – mnemonic code : UNIVAC– high-level programming language

• FLOW-MATIC : 1957 by Grace Hopper• FORTRAN(FORMular TRANslator) : 1957, IBM• COBOL(Computer Business Oriented Language)• RPG(Report Program Generator)• BASIC, C/C++, PASCAL, ADA• Visual BASIC

A historical Background

Page 16: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

Chapter 1 Introduction to the Microprocessor and Computer

16

• The microprocessor age– 4004(1971, world’s 1st) : 4-bit, P-channel MOSFET technology

• 4096 4-bit(nibble) wide memory, 45 instructions, 50KIPs– 8008(1972, extended 8-bit version of 4004, 16Kbytes)– 8080(1973, 1st modern 8-bit) :

• 2.010-6sec, TTL-compatible, 64K bytes memory• one of 1st Microcomputer : MITS Altair 8800, Kit, 1975

– 8085(1977, 1.3s, internal clock generator & system controller)• The modern microprocessor

– 16-bit : 8086(1978), 8088(1979)• IBM sold the idea of a Personal Computer : 1981.8, 8088

– 32-bit : 80386, 80486– 64-bit : pentium ~

A historical Background

Page 17: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

Chapter 1 Introduction to the Microprocessor and Computer

17

• Microcontroller : hidden computer, one chip microcomputer– a microprocessor with on-chip memory and I/O

• Supercomputer :– most powerful computer available at any given time– Cray-1 : ECL, 130 MFLOPS(millions of floating-point operations

per second)

• Parallel Processor : Gigaflops(GFLOPS)– hypercube : arrangement of processors in the form of an n-

dimensional cube• DSP(Digital Signal Processor) :

– perform complex mathematical computations on converted analog data

A historical Background

Page 18: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

Chapter 1 Introduction to the Microprocessor and Computer

18

• RISC(Reduced Instruction Set Computer)– a small(<128) no. of instructions

• CISC(Complex Instruction Set Computer) – a large no. of variable length instructions– multiple addressing modes– a small no. of internal processor registers– instructions that require multiple no. of clock cycle to execute

• Intel’s i860 RISC processor(Cray on a chip)– 82 instructions, each 32 bits in length– four addressing modes– 32 general-purpose registers– all instructions execute in one clock cycle

A historical Background

Page 19: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

19

Page 20: نﺎﺑز و هﺪﻧزادﺮﭘﺰﻳر - basu.ac.ir722.3452.file_ref... · Title: The X86 PC: Assembly Language, Design, and Interfacing • Author: Muhammad Ali Mazidi • Edition:

20