SlideShare a Scribd company logo
1 of 22
MICROPROCESSOR INSTRUCTIONS
Dr.R.Hepzi Pramila Devamani,
Assistant Professor of Physics,
V.V.Vanniaperumal College for Women,
Virudhunagar
INTRODUCTION
 An instruction is a command issued in the form
of a bit pattern to perform a given task on a
specified data.
 Each instruction basically consists of two parts,
the first part is called OPCODE and the second as
OPERAND.
 The operand either provides the data or specifies
data to be operated on. The operand can be
specified in a number of ways, it includes:
INTRODUCTION
 8 – bit /16 – bit internal general purpose register
 A memory location
 8 – bit port address/16 – bit memory address
 Implicit operand: the operand is not specified, instead it is
assumed in register.
 A programmer can easily write a program in alphanumeric
symbols instead of zeros and ones.
 Meaningful and easily rememberable symbols are chosen
for the purpose, examples are: ADD for addition, SUB for
subtraction, CMP for comparison etc. Such symbols are
called MNEMONICS.
INTRODUCTION
 A program written in mnemonics is known as assembly
language program.
 The writing of a program in assembly language is much easier
and faster as compared to the writing of a program in machine
language, both assembly language and machine language are
microprocessor-specific.
 A microprocessor-specific language is known as a low-level
language.
 The distinguishing features of an assembly language is that
corresponding to one mnemonic, there is only one machine
code.
 On the other hand, corresponding to one statement of a high-
level language, there is a number of machine codes.
INSTRUCTION FORMAT (INSTRUCTION WORD SIZE)
 An instruction is a command to the microprocessor to
perform a given task on specified data.The 8085
instruction set is classified into the following three group
according to word size or byte size:
 1-byte instructions
 2-byte instructions
 3-byte instructions
 In the 8085, ‘byte’ and ‘word’ are synonymous because it
is an 8-bit microprocessor. However, instructions are
commonly referred to in terms of byte rather than words.
In all instructions the first byte is always the opcode,
while remaining are operands.
ONE – BYTE INSTRUCTIONS
 In a 1 –byte instruction, there is only one Hex code, known as a
Opcode or machine code.
 Such type instructions include the opcode and operand in the
same byte. For example:
 These instructions are one-byte instructions having only one
hex code each, known as opcode, performing three different
tasks.
 In the first instructions both operand registers are specified.
 In the second instruction, the operand B is specified and the
other operand accumulator is assumed.
 Similarly, in the third instructiion, the accumulator is assumed
to be the implicit operand. These instrucions require one
memory location each, stored in 8 – bit binary format in
memory.
ONE – BYTE INSTRUCTIONS
TWO – BYTE INSTRUCTIONS
 In a 2 – byte instruction, the first byte specifies
the operation code (opcode) and the second byte
specifies the operand. For example:
 These instructions would require two memory
locations each to store the hex code. The data
bytes 45H are taken arbitrarily as examples.
TWO – BYTE INSTRUCTIONS
THREE – BYTES INSTRUCTIONS
 In a 3 – bytes instruction, the first byte specified
the opcode and the rest – two bytes specifies the
16 – bit address. Note the second byte is the low-
order address and the third byte is the high-order
address. For example:
 These instructions would rquire three memory
location each to store the hex codes. The 16-bit
address F050 and F070H are taken arbitrarity as
example:
THREE – BYTES INSTRUCTIONS
OPCODE FORMAT
 The microprocessor 8085 has has 8-bit opcode. To
understand, how a opcode is designed/formated in
microprocessor. We need to specify all operation codes
(opcode) in binary format and 8-bits are divided in various
groups. The opcode is unique for each instruction and
contains the information about operation register to be
used, memory to be used, etc.
 The microprocessor 8085 identifies, all operation, registers
and status flags with a specific code, known as opcode.
For example, all internal registers are identified as follows:
 There is different code for each operation. Some of the
operation codes are identified as follows:
OPCODE FORMAT
OPCODE FORMAT
OPCODE FORMAT
DATA FORMAT
 The 8085 is an 8-bit microprocessor and it can
process only binary numbers.
 However, the real world operates in decimal number
and languages of alphabets and characters.
 Therefore, it is needed to code binary number into
