SlideShare a Scribd company logo
Assembly language
PPT ( 1 )
Introduction AND
Basics
What is assembly language
 An assembly language is a low-level programming
language for microprocessors and other programmable
devices.
 It is the most basic programming language available
for any processor.
 A processor understands only machine language
instructions, which are strings of 1's and 0's.
 However, machine language is too obscure and
complex for using in software development , instead
low level assembly language is used .
Flow of compilation
Compilation flow explained
 Preprocessing : is the first pass of any C
compilation. It processes include-files, conditional
compilation instructions and macros.
 Compilation : is the second pass. It takes the
output of the preprocessor, and the source code, and
generates assembler source code.
 Assembly : is the third stage of compilation. It
takes the assembly source code and produces an
assembly listing with offsets. The assembler
output is stored in an object file.
 Linking : is the final stage of compilation. It takes
one or more object files or libraries as input and
combines them to produce a single (usually
executable) file. In doing so, it resolves references
to external symbols, assigns final addresses to
procedures/functions and variables, and revises code
and data to reflect new addresses (a process called
relocation).
Basic feature of PC hardware
 Motherboard : The motherboard serves
to connect all of the parts of a computer
together. The cpu, memory, hard drives,
optical drives, video card, sound card and
other ports and expansion cards all
connect to the motherboard directly or via
cables.
Motherboard explained
 BIOS :lowest-level software in the computer, acts
as an interface between the hardware and the
operating system .
 ROM : is nonvolatile. ROM chips contain
permanently written data, called firmware (your
BIOS lives here).
 RAM : RAM devices are used in computer
systems as the main memory. RAM is considered
volatile memory, which means that the stored
information is lost when there is no power.
Processing devices
 Control unit : A control unit (CU) handles all
processor control signals . It directs all input and
output flow, fetches code for instructions from
microprograms and directs other units and models
by providing control and timing signals.
 ALU : An ALU performs basic arithmetic and logic
operations. Examples of arithmetic operations are
addition, subtraction, multiplication, and division.
Examples of logic operations are comparisons of values
such as NOT, AND, and OR.
 Registers : In a computer, a register is one of a
small set of data holding places that are part of a
computer processor . A register may hold a
computer instruction , a storage address, or any kind
of data.
 Bus : The CPU moves data around the computer
on pathways that interconnect it to all the other
components on the motherboard. These pathways
are called 'buses‘
 Types of Bus
 Address - the components pass memory addresses
to one another over the address bus.
 Control - used to send out signals to coordinate and
manage the activities of the motherboard
components.
 Data - transferred between peripherals, memory and
the CPU. Obviously, the data bus can be a very busy
pathway.
Number system
 A set of values used to represent different quantities is known as
Number System
 Types of number system
1. Binary - Or base 2. There are only two numbers in binary, 0 and
1. Because computers use a sequence of switches that can be on
or off (also called a bit), base 2 works very well for them. Math
in base 2 is pathetically simple, but incredibly time consuming
2. Octal - Or base 8. Uses the numbers 0 to 7. There are eight bits
in a byte which is used very often in the computer field. (A bit is
great, but it's too small to hold any useful data, thus the byte is
used.) Math in octal is more complicated than decimal
3. Decimal - Or base 10. Uses the numbers 0-9. I'm sure you're
familiar with this system. Computers only display numbers in
decimal, they actually do all their work in binary. Math is quite
simple with this number system, although some may argue.
4. Hexadecimal - Or base 16. Uses the numbers 0-F. Yes, I said F.
Because there are 16 values per place holder, five new numbers
had to be created. Those numbers are A, B, C, D, E, and F
(Original isn't it?). "A" has a value of 10, "B" is 11, and so on
NUMBER SYSTEM
SYSTEM BASE DIGITS
BINARY 2 01
OCTA L 8 01234567
DECIMAL 10 0123456789
HEXADECIMAL 16 0123456789ABCDE
F

More Related Content

What's hot

Interrupts
InterruptsInterrupts
Interrupts
Albin Panakkal
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
Kamal Acharya
 
Interrupts
InterruptsInterrupts
Interrupts
Urwa Shanza
 
Processors and its Types
Processors and its TypesProcessors and its Types
Processors and its Types
Nimrah Shahbaz
 
Assembly language
Assembly languageAssembly language
Assembly language
gaurav jain
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architecture
Faisal Hussain
 
The Basic Organization of Computers
The Basic Organization of ComputersThe Basic Organization of Computers
The Basic Organization of Computers
Tallat Satti
 
Part I:Introduction to assembly language
Part I:Introduction to assembly languagePart I:Introduction to assembly language
Part I:Introduction to assembly languageAhmed M. Abed
 
Addressing mode Computer Architecture
Addressing mode  Computer ArchitectureAddressing mode  Computer Architecture
Addressing mode Computer Architecture
Haris456
 
Micro Programmed Control Unit
Micro Programmed Control UnitMicro Programmed Control Unit
Micro Programmed Control Unit
Kamal Acharya
 
System bus
System busSystem bus
System bus
AmanLodhi3
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1)
Subhasis Dash
 
