SlideShare uma empresa Scribd logo
1 de 22
Course Code: CE-101
Credit Hour: 2+1
Prerequisite: DLD
                        Kanza Ali
       Email: kanza_29@yahoo.com




                                    1
Day         Time             Class Room No
Tuesday     11:00 to 12:00   Class Room 6
Wednesday   11:00 to 1:00    MP Lab
Thursday    12:00 to 1:00    Class Room 5




                                             2
3
   There must be a
    mechanism to inform
    memory that we want to do
    the
    read operation
   There must be a
    mechanism to inform
    memory that we want to
    read
     precisely which element
   There must be a
    mechanism to        transfer
    that data element from
     memory to processor


                                   4
5
Address Bus
 The address bus is unidirectional and address
  always travels from processor to memory
Data Bus
 Data moves from both, processor to memory and
  memory to processor, so the data bus is
  bidirectional
Control Bus
 information from the processor to a peripheral
  and some take information from the peripheral to
  the processor


                                                     6
   A binary number is generated on the address
    bus, fifth, seventh, eighth, tenth; the cell
    which is needed
   A memory cell is an n-bit location to store
    data, normally 8-bit also called a byte
   The number of bits in a cell is called the cell
    width




                                                      7
00000000
          00000001
              .
              .      .      Vertical
  Binary      .      .   Dimension=Size
Addresses     .
                     .     of Memory
of Memory     .
              .      .
   Cells
              .      .
          00100011
          00100100
          00100101
                                      8
   Precise    synchronization      between     the
    processor     and    the    memory     is   the
    responsibility of the control bus
   Since the memory never wants to listen or to
    speak of itself. Then why is the control bus
    bidirectional.




                                                      9
   There are temporary storage places inside the
    processor called registers
   Registers are inside the processor
   They are used when we need more than one
    data element inside the processor at one time
   In its operation it is similar to memory
   It is also knows as scratch pad ram




                                                    10
   Memory is a limited resource but the number
    of memory cells is large
   Registers are relatively very small in number,
    and are therefore a very scarce and precious
    resource
   Registers are more than one in number, so
    we have to precisely identify or name them
   Some manufacturers number their registers
    like r0, r1, r2, others name them like A, B, C,
    D etc. 11

                                                      11
   There is a central register in every processor
    called the accumulator
   Traditionally all mathematical and logical
    operations are performed on the accumulator
   The word size of a processor is defined by
    the width of its accumulator. A 32bit
    processor has an accumulator of 32 bits




                                                     12
It does not hold data but holds the address of
Data




                                                  13
   This is a special register in every architecture
    called the flags register
   Collection of different Boolean information each
    bit has an independent meaning
   Like the accumulator it is an 8, 16, or 32 bits
    register but unlike the accumulator it is
    meaningless as a unit, rather the individual bits
    carry different meanings
   The bits of the accumulator work in parallel as a
    unit and each bit mean the same thing
   The bits of the flags register work independently
    and individually, and combined its value is
    meaningless
                                                        14
15
   A program is defined to be “an ordered set of
    instructions.”
   Instructions have a positional relationship.
    The whole logic depends on this positioning
   “The program counter holds the address of
    the next instruction to be executed.”
   This number is called the opcode.




                                                    16
   Symbols are called instruction mnemonics
       add, sub, lad




       The dumb translator that will convert these
        mnemonics back to the original opcodes is a
        key program to be used throughout this
        course and is called the assembler
            Add to 152 or some numbers

                                                      17
18
   These instructions are used to move data
    from one place to another.
   These places can be registers, memory, or
    even inside peripheral devices. Some
       examples are:
       mov ax, bx    ; move data from bx to ax
       lad 1234      ; laod 0234 into accumulator




                                                    19
   Arithmetic instructions like addition, subtraction,
    multiplication, division and Logical instructions like
    logical and, logical or, logical xor, or complement
    are part of this group. Some examples are:

and ax, 1234         ; AND 1234 with ax
add bx, 0534         ; AND 0534 to bx
add bx, [1200]       ; ADD data at address 1200 to bx

The bracketed form is a complex variation meaning to
add the data placed at address 1200.


                                                         20
These are instructions that control the
program execution and flow by playing with
the instruction pointer and altering its normal
behavior to point to the next instruction.

cmp ax, 0 ; compare ax with 0
jne 1234 ; jump if not equal to the
           ; instruction at address 1234




                                                  21
Another group called special instructions works
like the special service commandos. They allow
changing specific processor behaviors and are
used to play with it. They are used rarely but
are certainly used in any meaningful
program.
cli   ; clear the interrupt flag
sti    ; set the interrupt flag




                                                  22

Mais conteúdo relacionado

Semelhante a Lecture (coa)