different media.
 In 8-bit microprocessor system, commonly used
codes and data formats are ASCII,BCD,HC,Signed
integer and unsigned integer. They are explained as
follows:
ASCII CODE
 The ASCII stands for American Standard Code for
Information Interchange: it is pronounced as “ask-
ee”.
 It is a 7-bit alphanumeric code that represents
decimal numbers, English alphabets and
nonprintable characters such as carriage return.
 The ASCII code is widely used in small computers,
peripherals, instruments and communication devices.
 Extended ASCII is an 8-bit code. The additional
number (beyond 7-bit ASCIIcode) represents
graphical characters.
ASCII CODE
BCD CODE
 The term BCD stands for binary-coded decimal,
it is used for decimal numbers (0 to 9 digit), are
represented by four binary bits (from 0000 to
1001).
 The remaining numbers, 1010 (A) to 1111 (F), are
considered invalid. An 8-bit register in the 8085
MP can accommodate two BCD numbers.
HEX CODE (HC)
 Hex code is widely used with computers and other
digital systems.
 The base of hex code is 16. the digit from 0 to 9 are
same as those of the decimal numbers.
 In this code 10 is represented by A, 11by B, 12 by C,
13 by D, 14 by E and 15 by F.
 The decimal number 16 is represented by 10H, 17 by
11H, 18 by 12H, 32 by 20H, 33 by 21H and so on.
 An 8-bit register in the 8085 MP (microprocessor)
can accommodate two hex code numbers.
SIGNED INTEGER
 A signed integer is either a positive number or a negative
number.
 In an 8-bit processor, the most significant digit, D7 is used
for the sign, 0 represents the positive sign and 1 represents
the negative sign.
 Therefore, the largest positive integer that can be processed
by the 8085 is 0111 1111 (7FH): the remaining hex
numbers,80H to FFH are considered as negative numbers.
 However, all negative numbers in 8085 microprocessor are
represented in 2’s compliment format.
UNSIGNED INTEGER
 An integer without a sign can be represented by
all the 8-bits in a microprocessor register.
 Therefore, the largest number that can be
processed at one time is FFH.

More Related Content

What's hot

Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Swati Watve-Phadke
 
Instruction set-of-8085
Instruction set-of-8085Instruction set-of-8085
Instruction set-of-8085saleForce
 
Assembly language i
Assembly language iAssembly language i
Assembly language iVivek Kumar
 
8085 instruction set (detailed)
8085 instruction set (detailed)8085 instruction set (detailed)
8085 instruction set (detailed)Ravi Anand
 
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSORARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSORRamaPrabha24
 
Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085Shubham Singh
 
Code Conversion in 8085 Microprocessor
Code Conversion in 8085 MicroprocessorCode Conversion in 8085 Microprocessor
Code Conversion in 8085 MicroprocessorMOHIT AGARWAL
 
Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310DHEERAJ DHAKAR
 
Programming with 8085-Microprocessor and interfacing
Programming with 8085-Microprocessor and interfacingProgramming with 8085-Microprocessor and interfacing
Programming with 8085-Microprocessor and interfacingAmitabh Shukla
 
Lecture1 The 8085 Microprocessor
Lecture1 The 8085 MicroprocessorLecture1 The 8085 Microprocessor
Lecture1 The 8085 MicroprocessorZeeshan Ahmed
 
Lecture 02 Data Group of Instructions
Lecture 02 Data Group of InstructionsLecture 02 Data Group of Instructions
Lecture 02 Data Group of InstructionsZeeshan Ahmed
 
Instruction set 8085
Instruction set 8085Instruction set 8085
Instruction set 8085varun sukheja
 
Lecture 03 Arithmetic Group of Instructions
Lecture 03 Arithmetic Group of InstructionsLecture 03 Arithmetic Group of Instructions
Lecture 03 Arithmetic Group of InstructionsZeeshan Ahmed
 
Microprocessor 8085 addition of two decimal number
Microprocessor 8085 addition of two decimal numberMicroprocessor 8085 addition of two decimal number
Microprocessor 8085 addition of two decimal numberSukanta Dutta
 
Chapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional InstructionsChapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional Instructionscmkandemir
 

What's hot (19)

Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02
 
