SlideShare a Scribd company logo
Assembly Language
What is Assembly Language?
Each personal computer has a microprocessor that manages the computer's arithmetical, logical and
control activities.
Each family of processors has its own set of instructions for handling various operations like getting
input from keyboard, displaying information on screen and performing various other jobs. These set of
instructions are called 'machine language instructions'.
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. So, the low-level
assembly language is designed for a specific family of processors that represents various instructions in
symbolic code and a more understandable form.
Advantages of Assembly Language
An understanding of assembly language provides knowledge of:
 Interface of programs with OS, processor and BIOS;
 Representation of data in memory and other external devices;
 How processor accesses and executes instruction;
 How instructions access and process data;
 How a program accesses external devices.
Other advantages of using assembly language are:
 It requires less memory and execution time;
 It allows hardware-specific complex jobs in an easier way;
 It is suitable for time-critical jobs;
 It is most suitable for writing interrupt service routines and other memory resident programs.
Basic Features of PC Hardware
The main internal hardware of a PC consists of the processor, memory and the registers. The
registers are processor components that hold data and address. To execute a program, the system copies it
from the external device into the internal memory. The processor executes the program instructions.
The fundamental unit of computer storage is a bit; it could be on (1) or off (0). A group of nine
related bits makes a byte. Eight bits are used for data and the last one is used for parity. According to the
rule of parity, number of bits that are on (1) in each byte should always be odd.
So, the parity bit is used to make the number of bits in a byte odd. If the parity is even, the system
assumes that there had been a parity error (though rare) which might have caused due to hardware fault or
electrical disturbance.
The processor supports the following data sizes:
 Word: a 2-byte data item
 Doubleword: a 4-byte (32 bit) data item
 Quadword: an 8-byte (64 bit) data item
 Paragraph: a 16-byte (128 bit) area
 Kilobyte: 1024 bytes
 Megabyte: 1,048,576 bytes
Addressing Data in Memory
The process through which the processor controls the execution of instructions is referred as the fetch-
decode-execute cycle or the execution cycle. It consists of three continuous steps:
 Fetching the instruction from memory
 Decoding or identifying the instruction
 Executing the instruction
The processor may access one or more bytes of memory at a time. Let us consider a hexadecimal
number 0725H. This number will require two bytes of memory. The high-order byte or most significant
byte is 07 and the low-order byte is 25.
The processor stores data in reverse-byte sequence, i.e., the low-order byte is stored in low
memory address and high-order byte in high memory address. So if processor brings the value 0725H
from register to memory, it will transfer 25 first to the lower memory address and 07 to the next memory
address.
x: memory address
When the processor gets the numeric data from memory to register, it again reverses the bytes.
There are two kinds of memory addresses:
 An absolute address - a direct reference of specific location.
 The segment address (or offset) - starting address of a memory segment with the offset value.

More Related Content

PPTX
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Embedded Systems Memory
PPTX
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Embeded Hardware
PPTX
Processor Basics
PPTX
8086 Interrupts & With DOS and BIOS by vijay
PPTX
Computer Evolution
PPTX
Input Output - Computer Architecture
PPT
Computer organisation
PPT
Unit3 input
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Embedded Systems Memory
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Embeded Hardware
Processor Basics
8086 Interrupts & With DOS and BIOS by vijay
Computer Evolution
Input Output - Computer Architecture
Computer organisation
Unit3 input

What's hot (20)

