SlideShare a Scribd company logo
1 of 14
HAMAR UNIVERSITY
LECTURER : ENG MUSTAF KHALID AHMED ( MK )
COURSE : ASSEMBLY LANGUAGE
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 : Acontrol 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 : AnALU 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 .Aregister 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
Binary - Or base 2. There are only two numbers in binary, 0 and
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
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
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.
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
OCTAL 8 01234567
DECIMAL 10 0123456789
HEXADECIMAL 16 0123456789ABCDE
F
•Thank you
•Any question

More Related Content

Similar to assembly language chapter 1.pptxassembly language chapte

Assembly chapter One.pptx
Assembly chapter One.pptxAssembly chapter One.pptx
Assembly chapter One.pptxssuserb78e291
 
ASSEMBLY LANGUAGE.pptx
ASSEMBLY LANGUAGE.pptxASSEMBLY LANGUAGE.pptx
ASSEMBLY LANGUAGE.pptxEdFeranil
 
Assembly language
Assembly languageAssembly language
Assembly languagegaurav jain
 
Microprocessors Assignment
Microprocessors AssignmentMicroprocessors Assignment
Microprocessors AssignmentRAHUL957367
 
Memory & the fetch decode-execute cycle
Memory & the fetch decode-execute cycleMemory & the fetch decode-execute cycle
Memory & the fetch decode-execute cyclechantellemallia
 
Please send the answers to my email. Mirre06@hotmail.comSomeone se.pdf
Please send the answers to my email. Mirre06@hotmail.comSomeone se.pdfPlease send the answers to my email. Mirre06@hotmail.comSomeone se.pdf
Please send the answers to my email. Mirre06@hotmail.comSomeone se.pdfebrahimbadushata00
 
UNIT 2_ESD.pdf
UNIT 2_ESD.pdfUNIT 2_ESD.pdf
UNIT 2_ESD.pdfSaralaT3
 
Computer capsule ibps_po_2014
Computer capsule ibps_po_2014Computer capsule ibps_po_2014
Computer capsule ibps_po_2014Lucky Saini
 
Assembly Language In Electronics
Assembly Language In ElectronicsAssembly Language In Electronics
Assembly Language In ElectronicsAsaduzzaman Kanok
 
System Programming- Unit I
System Programming- Unit ISystem Programming- Unit I
System Programming- Unit ISaranya1702
 
It tools and buisness system.docx
It tools and buisness system.docxIt tools and buisness system.docx
It tools and buisness system.docxhinditutorialspoint
 
Introduction to Assembly Language Programming
Introduction to Assembly Language ProgrammingIntroduction to Assembly Language Programming
Introduction to Assembly Language ProgrammingRahul P
 
Introduction to uP-Chadasdffpter I-3.ppt
Introduction to uP-Chadasdffpter I-3.pptIntroduction to uP-Chadasdffpter I-3.ppt
Introduction to uP-Chadasdffpter I-3.pptYAGYABAHADURSHAHI
 
Computer and programing basics.pptx
Computer and programing basics.pptxComputer and programing basics.pptx
Computer and programing basics.pptxgaafergoda
 
1 Intro To Micro P
1 Intro To Micro P1 Intro To Micro P
1 Intro To Micro Pikinfad
 
Unit 1 computer architecture (1)
Unit 1   computer architecture (1)Unit 1   computer architecture (1)
Unit 1 computer architecture (1)DevaKumari Vijay
 

Similar to assembly language chapter 1.pptxassembly language chapte (20)

Assembly chapter One.pptx
Assembly chapter One.pptxAssembly chapter One.pptx
Assembly chapter One.pptx
 
ASSEMBLY LANGUAGE.pptx
ASSEMBLY LANGUAGE.pptxASSEMBLY LANGUAGE.pptx
ASSEMBLY LANGUAGE.pptx
 
Lecture 2 - Introductory Concepts
Lecture 2 - Introductory ConceptsLecture 2 - Introductory Concepts
Lecture 2 - Introductory Concepts
 
Assembly language
Assembly languageAssembly language
Assembly language
 
Microprocessors Assignment
Microprocessors AssignmentMicroprocessors Assignment
Microprocessors Assignment
 
Memory & the fetch decode-execute cycle
Memory & the fetch decode-execute cycleMemory & the fetch decode-execute cycle
Memory & the fetch decode-execute cycle
 
Please send the answers to my email. Mirre06@hotmail.comSomeone se.pdf
Please send the answers to my email. Mirre06@hotmail.comSomeone se.pdfPlease send the answers to my email. Mirre06@hotmail.comSomeone se.pdf
Please send the answers to my email. Mirre06@hotmail.comSomeone se.pdf
 
UNIT 2_ESD.pdf
UNIT 2_ESD.pdfUNIT 2_ESD.pdf
UNIT 2_ESD.pdf
 
Computer capsule ibps_po_2014
Computer capsule ibps_po_2014Computer capsule ibps_po_2014
Computer capsule ibps_po_2014
 
Assembly Language In Electronics
Assembly Language In ElectronicsAssembly Language In Electronics
Assembly Language In Electronics
 
System Programming- Unit I
System Programming- Unit ISystem Programming- Unit I
System Programming- Unit I
 
It tools and buisness system.docx
It tools and buisness system.docxIt tools and buisness system.docx
It tools and buisness system.docx
 
Introduction to Assembly Language Programming
Introduction to Assembly Language ProgrammingIntroduction to Assembly Language Programming
Introduction to Assembly Language Programming
 
C with lab
C with labC with lab
C with lab
 
Introduction to uP-Chadasdffpter I-3.ppt
Introduction to uP-Chadasdffpter I-3.pptIntroduction to uP-Chadasdffpter I-3.ppt
Introduction to uP-Chadasdffpter I-3.ppt
 
Computer and programing basics.pptx
Computer and programing basics.pptxComputer and programing basics.pptx
Computer and programing basics.pptx
 
1 Intro To Micro P
1 Intro To Micro P1 Intro To Micro P
1 Intro To Micro P
 
מצגת פרויקט
מצגת פרויקטמצגת פרויקט
מצגת פרויקט
 
Unit 1 computer architecture (1)
Unit 1   computer architecture (1)Unit 1   computer architecture (1)
Unit 1 computer architecture (1)
 
Microprocessor systems (4)
Microprocessor systems (4)Microprocessor systems (4)
Microprocessor systems (4)
 

Recently uploaded

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 

Recently uploaded (20)

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 

assembly language chapter 1.pptxassembly language chapte

  • 1. HAMAR UNIVERSITY LECTURER : ENG MUSTAF KHALID AHMED ( MK ) COURSE : ASSEMBLY LANGUAGE
  • 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 : Acontrol 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 : AnALU 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 .Aregister 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 Binary - Or base 2. There are only two numbers in binary, 0 and 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 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 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. 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 OCTAL 8 01234567 DECIMAL 10 0123456789 HEXADECIMAL 16 0123456789ABCDE F