Instruction set-of-8085
Instruction set-of-8085Instruction set-of-8085
Instruction set-of-8085
 
Assembly language i
Assembly language iAssembly language i
Assembly language i
 
8085 instruction set (detailed)
8085 instruction set (detailed)8085 instruction set (detailed)
8085 instruction set (detailed)
 
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSORARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
 
Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085Chapter 3 instruction set-of-8085
Chapter 3 instruction set-of-8085
 
Code Conversion in 8085 Microprocessor
Code Conversion in 8085 MicroprocessorCode Conversion in 8085 Microprocessor
Code Conversion in 8085 Microprocessor
 
Some advanced instructions of the 8085 microprocessors
Some advanced instructions of the 8085 microprocessorsSome advanced instructions of the 8085 microprocessors
Some advanced instructions of the 8085 microprocessors
 
Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310
 
8085 micro processor
8085 micro processor8085 micro processor
8085 micro processor
 
Programming with 8085-Microprocessor and interfacing
Programming with 8085-Microprocessor and interfacingProgramming with 8085-Microprocessor and interfacing
Programming with 8085-Microprocessor and interfacing
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Lecture1 The 8085 Microprocessor
Lecture1 The 8085 MicroprocessorLecture1 The 8085 Microprocessor
Lecture1 The 8085 Microprocessor
 
Lecture 02 Data Group of Instructions
Lecture 02 Data Group of InstructionsLecture 02 Data Group of Instructions
Lecture 02 Data Group of Instructions
 
Instruction set 8085
Instruction set 8085Instruction set 8085
Instruction set 8085
 
Lecture 03 Arithmetic Group of Instructions
Lecture 03 Arithmetic Group of InstructionsLecture 03 Arithmetic Group of Instructions
Lecture 03 Arithmetic Group of Instructions
 
Microprocessor 8085 addition of two decimal number
Microprocessor 8085 addition of two decimal numberMicroprocessor 8085 addition of two decimal number
Microprocessor 8085 addition of two decimal number
 
Instruction set
Instruction setInstruction set
Instruction set
 
Chapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional InstructionsChapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional Instructions
 

Similar to Microprocessor instructions

Microprocessor and microcontroller (MPMC).pdf
Microprocessor and microcontroller (MPMC).pdfMicroprocessor and microcontroller (MPMC).pdf
Microprocessor and microcontroller (MPMC).pdfXyzjakhaAbhuvs
 
Intel µp instruction encoding and decoding
Intel µp instruction encoding and decodingIntel µp instruction encoding and decoding
Intel µp instruction encoding and decodingyocirem
 
Unit 2 Instruction set.pdf
Unit 2 Instruction set.pdfUnit 2 Instruction set.pdf
Unit 2 Instruction set.pdfHimanshuPant41
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085ShivamSood22
 
digital communication,micro processor,pulse and digital circuits
digital communication,micro processor,pulse and digital circuitsdigital communication,micro processor,pulse and digital circuits
digital communication,micro processor,pulse and digital circuitsManasa Mona
 
Mpmc unit 1 notes
Mpmc unit 1 notesMpmc unit 1 notes
Mpmc unit 1 notespavihari
 
Assembly language programming(unit 4)
Assembly language programming(unit 4)Assembly language programming(unit 4)
Assembly language programming(unit 4)Ashim Saha
 
8051 data type and directives
8051 data type and directives8051 data type and directives
8051 data type and directivesSARITHA REDDY
 
8051 data types and directives
8051 data types and directives8051 data types and directives
8051 data types and directivesSARITHA REDDY
 
microprocessor_part_3_compressed_1588259301.pdf
microprocessor_part_3_compressed_1588259301.pdfmicroprocessor_part_3_compressed_1588259301.pdf
microprocessor_part_3_compressed_1588259301.pdfssuserd21262
 
Programming with 8085.pptx
Programming with 8085.pptxProgramming with 8085.pptx
Programming with 8085.pptxSachinKupade
 
Z 80 processors (History-Products)
Z 80 processors (History-Products)Z 80 processors (History-Products)
Z 80 processors (History-Products)Mohammed Hilal
 

Similar to Microprocessor instructions (20)

Pdemodule 4
Pdemodule 4Pdemodule 4
Pdemodule 4
 