PDF
What is CPU Register? Type of CPU Register.
PPTX
Input & Output
PDF
N_Asm Assembly registers (sol)
PPT
Advanced micro -processor
PPTX
DOCX
8085 interfacing with memory chips
PPTX
PPTX
Unit2fit
DOCX
Input output
PDF
Computer Organization
PPTX
Register & Memory
PDF
Bca examination 2015 csa
PPTX
Hardware I/O organization
PPT
Chapter 6 input output
PPT
Introduction to Interfacing Technique
PPTX
Computer organization
PPTX
Io processing
PPT
B.sc cs-ii-u-2.2-overview of register transfer, micro operations and basic co...
PPT
Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...
PDF
Computer organiztion5
What is CPU Register? Type of CPU Register.
Input & Output
N_Asm Assembly registers (sol)
Advanced micro -processor
8085 interfacing with memory chips
Unit2fit
Input output
Computer Organization
Register & Memory
Bca examination 2015 csa
Hardware I/O organization
Chapter 6 input output
Introduction to Interfacing Technique
Computer organization
Io processing
B.sc cs-ii-u-2.2-overview of register transfer, micro operations and basic co...
Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...
Computer organiztion5
Ad

Viewers also liked (9)

PDF
8085 instruction set
PPTX
Microcontroller (8051) by K. Vijay Kumar
PPTX
Embedded System Real Time Operating System (ERTS) I unit by vijay
PPT
Origin of Microprocessor and Classification of Microprocessor
PPTX
8085 addressing modes
PPTX
8254 Programmable Interval Timer by vijay
PPTX
8051 microcontroller by K. Vijay Kumar
PPTX
Interfacing of 8255 IC By Er. Swapnil Kaware.
PPTX
Interrupts on 8086 microprocessor by vijay kumar.k
8085 instruction set
Microcontroller (8051) by K. Vijay Kumar
Embedded System Real Time Operating System (ERTS) I unit by vijay
Origin of Microprocessor and Classification of Microprocessor
8085 addressing modes
8254 Programmable Interval Timer by vijay
8051 microcontroller by K. Vijay Kumar
Interfacing of 8255 IC By Er. Swapnil Kaware.
Interrupts on 8086 microprocessor by vijay kumar.k
Ad

Similar to Assembly Language (20)

