SlideShare a Scribd company logo
Computer Organization
& Assembly Language
Lecture 1
(Course Introduction)
Course Introduction
• Instructor: Ghazanfer Mirza
• e-mail: ghazanfer4u@gmail.com
• Credit Hours: 3
Course Introduction
• Text Book :
Assembly Language Programming and Organization of the IBM PC,
Ytha Yu and Charles Marut
Course Assessment
Assessment Assessment Task
Proportion of Final
Assessment
1 Quizzes (n-1) 05%
2 Assignments 05%
3 Project 20%
4 Final exam 70%
Lecture Outline
• Part I: Computer Organization
• Part II: Assembly Language
Part I: Computer
organization
• Main hardware components and their relation to the software.
• What the computer does when it executes an instruction.
Topics to be covered
• Part I: Topics to be covered
• The Components of a Microcomputer System
I. Memory
II. The CPU
III. I/O Ports
• Instruction Cycle
• I/O Devices
• Programming Languages
Microcomputer Systems:
• I/O devices are also called peripherals.
• Integrated circuit , also known as chips , digital circuits.
• IC circuits are known as digital circuits because to operates on
discrete voltage signals levels typically a high voltage and a
low voltage represent by 0 and 1’s.
• These symbols are called binary digits or bits.
• All information processed by the computer is represented by
strings of 0’s and 1’s that is by bit string.
Motherboard:
• The motherboard is a printed circuit board that is the
foundation of a computer, located at the bottom of the
computer case.
• It allocates power to the CPU, RAM, and all other
computer hardware components.
• Most importantly, the motherboard allows hardware
components to communicate with one another.
Bytes and Words
• Information processed by the computer is stored in its
memory.
• The memory circuits are usually organized into groups that
can store eight bits of data.
• A string of eight bits is called a byte.
• Each memory byte is identified by a number that is called
address.
Bytes and Words
• The data stored in a memory byte are called its contents.
• The address of a memory byte is fixed and is different from
the address of any other memory byte in the computer.
• The contents of a memory byte are not unique and are subject
to change, because they denote the data currently being
stored.
Memory Represented as Bytes
5
Bit Position
• The positions are numbered from right to left, starting with 0.
• In a word, the bits 0 to 7 form the low byte and the bits 8 to
15 form the high byte.
• For a word stored in memory, its low byte comes from the
memory byte with the lower address and its high byte is from
the memory byte with the higher address.
Bit Positions in a Byte and a Word
Buses
• A processor communicates with memory and I/O circuits by
using signals that travel along a set of wires or connections
called buses.
• There are three kinds of signals: address, data, and control.
• And there are three buses: address bus, data bus, and control
bus.
Buses:
• For example, to read the contents of a memory location, the
CPU places the address of the memory location on the
address bus, and it receives the data, sent by the memory
circuits, on the data bus.
• A control signal is required to inform the memory to perform
a read operation.
• The CPU sends the control signal on the control bus.
Bus Connections of a Microcomputer
Intel 8086 Microprocessor Organization
Intel 8086 Microprocessor
Organization
• There are two main components of :
• Execution unit
• Bus unit
Execution Unit ( EU ):
• The purpose of the EU is to execute instructions.
• The arithmetic and logic unit (ALU) can perform arithmetic (+,
‐, x, /) and logic (AND, OR, NOT) operations.
• The data for the operations are stored in circuits called
registers.
• The EU has 8 registers.
• The EU contains temporary registers for holding operands for
the ALU and flag registers whose individual bits reflect the
results of a computation.
Bus Interface Unit ( BIU ):
• The BIU facilitates communication between the EU and the
memory or I/O circuits.
• The BIU is responsible for transmitting addresses, data, and
control signals on the buses.
• The instruction pointer (IP) contains the address of the next
instruction to be executed by the EU.
Instruction Prefetch:
• While the EU is executing an instruction, the BIU fetches up to
six bytes of the next instruction and places them in the
instruction queue.
Machine Instruction:
• The Opcode specifies the type of operation.
• The Operands are often given as memory addresses to the
data to be operated on.
Fetch Execute Cycle:‐
Fetch
•Fetch an instruction from memory.
•Decode the instruction to determine the operation.
•Fetch data from memory if necessary. Execute
•Perform the operation on the data.
•Store the result in memory if needed.
Programming Languages
• The operations of the computer’s hardware are controlled by
its software.
• When the computer is on, it is always in the process of
executing instructions.
Machine Language:
• The CPU can only execute machine language instructions.
• They are bit strings.
• Machine Instruction Operation
• 10100001 00000000 00000000 Fetch the contents of memory
word 0 and put it in register AX.
• 00000101 00000100 00000000 Add 4 to AX.
• 10100011 00000000 00000000 Store the contents of
• AX in memory word 0.
Assembly Language:
• A more convenient language to use is assembly language.
• In assembly language, we use symbolic names to represent
operations, registers, and memory locations.
• If location 0 is symbolized by A, the preceding program
expressed in IBM PC assembly language would look like this:
Assembly Language:
Assembly Instruction Comment
MOV AX, A ; fetch the contents of
; location A and put it in
; register AX
ADD AX, 4 ; add 4 to AX
MOV A, AX ; move the contents of AX
; into location A