8086 Microprocessor
8086 Microprocessor8086 Microprocessor
8086 Microprocessor
 
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
 
Intel µp instruction encoding and decoding
Intel µp instruction encoding and decodingIntel µp instruction encoding and decoding
Intel µp instruction encoding and decoding
 
Unit 2 Instruction set.pdf
Unit 2 Instruction set.pdfUnit 2 Instruction set.pdf
Unit 2 Instruction set.pdf
 
Advanced micro -processor
Advanced micro -processorAdvanced micro -processor
Advanced micro -processor
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
digital communication,micro processor,pulse and digital circuits
digital communication,micro processor,pulse and digital circuitsdigital communication,micro processor,pulse and digital circuits
digital communication,micro processor,pulse and digital circuits
 
Mpmc unit 1 notes
Mpmc unit 1 notesMpmc unit 1 notes
Mpmc unit 1 notes
 
Assembly language programming(unit 4)
Assembly language programming(unit 4)Assembly language programming(unit 4)
Assembly language programming(unit 4)
 
EE8551 MPMC
EE8551  MPMCEE8551  MPMC
EE8551 MPMC
 
8051 data type and directives
8051 data type and directives8051 data type and directives
8051 data type and directives
 
8051 data types and directives
8051 data types and directives8051 data types and directives
8051 data types and directives
 
8085
80858085
8085
 
8085 archi
8085 archi8085 archi
8085 archi
 
microprocessor_part_3_compressed_1588259301.pdf
microprocessor_part_3_compressed_1588259301.pdfmicroprocessor_part_3_compressed_1588259301.pdf
microprocessor_part_3_compressed_1588259301.pdf
 
Programming with 8085.pptx
Programming with 8085.pptxProgramming with 8085.pptx
Programming with 8085.pptx
 
Z 80 processors (History-Products)
Z 80 processors (History-Products)Z 80 processors (History-Products)
Z 80 processors (History-Products)
 
Instruction.pdf
Instruction.pdfInstruction.pdf
Instruction.pdf
 

More from hepzijustin

TRANSDUCER INTRODUCTION AND TYPES OF TRANSDUCERS.pptx
TRANSDUCER INTRODUCTION AND TYPES OF TRANSDUCERS.pptxTRANSDUCER INTRODUCTION AND TYPES OF TRANSDUCERS.pptx
TRANSDUCER INTRODUCTION AND TYPES OF TRANSDUCERS.pptxhepzijustin
 
Single Channel Data Acquisition System.pptx
Single Channel Data Acquisition System.pptxSingle Channel Data Acquisition System.pptx
Single Channel Data Acquisition System.pptxhepzijustin
 
Resolving power of Prism Brief Theory .pptx
Resolving power  of Prism Brief Theory .pptxResolving power  of Prism Brief Theory .pptx
Resolving power of Prism Brief Theory .pptxhepzijustin
 
RESOLVING POWER OF A PLANE DIFFRACTION GRATING THEORY.pptx
RESOLVING POWER OF A PLANE DIFFRACTION GRATING THEORY.pptxRESOLVING POWER OF A PLANE DIFFRACTION GRATING THEORY.pptx
RESOLVING POWER OF A PLANE DIFFRACTION GRATING THEORY.pptxhepzijustin
 
LINEAR VARIABLE DIFFERENTIAL TRANSDUCER.pptx
LINEAR VARIABLE DIFFERENTIAL TRANSDUCER.pptxLINEAR VARIABLE DIFFERENTIAL TRANSDUCER.pptx
LINEAR VARIABLE DIFFERENTIAL TRANSDUCER.pptxhepzijustin
 
Inverted R-2R Ladder Digital to Analog Converter.pptx
Inverted R-2R Ladder Digital to Analog Converter.pptxInverted R-2R Ladder Digital to Analog Converter.pptx
Inverted R-2R Ladder Digital to Analog Converter.pptxhepzijustin
 
What is Digital to Analog Conversion .ppt
What is Digital to Analog Conversion .pptWhat is Digital to Analog Conversion .ppt
What is Digital to Analog Conversion .ppthepzijustin
 
Digital Data Acquisition System Intro.pptx
Digital Data Acquisition System Intro.pptxDigital Data Acquisition System Intro.pptx
Digital Data Acquisition System Intro.pptxhepzijustin
 