instruction cycle ppt
instruction cycle pptinstruction cycle ppt
instruction cycle pptsheetal singh
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
Ashhad Kamal
 
Von Neumann Architecture
Von Neumann ArchitectureVon Neumann Architecture
Von Neumann Architecture
Chamodi Adikaram
 
Computer system bus
Computer system busComputer system bus
Computer system bus
Goran W. Hama Ali
 
memory hierarchy
memory hierarchymemory hierarchy
memory hierarchy
sreelakshmikv
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.k
Vijay Kumar
 

What's hot (20)

Interrupts
InterruptsInterrupts
Interrupts
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
Interrupts
InterruptsInterrupts
Interrupts
 
Processors and its Types
Processors and its TypesProcessors and its Types
Processors and its Types
 
Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
 
Assembly language
Assembly languageAssembly language
Assembly language
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architecture
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
The Basic Organization of Computers
The Basic Organization of ComputersThe Basic Organization of Computers
The Basic Organization of Computers
 
Part I:Introduction to assembly language
Part I:Introduction to assembly languagePart I:Introduction to assembly language
Part I:Introduction to assembly language
 
Addressing mode Computer Architecture
Addressing mode  Computer ArchitectureAddressing mode  Computer Architecture
Addressing mode Computer Architecture
 
Micro Programmed Control Unit
Micro Programmed Control UnitMicro Programmed Control Unit
Micro Programmed Control Unit
 
System bus
System busSystem bus
System bus
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1)
 
instruction cycle ppt
instruction cycle pptinstruction cycle ppt
instruction cycle ppt
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Von Neumann Architecture
Von Neumann ArchitectureVon Neumann Architecture
Von Neumann Architecture
 
Computer system bus
Computer system busComputer system bus
Computer system bus
 
memory hierarchy
memory hierarchymemory hierarchy
memory hierarchy
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.k
 

Viewers also liked

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
 
Programming language
Programming languageProgramming language
Programming language
Shuja Qais
 
Computer – assisted language learning (call)
Computer – assisted language learning (call)Computer – assisted language learning (call)
Computer – assisted language learning (call)
Irsyad Nugraha
 
Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Swati Watve-Phadke
 
Lec 01 basic concepts
Lec 01 basic conceptsLec 01 basic concepts
Lec 01 basic concepts
Abdul Khan
 
programing laugauge
programing laugaugeprograming laugauge
programing laugauge
skylink_developer
 
Programming with 8085
Programming with 8085Programming with 8085
Programming with 8085
Shehrevar Davierwala
 
Assembly language programming_fundamentals 8086
Assembly language programming_fundamentals 8086Assembly language programming_fundamentals 8086
Assembly language programming_fundamentals 8086
Shehrevar Davierwala
 
Assembly Language Lecture 1
Assembly Language Lecture 1Assembly Language Lecture 1
Assembly Language Lecture 1
Motaz Saad
 
Types of instructions
Types of instructionsTypes of instructions
Types of instructions
ihsanjamil
 
Computer languages
Computer languagesComputer languages
Computer languages
Buxoo Abdullah
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languagesVarun Garg
 
Assembly Language Basics
Assembly Language BasicsAssembly Language Basics
Assembly Language Basics
Education Front
 

Viewers also liked (13)

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
 
Programming language
Programming languageProgramming language
Programming language
 
Computer – assisted language learning (call)
Computer – assisted language learning (call)Computer – assisted language learning (call)
Computer – assisted language learning (call)
 
Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02
 
Lec 01 basic concepts
Lec 01 basic conceptsLec 01 basic concepts
Lec 01 basic concepts
 
programing laugauge
programing laugaugeprograming laugauge
programing laugauge
 
Programming with 8085
Programming with 8085Programming with 8085
Programming with 8085
 
Assembly language programming_fundamentals 8086
Assembly language programming_fundamentals 8086Assembly language programming_fundamentals 8086
Assembly language programming_fundamentals 8086
 
Assembly Language Lecture 1
Assembly Language Lecture 1Assembly Language Lecture 1
Assembly Language Lecture 1
 
Types of instructions
Types of instructionsTypes of instructions
Types of instructions
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
 