More Related Content

What's hot

Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
PreethiSureshkumar1
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
karthiga selvaraju
 
Chapter 3 - Top Level View of Computer / Function and Interconection
Chapter 3 - Top Level View of Computer / Function and InterconectionChapter 3 - Top Level View of Computer / Function and Interconection
Chapter 3 - Top Level View of Computer / Function and InterconectionCésar de Souza
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer Architecture
InteX Research Lab
 
Intro to assembly language
Intro to assembly languageIntro to assembly language
Intro to assembly language
United International University
 
Instruction format
Instruction formatInstruction format
Instruction format
Sanjeev Patel
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1)
Subhasis Dash
 
Input output interface
Input output interfaceInput output interface
Input output interface
Christ University
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulation
Sanjeev Patel
 
Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organization
Mazin Alwaaly
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
Sandesh Jonchhe
 
Mapping
MappingMapping
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
rishi ram khanal
 
Computer registers
Computer registersComputer registers
Computer registers
Jatin Grover
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
Kamal Acharya
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer language
Sanjeev Patel
 
computer Architecture
computer Architecturecomputer Architecture
computer Architecture
umardanjumamaiwada
 
Chapter 8
Chapter 8Chapter 8
Pipeline hazard
Pipeline hazardPipeline hazard
Pipeline hazard
AJAL A J
 

What's hot (20)

Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Chapter 3 - Top Level View of Computer / Function and Interconection
Chapter 3 - Top Level View of Computer / Function and InterconectionChapter 3 - Top Level View of Computer / Function and Interconection
Chapter 3 - Top Level View of Computer / Function and Interconection
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer Architecture
 
Intro to assembly language
Intro to assembly languageIntro to assembly language
Intro to assembly language
 
Instruction format
Instruction formatInstruction format
Instruction format
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1)
 
Input output interface
Input output interfaceInput output interface
Input output interface
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulation
 
Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organization
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
 
Memory management
Memory managementMemory management
Memory management
 
Mapping
MappingMapping
Mapping
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
 
Computer registers
Computer registersComputer registers
Computer registers
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer language
 
computer Architecture
computer Architecturecomputer Architecture
computer Architecture
 
Chapter 8
Chapter 8Chapter 8
Chapter 8
 
Pipeline hazard
Pipeline hazardPipeline hazard
Pipeline hazard
 

Viewers also liked

assembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YUassembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YU
Education
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 6 (Flow Control ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 6 (Flow Control ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 6 (Flow Control ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 6 (Flow Control ...
Bilal Amjad
 
Processor Basics
Processor BasicsProcessor Basics
Processor Basics
Education Front
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Bilal Amjad
 
Assembly Language Basics
Assembly Language BasicsAssembly Language Basics
Assembly Language Basics
Education Front
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Bilal Amjad
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 1(Microcomputer ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 1(Microcomputer ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 1(Microcomputer ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 1(Microcomputer ...
Bilal Amjad
 
Assembly Language Lecture 2
Assembly Language Lecture 2Assembly Language Lecture 2
Assembly Language Lecture 2
Motaz Saad
 
Assembly Language Lecture 1
Assembly Language Lecture 1Assembly Language Lecture 1
Assembly Language Lecture 1
Motaz Saad
 
Coal 1 - introduction to assembly programming in Assembly Programming
Coal 1 - introduction to assembly programming in Assembly ProgrammingCoal 1 - introduction to assembly programming in Assembly Programming
Coal 1 - introduction to assembly programming in Assembly Programming
Muhammad Taqi Hassan Bukhari
 
Assembly language programming(unit 4)
Assembly language programming(unit 4)Assembly language programming(unit 4)
Assembly language programming(unit 4)Ashim Saha
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...
Bilal Amjad
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 10 ( Arrays and ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 10 ( Arrays and ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 10 ( Arrays and ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 10 ( Arrays and ...
Bilal Amjad
 
Assembly Language Lecture 4
Assembly Language Lecture 4Assembly Language Lecture 4
Assembly Language Lecture 4
Motaz Saad
 
Lec 01 basic concepts
Lec 01 basic conceptsLec 01 basic concepts
Lec 01 basic concepts
Abdul Khan
 
Register & Memory
Register & MemoryRegister & Memory
Register & Memory
Education Front
 
Assembly Language Lecture 5
Assembly Language Lecture 5Assembly Language Lecture 5
Assembly Language Lecture 5
Motaz Saad
 
Assembly language programming_fundamentals 8086
Assembly language programming_fundamentals 8086Assembly language programming_fundamentals 8086
Assembly language programming_fundamentals 8086
Shehrevar Davierwala
 
Assembly Language Lecture 3
Assembly Language Lecture 3Assembly Language Lecture 3
Assembly Language Lecture 3
Motaz Saad
 
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMINGChapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Frankie Jones
 

Viewers also liked (20)

assembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YUassembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YU
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 6 (Flow Control ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 6 (Flow Control ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 6 (Flow Control ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 6 (Flow Control ...
 
Processor Basics
Processor BasicsProcessor Basics
Processor Basics
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
 
Assembly Language Basics
Assembly Language BasicsAssembly Language Basics
Assembly Language Basics
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 1(Microcomputer ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 1(Microcomputer ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 1(Microcomputer ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 1(Microcomputer ...
 
Assembly Language Lecture 2
Assembly Language Lecture 2Assembly Language Lecture 2
Assembly Language Lecture 2
 
Assembly Language Lecture 1
Assembly Language Lecture 1Assembly Language Lecture 1
Assembly Language Lecture 1
 
Coal 1 - introduction to assembly programming in Assembly Programming
Coal 1 - introduction to assembly programming in Assembly ProgrammingCoal 1 - introduction to assembly programming in Assembly Programming
Coal 1 - introduction to assembly programming in Assembly Programming
 
Assembly language programming(unit 4)
Assembly language programming(unit 4)Assembly language programming(unit 4)
Assembly language programming(unit 4)
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 10 ( Arrays and ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 10 ( Arrays and ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 10 ( Arrays and ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 10 ( Arrays and ...
 
Assembly Language Lecture 4
Assembly Language Lecture 4Assembly Language Lecture 4
Assembly Language Lecture 4
 
Lec 01 basic concepts
Lec 01 basic conceptsLec 01 basic concepts
Lec 01 basic concepts
 
Register & Memory
Register & MemoryRegister & Memory
Register & Memory
 
Assembly Language Lecture 5
Assembly Language Lecture 5Assembly Language Lecture 5
Assembly Language Lecture 5
 
Assembly language programming_fundamentals 8086
Assembly language programming_fundamentals 8086Assembly language programming_fundamentals 8086
Assembly language programming_fundamentals 8086
 
Assembly Language Lecture 3
Assembly Language Lecture 3Assembly Language Lecture 3
Assembly Language Lecture 3
 
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMINGChapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
 

Similar to Chapter 1

Assembly Language and Structures of Microcomputer | Chap-1
Assembly Language and Structures of Microcomputer | Chap-1Assembly Language and Structures of Microcomputer | Chap-1
Assembly Language and Structures of Microcomputer | Chap-1
Nafis Ahmed
 
Unit 1. introduction
Unit 1. introductionUnit 1. introduction
Unit 1. introduction
Kiran Bagale
 
Chapter1 introduction to computer systems
Chapter1 introduction to computer systemsChapter1 introduction to computer systems
Chapter1 introduction to computer systems
Muhammad Waqas
 
Unit I.pptx
Unit I.pptxUnit I.pptx
Unit I.pptx
sahushweta1702
 
Introduction to Computer System
Introduction to Computer System Introduction to Computer System
Introduction to Computer System
sonykhan3
 
Computer Architecture and Organization.pptx
Computer Architecture and Organization.pptxComputer Architecture and Organization.pptx
Computer Architecture and Organization.pptx
LearnersCoach
 
Hardware and software of computer
Hardware and software of computerHardware and software of computer
Hardware and software of computer
Surath Khadka
 
Microprocessor fundamentals
Microprocessor fundamentalsMicroprocessor fundamentals
Microprocessor fundamentals
JLoknathDora
 
Module-1_Part_1 (1).pptx
Module-1_Part_1 (1).pptxModule-1_Part_1 (1).pptx
Module-1_Part_1 (1).pptx
kumarloresh143
 
EE5440 – Computer Architecture - Lecture 1
EE5440 – Computer Architecture - Lecture 1EE5440 – Computer Architecture - Lecture 1
EE5440 – Computer Architecture - Lecture 1
Dilawar Khan
 
Computer Organization and Architecture.pptx
Computer Organization and Architecture.pptxComputer Organization and Architecture.pptx
Computer Organization and Architecture.pptx
AshokRachapalli1
 
Intro. to computer system
Intro. to computer systemIntro. to computer system
Intro. to computer systemdofirfauzi1302
 
BCS 100: Introduction to Computer Science Lesson 3
BCS 100: Introduction to Computer Science Lesson 3BCS 100: Introduction to Computer Science Lesson 3
BCS 100: Introduction to Computer Science Lesson 3
Ndubi Amos
 
Unit 1 Basic structureCOA.pdf
Unit 1 Basic structureCOA.pdfUnit 1 Basic structureCOA.pdf
Unit 1 Basic structureCOA.pdf
SujanTimalsina5
 
Module -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptxModule -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptx
DrVaibhavMeshram
 
Computer Organization and Design.pptx
Computer Organization and Design.pptxComputer Organization and Design.pptx
Computer Organization and Design.pptx
SherinRappai
 
Chapter 02 system unit csc & tts
Chapter 02 system unit csc & ttsChapter 02 system unit csc & tts
Chapter 02 system unit csc & ttsHisyam Rosly
 
0-Slot02-Introduction-to-PFC.pdf
0-Slot02-Introduction-to-PFC.pdf0-Slot02-Introduction-to-PFC.pdf
0-Slot02-Introduction-to-PFC.pdf
ssusere19c741
 
Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...
Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...
Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...
Abhishekn84
 

Similar to Chapter 1 (20)

Assembly Language and Structures of Microcomputer | Chap-1
Assembly Language and Structures of Microcomputer | Chap-1Assembly Language and Structures of Microcomputer | Chap-1
Assembly Language and Structures of Microcomputer | Chap-1
 
Unit 1. introduction
Unit 1. introductionUnit 1. introduction
Unit 1. introduction
 
Chapter1 introduction to computer systems
Chapter1 introduction to computer systemsChapter1 introduction to computer systems
Chapter1 introduction to computer systems
 
Unit I.pptx
Unit I.pptxUnit I.pptx
Unit I.pptx
 
Introduction to Computer System
Introduction to Computer System Introduction to Computer System
Introduction to Computer System
 
Computer Architecture and Organization.pptx
Computer Architecture and Organization.pptxComputer Architecture and Organization.pptx
Computer Architecture and Organization.pptx
 
Hardware and software of computer
Hardware and software of computerHardware and software of computer
Hardware and software of computer
 
Microprocessor fundamentals
Microprocessor fundamentalsMicroprocessor fundamentals
Microprocessor fundamentals
 
Module-1_Part_1 (1).pptx
Module-1_Part_1 (1).pptxModule-1_Part_1 (1).pptx
Module-1_Part_1 (1).pptx
 
EE5440 – Computer Architecture - Lecture 1
EE5440 – Computer Architecture - Lecture 1EE5440 – Computer Architecture - Lecture 1
EE5440 – Computer Architecture - Lecture 1
 
Computer Organization and Architecture.pptx
Computer Organization and Architecture.pptxComputer Organization and Architecture.pptx
Computer Organization and Architecture.pptx
 
Intro. to computer system
Intro. to computer systemIntro. to computer system
Intro. to computer system
 
BCS 100: Introduction to Computer Science Lesson 3
BCS 100: Introduction to Computer Science Lesson 3BCS 100: Introduction to Computer Science Lesson 3
BCS 100: Introduction to Computer Science Lesson 3
 
Unit 1 Basic structureCOA.pdf
Unit 1 Basic structureCOA.pdfUnit 1 Basic structureCOA.pdf
Unit 1 Basic structureCOA.pdf
 
Module -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptxModule -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptx
 
Computer Organization and Design.pptx
Computer Organization and Design.pptxComputer Organization and Design.pptx
Computer Organization and Design.pptx
 
Cao u1
Cao u1Cao u1
Cao u1
 
Chapter 02 system unit csc & tts
Chapter 02 system unit csc & ttsChapter 02 system unit csc & tts
Chapter 02 system unit csc & tts
 
0-Slot02-Introduction-to-PFC.pdf
0-Slot02-Introduction-to-PFC.pdf0-Slot02-Introduction-to-PFC.pdf
0-Slot02-Introduction-to-PFC.pdf
 
Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...
Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...
Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...
 

Recently uploaded

一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
aozcue
 
web-tech-lab-manual-final-abhas.pdf. Jer
web-tech-lab-manual-final-abhas.pdf. Jerweb-tech-lab-manual-final-abhas.pdf. Jer
web-tech-lab-manual-final-abhas.pdf. Jer
freshgammer09
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
peuce
 
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
andreassenrolf537
 
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
aozcue
 
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Peter Gallagher
 
MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...
MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...
MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...
PinkySharma900491
 

Recently uploaded (7)

一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
 
web-tech-lab-manual-final-abhas.pdf. Jer
web-tech-lab-manual-final-abhas.pdf. Jerweb-tech-lab-manual-final-abhas.pdf. Jer
web-tech-lab-manual-final-abhas.pdf. Jer
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
 
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
 
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
 
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
 
MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...
MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...
MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...
 

Chapter 1

  • 1. Computer Organization & Assembly Language Lecture 1 (Course Introduction)
  • 2. Course Introduction • Instructor: Ghazanfer Mirza • e-mail: ghazanfer4u@gmail.com • Credit Hours: 3
  • 3. Course Introduction • Text Book : Assembly Language Programming and Organization of the IBM PC, Ytha Yu and Charles Marut
  • 4. Course Assessment Assessment Assessment Task Proportion of Final Assessment 1 Quizzes (n-1) 05% 2 Assignments 05% 3 Project 20% 4 Final exam 70%
  • 5. Lecture Outline • Part I: Computer Organization • Part II: Assembly Language
  • 6. Part I: Computer organization • Main hardware components and their relation to the software. • What the computer does when it executes an instruction.
  • 7. Topics to be covered • Part I: Topics to be covered • The Components of a Microcomputer System I. Memory II. The CPU III. I/O Ports • Instruction Cycle • I/O Devices • Programming Languages
  • 8. Microcomputer Systems: • I/O devices are also called peripherals. • Integrated circuit , also known as chips , digital circuits. • IC circuits are known as digital circuits because to operates on discrete voltage signals levels typically a high voltage and a low voltage represent by 0 and 1’s. • These symbols are called binary digits or bits. • All information processed by the computer is represented by strings of 0’s and 1’s that is by bit string.
  • 9. Motherboard: • The motherboard is a printed circuit board that is the foundation of a computer, located at the bottom of the computer case. • It allocates power to the CPU, RAM, and all other computer hardware components. • Most importantly, the motherboard allows hardware components to communicate with one another.
  • 10. Bytes and Words • Information processed by the computer is stored in its memory. • The memory circuits are usually organized into groups that can store eight bits of data. • A string of eight bits is called a byte. • Each memory byte is identified by a number that is called address.
  • 11. Bytes and Words • The data stored in a memory byte are called its contents. • The address of a memory byte is fixed and is different from the address of any other memory byte in the computer. • The contents of a memory byte are not unique and are subject to change, because they denote the data currently being stored.
  • 13. Bit Position • The positions are numbered from right to left, starting with 0. • In a word, the bits 0 to 7 form the low byte and the bits 8 to 15 form the high byte. • For a word stored in memory, its low byte comes from the memory byte with the lower address and its high byte is from the memory byte with the higher address.
  • 14. Bit Positions in a Byte and a Word
  • 15. Buses • A processor communicates with memory and I/O circuits by using signals that travel along a set of wires or connections called buses. • There are three kinds of signals: address, data, and control. • And there are three buses: address bus, data bus, and control bus.
  • 16. Buses: • For example, to read the contents of a memory location, the CPU places the address of the memory location on the address bus, and it receives the data, sent by the memory circuits, on the data bus. • A control signal is required to inform the memory to perform a read operation. • The CPU sends the control signal on the control bus.
  • 17. Bus Connections of a Microcomputer
  • 19. Intel 8086 Microprocessor Organization • There are two main components of : • Execution unit • Bus unit
  • 20. Execution Unit ( EU ): • The purpose of the EU is to execute instructions. • The arithmetic and logic unit (ALU) can perform arithmetic (+, ‐, x, /) and logic (AND, OR, NOT) operations. • The data for the operations are stored in circuits called registers. • The EU has 8 registers. • The EU contains temporary registers for holding operands for the ALU and flag registers whose individual bits reflect the results of a computation.
  • 21. Bus Interface Unit ( BIU ): • The BIU facilitates communication between the EU and the memory or I/O circuits. • The BIU is responsible for transmitting addresses, data, and control signals on the buses. • The instruction pointer (IP) contains the address of the next instruction to be executed by the EU.
  • 22. Instruction Prefetch: • While the EU is executing an instruction, the BIU fetches up to six bytes of the next instruction and places them in the instruction queue.
  • 23. Machine Instruction: • The Opcode specifies the type of operation. • The Operands are often given as memory addresses to the data to be operated on.
  • 24. Fetch Execute Cycle:‐ Fetch •Fetch an instruction from memory. •Decode the instruction to determine the operation. •Fetch data from memory if necessary. Execute •Perform the operation on the data. •Store the result in memory if needed.
  • 25. Programming Languages • The operations of the computer’s hardware are controlled by its software. • When the computer is on, it is always in the process of executing instructions.
  • 26. Machine Language: • The CPU can only execute machine language instructions. • They are bit strings. • Machine Instruction Operation • 10100001 00000000 00000000 Fetch the contents of memory word 0 and put it in register AX. • 00000101 00000100 00000000 Add 4 to AX. • 10100011 00000000 00000000 Store the contents of • AX in memory word 0.
  • 27. Assembly Language: • A more convenient language to use is assembly language. • In assembly language, we use symbolic names to represent operations, registers, and memory locations. • If location 0 is symbolized by A, the preceding program expressed in IBM PC assembly language would look like this:
  • 28. Assembly Language: Assembly Instruction Comment MOV AX, A ; fetch the contents of ; location A and put it in ; register AX ADD AX, 4 ; add 4 to AX MOV A, AX ; move the contents of AX ; into location A