R/2R Ladder Digital to Analog Converter.pptx
R/2R Ladder Digital to Analog Converter.pptxR/2R Ladder Digital to Analog Converter.pptx
R/2R Ladder Digital to Analog Converter.pptxhepzijustin
 
Comparison of prism and grating spectra.pptx
Comparison of prism and grating spectra.pptxComparison of prism and grating spectra.pptx
Comparison of prism and grating spectra.pptxhepzijustin
 
characteristics of transducers accuracy linearity
characteristics of transducers accuracy linearitycharacteristics of transducers accuracy linearity
characteristics of transducers accuracy linearityhepzijustin
 
Analog to digital conversion techniques.pptx
Analog to digital conversion techniques.pptxAnalog to digital conversion techniques.pptx
Analog to digital conversion techniques.pptxhepzijustin
 
Successive Approximation ADC.pptx
Successive Approximation ADC.pptxSuccessive Approximation ADC.pptx
Successive Approximation ADC.pptxhepzijustin
 
Dual Slope ADC.pptx
Dual Slope ADC.pptxDual Slope ADC.pptx
Dual Slope ADC.pptxhepzijustin
 
Single Slope ADC.pptx
Single Slope ADC.pptxSingle Slope ADC.pptx
Single Slope ADC.pptxhepzijustin
 
Analog to Digital Converter .pptx
Analog to Digital Converter .pptxAnalog to Digital Converter .pptx
Analog to Digital Converter .pptxhepzijustin
 
Basic Principle of signal display.pptx
Basic Principle of signal display.pptxBasic Principle of signal display.pptx
Basic Principle of signal display.pptxhepzijustin
 
Structure of Telephone System.pptx
Structure of Telephone System.pptxStructure of Telephone System.pptx
Structure of Telephone System.pptxhepzijustin
 
Torque Acting on a coil placed in a rotating magnetic field.pptx
Torque Acting on a coil placed in a rotating magnetic field.pptxTorque Acting on a coil placed in a rotating magnetic field.pptx
Torque Acting on a coil placed in a rotating magnetic field.pptxhepzijustin
 
Ring Counter.pptx
Ring Counter.pptxRing Counter.pptx
Ring Counter.pptxhepzijustin
 

More from hepzijustin (20)

TRANSDUCER INTRODUCTION AND TYPES OF TRANSDUCERS.pptx
TRANSDUCER INTRODUCTION AND TYPES OF TRANSDUCERS.pptxTRANSDUCER INTRODUCTION AND TYPES OF TRANSDUCERS.pptx
TRANSDUCER INTRODUCTION AND TYPES OF TRANSDUCERS.pptx
 
Single Channel Data Acquisition System.pptx
Single Channel Data Acquisition System.pptxSingle Channel Data Acquisition System.pptx
Single Channel Data Acquisition System.pptx
 
Resolving power of Prism Brief Theory .pptx
Resolving power  of Prism Brief Theory .pptxResolving power  of Prism Brief Theory .pptx
Resolving power of Prism Brief Theory .pptx
 
RESOLVING POWER OF A PLANE DIFFRACTION GRATING THEORY.pptx
RESOLVING POWER OF A PLANE DIFFRACTION GRATING THEORY.pptxRESOLVING POWER OF A PLANE DIFFRACTION GRATING THEORY.pptx
RESOLVING POWER OF A PLANE DIFFRACTION GRATING THEORY.pptx
 
LINEAR VARIABLE DIFFERENTIAL TRANSDUCER.pptx
LINEAR VARIABLE DIFFERENTIAL TRANSDUCER.pptxLINEAR VARIABLE DIFFERENTIAL TRANSDUCER.pptx
LINEAR VARIABLE DIFFERENTIAL TRANSDUCER.pptx
 
Inverted R-2R Ladder Digital to Analog Converter.pptx
Inverted R-2R Ladder Digital to Analog Converter.pptxInverted R-2R Ladder Digital to Analog Converter.pptx
Inverted R-2R Ladder Digital to Analog Converter.pptx
 
What is Digital to Analog Conversion .ppt
What is Digital to Analog Conversion .pptWhat is Digital to Analog Conversion .ppt
What is Digital to Analog Conversion .ppt
 