Assembly Language Basics
Assembly Language BasicsAssembly Language Basics
Assembly Language Basics
 

Similar to Assembly language

assembly language chapter 1.pptxassembly language chapte
assembly language chapter 1.pptxassembly language chapteassembly language chapter 1.pptxassembly language chapte
assembly language chapter 1.pptxassembly language chapte
mustafkhalid
 
Microprocessors Assignment
Microprocessors AssignmentMicroprocessors Assignment
Microprocessors Assignment
RAHUL957367
 
Components of a computer-Unit-2
Components of a computer-Unit-2Components of a computer-Unit-2
number system understand
number system  understandnumber system  understand
number system understandrickypatel151
 
Assembly Language
Assembly LanguageAssembly Language
Assembly Language
Vijay Kumar
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
deval patel
 
Computer Lecture 3
Computer  Lecture 3Computer  Lecture 3
Computer Lecture 3Moiz Barry
 
Introduction To Computer Systems
Introduction To Computer SystemsIntroduction To Computer Systems
Introduction To Computer Systems
Naheed Azam
 
Processing Data
Processing DataProcessing Data
Processing Data
Shaina Mavreen Villaroza
 
Lecture 2 - Introductory Concepts
Lecture 2 - Introductory ConceptsLecture 2 - Introductory Concepts
Lecture 2 - Introductory Concepts
Md. Imran Hossain Showrov
 
Computer basics and i.o devices
Computer basics and i.o devicesComputer basics and i.o devices
Computer basics and i.o deviceskitturashmikittu
 
EEE226a.ppt
EEE226a.pptEEE226a.ppt
EEE226a.ppt
SaifulAhmad27
 
SP Solutions -Adi.pdf
SP Solutions -Adi.pdfSP Solutions -Adi.pdf
SP Solutions -Adi.pdf
AdiseshaK
 
SP_Solutions_-Adi.pdf
SP_Solutions_-Adi.pdfSP_Solutions_-Adi.pdf
SP_Solutions_-Adi.pdf
AdiseshaK
 
SP_Solutions_-Adi.pdf
SP_Solutions_-Adi.pdfSP_Solutions_-Adi.pdf
SP_Solutions_-Adi.pdf
Prof. Dr. K. Adisesha
 
ASSEMBLY LANGUAGE.pptx
ASSEMBLY LANGUAGE.pptxASSEMBLY LANGUAGE.pptx
ASSEMBLY LANGUAGE.pptx
EdFeranil
 
lecture1422486950.pdf
lecture1422486950.pdflecture1422486950.pdf
lecture1422486950.pdf
tomsmith160
 
Programming & Data Structure Lecture Notes
Programming & Data Structure Lecture NotesProgramming & Data Structure Lecture Notes
Programming & Data Structure Lecture Notes
FellowBuddy.com
 
Computer capsule ibps_po_2014
Computer capsule ibps_po_2014Computer capsule ibps_po_2014
Computer capsule ibps_po_2014
Lucky Saini
 

Similar to Assembly language (20)

assembly language chapter 1.pptxassembly language chapte
assembly language chapter 1.pptxassembly language chapteassembly language chapter 1.pptxassembly language chapte
assembly language chapter 1.pptxassembly language chapte
 
Microprocessors Assignment
Microprocessors AssignmentMicroprocessors Assignment
Microprocessors Assignment
 
Components of a computer-Unit-2
Components of a computer-Unit-2Components of a computer-Unit-2
Components of a computer-Unit-2
 
number system understand
number system  understandnumber system  understand
number system understand
 
Assembly Language
Assembly LanguageAssembly Language
Assembly Language
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Computer Lecture 3
Computer  Lecture 3Computer  Lecture 3
Computer Lecture 3
 
Introduction To Computer Systems
Introduction To Computer SystemsIntroduction To Computer Systems
Introduction To Computer Systems
 
Processing Data
Processing DataProcessing Data
Processing Data
 
Lecture 2 - Introductory Concepts
Lecture 2 - Introductory ConceptsLecture 2 - Introductory Concepts
Lecture 2 - Introductory Concepts
 
Computer basics and i.o devices
Computer basics and i.o devicesComputer basics and i.o devices
Computer basics and i.o devices
 
EEE226a.ppt
EEE226a.pptEEE226a.ppt
EEE226a.ppt
 
SP Solutions -Adi.pdf
SP Solutions -Adi.pdfSP Solutions -Adi.pdf
SP Solutions -Adi.pdf
 
SP_Solutions_-Adi.pdf
SP_Solutions_-Adi.pdfSP_Solutions_-Adi.pdf
SP_Solutions_-Adi.pdf
 