Assembly Language
Assembly LanguageAssembly Language
Assembly LanguageVijay Kumar
 
IS 139 Lecture 6
IS 139 Lecture 6IS 139 Lecture 6
IS 139 Lecture 6wajanga
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
4CS3-MPI-Unit-1.pptx
4CS3-MPI-Unit-1.pptx4CS3-MPI-Unit-1.pptx
4CS3-MPI-Unit-1.pptxLofi19
 
Introduction to debugging linux applications
Introduction to debugging linux applicationsIntroduction to debugging linux applications
Introduction to debugging linux applicationscommiebstrd
 
Unit-1_Digital Computers, number systemCOA[1].pptx
Unit-1_Digital Computers, number systemCOA[1].pptxUnit-1_Digital Computers, number systemCOA[1].pptx
Unit-1_Digital Computers, number systemCOA[1].pptxVanshJain322212
 
Chapter 8 memory-updated
Chapter 8 memory-updatedChapter 8 memory-updated
Chapter 8 memory-updatedDelowar hossain
 
Unit 3 assembler and processor
Unit 3   assembler and processorUnit 3   assembler and processor
Unit 3 assembler and processorAbha Damani
 
8085 Microprocessor - Ramesh Gaonkar.pdf-27 (1).pptx
8085 Microprocessor - Ramesh Gaonkar.pdf-27 (1).pptx8085 Microprocessor - Ramesh Gaonkar.pdf-27 (1).pptx
8085 Microprocessor - Ramesh Gaonkar.pdf-27 (1).pptxsruti009988
 
CST-20363-Session 1-In the Bitginning
CST-20363-Session 1-In the BitginningCST-20363-Session 1-In the Bitginning
CST-20363-Session 1-In the Bitginningoudesign
 
Microprocessor and microcontroller (MPMC).pdf
Microprocessor and microcontroller (MPMC).pdfMicroprocessor and microcontroller (MPMC).pdf
Microprocessor and microcontroller (MPMC).pdfXyzjakhaAbhuvs
 

Semelhante a Lecture (coa) (20)

Assembly Language
Assembly LanguageAssembly Language
Assembly Language
 
It322 intro 1
It322 intro 1It322 intro 1
It322 intro 1
 
Register & Memory
Register & MemoryRegister & Memory
Register & Memory
 
IS 139 Lecture 6
IS 139 Lecture 6IS 139 Lecture 6
IS 139 Lecture 6
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
Highlevel assemly
Highlevel assemlyHighlevel assemly
Highlevel assemly
 
4CS3-MPI-Unit-1.pptx
4CS3-MPI-Unit-1.pptx4CS3-MPI-Unit-1.pptx
4CS3-MPI-Unit-1.pptx
 
Xdr ppt
Xdr pptXdr ppt
Xdr ppt
 
מצגת פרויקט
מצגת פרויקטמצגת פרויקט
מצגת פרויקט
 
Introduction to debugging linux applications
Introduction to debugging linux applicationsIntroduction to debugging linux applications
Introduction to debugging linux applications
 
8085 archi
8085 archi8085 archi
8085 archi
 
Unit-1_Digital Computers, number systemCOA[1].pptx
Unit-1_Digital Computers, number systemCOA[1].pptxUnit-1_Digital Computers, number systemCOA[1].pptx
Unit-1_Digital Computers, number systemCOA[1].pptx
 
Chapter 8 memory-updated
Chapter 8 memory-updatedChapter 8 memory-updated
Chapter 8 memory-updated
 
Unit 3 assembler and processor
Unit 3   assembler and processorUnit 3   assembler and processor
Unit 3 assembler and processor
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
8085 Microprocessor - Ramesh Gaonkar.pdf-27 (1).pptx
8085 Microprocessor - Ramesh Gaonkar.pdf-27 (1).pptx8085 Microprocessor - Ramesh Gaonkar.pdf-27 (1).pptx
8085 Microprocessor - Ramesh Gaonkar.pdf-27 (1).pptx
 
CST-20363-Session 1-In the Bitginning
CST-20363-Session 1-In the BitginningCST-20363-Session 1-In the Bitginning
CST-20363-Session 1-In the Bitginning
 
Unit I.pptx
Unit I.pptxUnit I.pptx
Unit I.pptx
 
Microprocessor and microcontroller (MPMC).pdf
Microprocessor and microcontroller (MPMC).pdfMicroprocessor and microcontroller (MPMC).pdf
Microprocessor and microcontroller (MPMC).pdf
 
lecture1423813120.pdf
lecture1423813120.pdflecture1423813120.pdf
lecture1423813120.pdf
 

Mais de Hasam Panezai

Mais de Hasam Panezai (9)

Introduction to android basics
Introduction to android basicsIntroduction to android basics
Introduction to android basics
 