Digital Data Acquisition System Intro.pptx
Digital Data Acquisition System Intro.pptxDigital Data Acquisition System Intro.pptx
Digital Data Acquisition System Intro.pptx
 
R/2R Ladder Digital to Analog Converter.pptx
R/2R Ladder Digital to Analog Converter.pptxR/2R Ladder Digital to Analog Converter.pptx
R/2R Ladder Digital to Analog Converter.pptx
 
Comparison of prism and grating spectra.pptx
Comparison of prism and grating spectra.pptxComparison of prism and grating spectra.pptx
Comparison of prism and grating spectra.pptx
 
characteristics of transducers accuracy linearity
characteristics of transducers accuracy linearitycharacteristics of transducers accuracy linearity
characteristics of transducers accuracy linearity
 
Analog to digital conversion techniques.pptx
Analog to digital conversion techniques.pptxAnalog to digital conversion techniques.pptx
Analog to digital conversion techniques.pptx
 
Successive Approximation ADC.pptx
Successive Approximation ADC.pptxSuccessive Approximation ADC.pptx
Successive Approximation ADC.pptx
 
Dual Slope ADC.pptx
Dual Slope ADC.pptxDual Slope ADC.pptx
Dual Slope ADC.pptx
 
Single Slope ADC.pptx
Single Slope ADC.pptxSingle Slope ADC.pptx
Single Slope ADC.pptx
 
Analog to Digital Converter .pptx
Analog to Digital Converter .pptxAnalog to Digital Converter .pptx
Analog to Digital Converter .pptx
 
Basic Principle of signal display.pptx
Basic Principle of signal display.pptxBasic Principle of signal display.pptx
Basic Principle of signal display.pptx
 
Structure of Telephone System.pptx
Structure of Telephone System.pptxStructure of Telephone System.pptx
Structure of Telephone System.pptx
 
Torque Acting on a coil placed in a rotating magnetic field.pptx
Torque Acting on a coil placed in a rotating magnetic field.pptxTorque Acting on a coil placed in a rotating magnetic field.pptx
Torque Acting on a coil placed in a rotating magnetic field.pptx
 
Ring Counter.pptx
Ring Counter.pptxRing Counter.pptx
Ring Counter.pptx
 

Recently uploaded

MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
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
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
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
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
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
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
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
 

Recently uploaded (20)

MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
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
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
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
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
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
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
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
 