SP_Solutions_-Adi.pdf
SP_Solutions_-Adi.pdfSP_Solutions_-Adi.pdf
SP_Solutions_-Adi.pdf
 
ASSEMBLY LANGUAGE.pptx
ASSEMBLY LANGUAGE.pptxASSEMBLY LANGUAGE.pptx
ASSEMBLY LANGUAGE.pptx
 
lecture1422486950.pdf
lecture1422486950.pdflecture1422486950.pdf
lecture1422486950.pdf
 
Programming & Data Structure Lecture Notes
Programming & Data Structure Lecture NotesProgramming & Data Structure Lecture Notes
Programming & Data Structure Lecture Notes
 
Chapter1a
Chapter1aChapter1a
Chapter1a
 
Computer capsule ibps_po_2014
Computer capsule ibps_po_2014Computer capsule ibps_po_2014
Computer capsule ibps_po_2014
 

Assembly language

  • 1. Assembly language PPT ( 1 ) Introduction AND Basics
  • 2. What is assembly language  An assembly language is a low-level programming language for microprocessors and other programmable devices.  It is the most basic programming language available for any processor.  A processor understands only machine language instructions, which are strings of 1's and 0's.  However, machine language is too obscure and complex for using in software development , instead low level assembly language is used .
  • 4. Compilation flow explained  Preprocessing : is the first pass of any C compilation. It processes include-files, conditional compilation instructions and macros.  Compilation : is the second pass. It takes the output of the preprocessor, and the source code, and generates assembler source code.  Assembly : is the third stage of compilation. It takes the assembly source code and produces an assembly listing with offsets. The assembler output is stored in an object file.
  • 5.  Linking : is the final stage of compilation. It takes one or more object files or libraries as input and combines them to produce a single (usually executable) file. In doing so, it resolves references to external symbols, assigns final addresses to procedures/functions and variables, and revises code and data to reflect new addresses (a process called relocation).
  • 6. Basic feature of PC hardware  Motherboard : The motherboard serves to connect all of the parts of a computer together. The cpu, memory, hard drives, optical drives, video card, sound card and other ports and expansion cards all connect to the motherboard directly or via cables.
  • 8.  BIOS :lowest-level software in the computer, acts as an interface between the hardware and the operating system .  ROM : is nonvolatile. ROM chips contain permanently written data, called firmware (your BIOS lives here).  RAM : RAM devices are used in computer systems as the main memory. RAM is considered volatile memory, which means that the stored information is lost when there is no power.
  • 10.  Control unit : A control unit (CU) handles all processor control signals . It directs all input and output flow, fetches code for instructions from microprograms and directs other units and models by providing control and timing signals.  ALU : An ALU performs basic arithmetic and logic operations. Examples of arithmetic operations are addition, subtraction, multiplication, and division. Examples of logic operations are comparisons of values such as NOT, AND, and OR.  Registers : In a computer, a register is one of a small set of data holding places that are part of a computer processor . A register may hold a computer instruction , a storage address, or any kind of data.
  • 11.  Bus : The CPU moves data around the computer on pathways that interconnect it to all the other components on the motherboard. These pathways are called 'buses‘  Types of Bus  Address - the components pass memory addresses to one another over the address bus.  Control - used to send out signals to coordinate and manage the activities of the motherboard components.  Data - transferred between peripherals, memory and the CPU. Obviously, the data bus can be a very busy pathway.
  • 12. Number system  A set of values used to represent different quantities is known as Number System  Types of number system 1. Binary - Or base 2. There are only two numbers in binary, 0 and 1. Because computers use a sequence of switches that can be on or off (also called a bit), base 2 works very well for them. Math in base 2 is pathetically simple, but incredibly time consuming 2. Octal - Or base 8. Uses the numbers 0 to 7. There are eight bits in a byte which is used very often in the computer field. (A bit is great, but it's too small to hold any useful data, thus the byte is used.) Math in octal is more complicated than decimal 3. Decimal - Or base 10. Uses the numbers 0-9. I'm sure you're familiar with this system. Computers only display numbers in decimal, they actually do all their work in binary. Math is quite simple with this number system, although some may argue. 4. Hexadecimal - Or base 16. Uses the numbers 0-F. Yes, I said F. Because there are 16 values per place holder, five new numbers had to be created. Those numbers are A, B, C, D, E, and F (Original isn't it?). "A" has a value of 10, "B" is 11, and so on
  • 13. NUMBER SYSTEM SYSTEM BASE DIGITS BINARY 2 01 OCTA L 8 01234567 DECIMAL 10 0123456789 HEXADECIMAL 16 0123456789ABCDE F