Cognitive architecture
Cognitive architectureCognitive architecture
Cognitive architecture
 
cog arch
cog archcog arch
cog arch
 
Lecture application layer
Lecture application layerLecture application layer
Lecture application layer
 
To lec 03
To lec 03To lec 03
To lec 03
 
To lec 04
To lec 04To lec 04
To lec 04
 
Lecture 1 4
Lecture 1 4Lecture 1 4
Lecture 1 4
 
White box
White boxWhite box
White box
 
Software testing & its technology
Software testing & its technologySoftware testing & its technology
Software testing & its technology
 

Último

Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 

Último (20)

Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 

Lecture (coa)

  • 1. Course Code: CE-101 Credit Hour: 2+1 Prerequisite: DLD Kanza Ali Email: kanza_29@yahoo.com 1
  • 2. Day Time Class Room No Tuesday 11:00 to 12:00 Class Room 6 Wednesday 11:00 to 1:00 MP Lab Thursday 12:00 to 1:00 Class Room 5 2
  • 3. 3
  • 4. There must be a mechanism to inform memory that we want to do the read operation  There must be a mechanism to inform memory that we want to read precisely which element  There must be a mechanism to transfer that data element from memory to processor 4
  • 5. 5
  • 6. Address Bus  The address bus is unidirectional and address always travels from processor to memory Data Bus  Data moves from both, processor to memory and memory to processor, so the data bus is bidirectional Control Bus  information from the processor to a peripheral and some take information from the peripheral to the processor 6
  • 7. A binary number is generated on the address bus, fifth, seventh, eighth, tenth; the cell which is needed  A memory cell is an n-bit location to store data, normally 8-bit also called a byte  The number of bits in a cell is called the cell width 7
  • 8. 00000000 00000001 . . . Vertical Binary . . Dimension=Size Addresses . . of Memory of Memory . . . Cells . . 00100011 00100100 00100101 8
  • 9. Precise synchronization between the processor and the memory is the responsibility of the control bus  Since the memory never wants to listen or to speak of itself. Then why is the control bus bidirectional. 9
  • 10. There are temporary storage places inside the processor called registers  Registers are inside the processor  They are used when we need more than one data element inside the processor at one time  In its operation it is similar to memory  It is also knows as scratch pad ram 10
  • 11. Memory is a limited resource but the number of memory cells is large  Registers are relatively very small in number, and are therefore a very scarce and precious resource  Registers are more than one in number, so we have to precisely identify or name them  Some manufacturers number their registers like r0, r1, r2, others name them like A, B, C, D etc. 11 11
  • 12. There is a central register in every processor called the accumulator  Traditionally all mathematical and logical operations are performed on the accumulator  The word size of a processor is defined by the width of its accumulator. A 32bit processor has an accumulator of 32 bits 12
  • 13. It does not hold data but holds the address of Data 13
  • 14. This is a special register in every architecture called the flags register  Collection of different Boolean information each bit has an independent meaning  Like the accumulator it is an 8, 16, or 32 bits register but unlike the accumulator it is meaningless as a unit, rather the individual bits carry different meanings  The bits of the accumulator work in parallel as a unit and each bit mean the same thing  The bits of the flags register work independently and individually, and combined its value is meaningless 14
  • 15. 15
  • 16. A program is defined to be “an ordered set of instructions.”  Instructions have a positional relationship. The whole logic depends on this positioning  “The program counter holds the address of the next instruction to be executed.”  This number is called the opcode. 16
  • 17. Symbols are called instruction mnemonics add, sub, lad  The dumb translator that will convert these mnemonics back to the original opcodes is a key program to be used throughout this course and is called the assembler Add to 152 or some numbers 17
  • 18. 18
  • 19. These instructions are used to move data from one place to another.  These places can be registers, memory, or even inside peripheral devices. Some examples are: mov ax, bx ; move data from bx to ax lad 1234 ; laod 0234 into accumulator 19
  • 20. Arithmetic instructions like addition, subtraction, multiplication, division and Logical instructions like logical and, logical or, logical xor, or complement are part of this group. Some examples are: and ax, 1234 ; AND 1234 with ax add bx, 0534 ; AND 0534 to bx add bx, [1200] ; ADD data at address 1200 to bx The bracketed form is a complex variation meaning to add the data placed at address 1200. 20
  • 21. These are instructions that control the program execution and flow by playing with the instruction pointer and altering its normal behavior to point to the next instruction. cmp ax, 0 ; compare ax with 0 jne 1234 ; jump if not equal to the ; instruction at address 1234 21
  • 22. Another group called special instructions works like the special service commandos. They allow changing specific processor behaviors and are used to play with it. They are used rarely but are certainly used in any meaningful program. cli ; clear the interrupt flag sti ; set the interrupt flag 22