Microprocessor instructions

  • 1. MICROPROCESSOR INSTRUCTIONS Dr.R.Hepzi Pramila Devamani, Assistant Professor of Physics, V.V.Vanniaperumal College for Women, Virudhunagar
  • 2. INTRODUCTION  An instruction is a command issued in the form of a bit pattern to perform a given task on a specified data.  Each instruction basically consists of two parts, the first part is called OPCODE and the second as OPERAND.  The operand either provides the data or specifies data to be operated on. The operand can be specified in a number of ways, it includes:
  • 3. INTRODUCTION  8 – bit /16 – bit internal general purpose register  A memory location  8 – bit port address/16 – bit memory address  Implicit operand: the operand is not specified, instead it is assumed in register.  A programmer can easily write a program in alphanumeric symbols instead of zeros and ones.  Meaningful and easily rememberable symbols are chosen for the purpose, examples are: ADD for addition, SUB for subtraction, CMP for comparison etc. Such symbols are called MNEMONICS.
  • 4. INTRODUCTION  A program written in mnemonics is known as assembly language program.  The writing of a program in assembly language is much easier and faster as compared to the writing of a program in machine language, both assembly language and machine language are microprocessor-specific.  A microprocessor-specific language is known as a low-level language.  The distinguishing features of an assembly language is that corresponding to one mnemonic, there is only one machine code.  On the other hand, corresponding to one statement of a high- level language, there is a number of machine codes.
  • 5. INSTRUCTION FORMAT (INSTRUCTION WORD SIZE)  An instruction is a command to the microprocessor to perform a given task on specified data.The 8085 instruction set is classified into the following three group according to word size or byte size:  1-byte instructions  2-byte instructions  3-byte instructions  In the 8085, ‘byte’ and ‘word’ are synonymous because it is an 8-bit microprocessor. However, instructions are commonly referred to in terms of byte rather than words. In all instructions the first byte is always the opcode, while remaining are operands.
  • 6. ONE – BYTE INSTRUCTIONS  In a 1 –byte instruction, there is only one Hex code, known as a Opcode or machine code.  Such type instructions include the opcode and operand in the same byte. For example:  These instructions are one-byte instructions having only one hex code each, known as opcode, performing three different tasks.  In the first instructions both operand registers are specified.  In the second instruction, the operand B is specified and the other operand accumulator is assumed.  Similarly, in the third instructiion, the accumulator is assumed to be the implicit operand. These instrucions require one memory location each, stored in 8 – bit binary format in memory.
  • 7. ONE – BYTE INSTRUCTIONS
  • 8. TWO – BYTE INSTRUCTIONS  In a 2 – byte instruction, the first byte specifies the operation code (opcode) and the second byte specifies the operand. For example:  These instructions would require two memory locations each to store the hex code. The data bytes 45H are taken arbitrarily as examples.
  • 9. TWO – BYTE INSTRUCTIONS
  • 10. THREE – BYTES INSTRUCTIONS  In a 3 – bytes instruction, the first byte specified the opcode and the rest – two bytes specifies the 16 – bit address. Note the second byte is the low- order address and the third byte is the high-order address. For example:  These instructions would rquire three memory location each to store the hex codes. The 16-bit address F050 and F070H are taken arbitrarity as example:
  • 11. THREE – BYTES INSTRUCTIONS
  • 12. OPCODE FORMAT  The microprocessor 8085 has has 8-bit opcode. To understand, how a opcode is designed/formated in microprocessor. We need to specify all operation codes (opcode) in binary format and 8-bits are divided in various groups. The opcode is unique for each instruction and contains the information about operation register to be used, memory to be used, etc.  The microprocessor 8085 identifies, all operation, registers and status flags with a specific code, known as opcode. For example, all internal registers are identified as follows:  There is different code for each operation. Some of the operation codes are identified as follows:
  • 16. DATA FORMAT  The 8085 is an 8-bit microprocessor and it can process only binary numbers.  However, the real world operates in decimal number and languages of alphabets and characters.  Therefore, it is needed to code binary number into different media.  In 8-bit microprocessor system, commonly used codes and data formats are ASCII,BCD,HC,Signed integer and unsigned integer. They are explained as follows:
  • 17. ASCII CODE  The ASCII stands for American Standard Code for Information Interchange: it is pronounced as “ask- ee”.  It is a 7-bit alphanumeric code that represents decimal numbers, English alphabets and nonprintable characters such as carriage return.  The ASCII code is widely used in small computers, peripherals, instruments and communication devices.  Extended ASCII is an 8-bit code. The additional number (beyond 7-bit ASCIIcode) represents graphical characters.
  • 19. BCD CODE  The term BCD stands for binary-coded decimal, it is used for decimal numbers (0 to 9 digit), are represented by four binary bits (from 0000 to 1001).  The remaining numbers, 1010 (A) to 1111 (F), are considered invalid. An 8-bit register in the 8085 MP can accommodate two BCD numbers.
  • 20. HEX CODE (HC)  Hex code is widely used with computers and other digital systems.  The base of hex code is 16. the digit from 0 to 9 are same as those of the decimal numbers.  In this code 10 is represented by A, 11by B, 12 by C, 13 by D, 14 by E and 15 by F.  The decimal number 16 is represented by 10H, 17 by 11H, 18 by 12H, 32 by 20H, 33 by 21H and so on.  An 8-bit register in the 8085 MP (microprocessor) can accommodate two hex code numbers.
  • 21. SIGNED INTEGER  A signed integer is either a positive number or a negative number.  In an 8-bit processor, the most significant digit, D7 is used for the sign, 0 represents the positive sign and 1 represents the negative sign.  Therefore, the largest positive integer that can be processed by the 8085 is 0111 1111 (7FH): the remaining hex numbers,80H to FFH are considered as negative numbers.  However, all negative numbers in 8085 microprocessor are represented in 2’s compliment format.
  • 22. UNSIGNED INTEGER  An integer without a sign can be represented by all the 8-bits in a microprocessor register.  Therefore, the largest number that can be processed at one time is FFH.