PPTX
introduction to computer engineering for beginner
PPT
Chapter 1
PDF
Unit 3 - Computer Organization .pdf
PPT
isa architecture
PPT
comp. org Chapter 1
PPTX
UNIT -1 COMPUTER ORGANIZATION (1).pptxxc
PPT
Micro[processor
PPTX
Transforming Data into Information
PDF
Computer organization basics
PPT
fundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.ppt
PPT
fundamentalofcomputers-postaldeptt-150308230655-conversion-gate01 (1).ppt
PPT
Fundamental of Computers
PPT
ITBIS105 6
PDF
fundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.pdf
DOC
Processing Data
PPTX
Computer Fundamentals.pptx
PDF
CPE UNIT I.pdf c Programming for engineers
PPTX
Computer Organization and Architecture presentation
PPTX
Unit IV Fundamentals of Computer Organization.pptx
PDF
8085 microprocessor ramesh gaonkar
introduction to computer engineering for beginner
Chapter 1
Unit 3 - Computer Organization .pdf
isa architecture
comp. org Chapter 1
UNIT -1 COMPUTER ORGANIZATION (1).pptxxc
Micro[processor
Transforming Data into Information
Computer organization basics
fundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.ppt
fundamentalofcomputers-postaldeptt-150308230655-conversion-gate01 (1).ppt
Fundamental of Computers
ITBIS105 6
fundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.pdf
Processing Data
Computer Fundamentals.pptx
CPE UNIT I.pdf c Programming for engineers
Computer Organization and Architecture presentation
Unit IV Fundamentals of Computer Organization.pptx
8085 microprocessor ramesh gaonkar

More from Vijay Kumar (14)

DOCX
Instruction set of 8086
PDF
8086 Microprocessor
PDF
8085 instruction set and addressing modes
PDF
8085 microprocessor Architecture and pin description
PDF
8085 microprocessor Architecture and Pin description
PDF
8086 Microprocessor Instruction set
PDF
Input output devices
PDF
Microprocessors evolution introduction to microprocessor
PDF
Memory types
PDF
Memory
PDF
Evolution of INTEL Microprocessor
PDF
Rs 232 & usb ieee1394 communication
PDF
Embedded real time-systems communication
PPTX
8259 Programmable Interrupt Controller by vijay
Instruction set of 8086
8086 Microprocessor
8085 instruction set and addressing modes
8085 microprocessor Architecture and pin description
8085 microprocessor Architecture and Pin description
8086 Microprocessor Instruction set
Input output devices
Microprocessors evolution introduction to microprocessor
Memory types
Memory
Evolution of INTEL Microprocessor
Rs 232 & usb ieee1394 communication
Embedded real time-systems communication
8259 Programmable Interrupt Controller by vijay

Recently uploaded (20)

PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
composite construction of structures.pdf
PPTX
Geodesy 1.pptx...............................................
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPT
Mechanical Engineering MATERIALS Selection
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
bas. eng. economics group 4 presentation 1.pptx
Lecture Notes Electrical Wiring System Components
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Internet of Things (IOT) - A guide to understanding
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
composite construction of structures.pdf
Geodesy 1.pptx...............................................
CH1 Production IntroductoryConcepts.pptx
UNIT 4 Total Quality Management .pptx
Model Code of Practice - Construction Work - 21102022 .pdf
Mechanical Engineering MATERIALS Selection
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Foundation to blockchain - A guide to Blockchain Tech
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx

Assembly Language

  • 1. Assembly Language What is Assembly Language? Each personal computer has a microprocessor that manages the computer's arithmetical, logical and control activities. Each family of processors has its own set of instructions for handling various operations like getting input from keyboard, displaying information on screen and performing various other jobs. These set of instructions are called 'machine language instructions'. 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. So, the low-level assembly language is designed for a specific family of processors that represents various instructions in symbolic code and a more understandable form. Advantages of Assembly Language An understanding of assembly language provides knowledge of:  Interface of programs with OS, processor and BIOS;  Representation of data in memory and other external devices;  How processor accesses and executes instruction;  How instructions access and process data;  How a program accesses external devices. Other advantages of using assembly language are:  It requires less memory and execution time;  It allows hardware-specific complex jobs in an easier way;  It is suitable for time-critical jobs;  It is most suitable for writing interrupt service routines and other memory resident programs. Basic Features of PC Hardware The main internal hardware of a PC consists of the processor, memory and the registers. The registers are processor components that hold data and address. To execute a program, the system copies it from the external device into the internal memory. The processor executes the program instructions. The fundamental unit of computer storage is a bit; it could be on (1) or off (0). A group of nine related bits makes a byte. Eight bits are used for data and the last one is used for parity. According to the rule of parity, number of bits that are on (1) in each byte should always be odd. So, the parity bit is used to make the number of bits in a byte odd. If the parity is even, the system assumes that there had been a parity error (though rare) which might have caused due to hardware fault or electrical disturbance.
  • 2. The processor supports the following data sizes:  Word: a 2-byte data item  Doubleword: a 4-byte (32 bit) data item  Quadword: an 8-byte (64 bit) data item  Paragraph: a 16-byte (128 bit) area  Kilobyte: 1024 bytes  Megabyte: 1,048,576 bytes Addressing Data in Memory The process through which the processor controls the execution of instructions is referred as the fetch- decode-execute cycle or the execution cycle. It consists of three continuous steps:  Fetching the instruction from memory  Decoding or identifying the instruction  Executing the instruction The processor may access one or more bytes of memory at a time. Let us consider a hexadecimal number 0725H. This number will require two bytes of memory. The high-order byte or most significant byte is 07 and the low-order byte is 25. The processor stores data in reverse-byte sequence, i.e., the low-order byte is stored in low memory address and high-order byte in high memory address. So if processor brings the value 0725H from register to memory, it will transfer 25 first to the lower memory address and 07 to the next memory address. x: memory address When the processor gets the numeric data from memory to register, it again reverses the bytes. There are two kinds of memory addresses:  An absolute address - a direct reference of specific location.  The segment address (or offset) - starting address of a memory segment with the offset value.