SlideShare una empresa de Scribd logo
1 de 4
MICROPROCESSORS AND MICROCONTROLLERS

    ASSIGNMENT PRESENTATION – II

              GROUP 8




         ARM INSTRUCTIONS




                           SUBMITTED BY,

                        L.ANITHA (1OL104)

                C.SANDHYA SREE (1OL141)

                  G.SRIRANJANI (1OL144)

                     S.SAVITHA (1OL151)

                 N.D.VARTHANA (1OL155)

                  S.DURGA DEVI (11L405)
INTRODUCTION:

      Advanced RISC Machine

      First RISC microprocessor for commercial purpose

      Used for low-power and cost-sensitive embedded applications

FEATURES:

      All instructions are 32 bits long.

      Most instructions execute in a single cycle.

      Architectural simplicitywhich allows Very small implementations which
       result in Very low power consumption

ARM Instruction types:

                                 Data Processing Instructions
                                 Data Transfer Instructions
                                 Control Flow Instructions

Data Processing Instructions

Data processing instructions to perform arithmetic and logical operations.

These instructions typically require 2 operands and produce a single result.

Ex: ADD r0,r1,r2    ; simply takes the values in 2 reg’s (r1 & r2) , adds them
together , and places the result in a third reg. (r0)

Classified as,

                    Arithmetic operations

                    Bit-wise logical operations

                    Register movement operations

                    Comparison operations
Arithmetic operations

      ADD r0, r1, r2        ; r0  r1 + r2               ; simple addition

      ADC r0, r1, r2        ; r0  r1+r2 + C             ; add with carry

      SUB r0, r1, r2        ; r0  r1-r2          ; subtract

      SBC r0, r1, r2        ; r0  r1 - r2 + C – 1       ; subtract with carry

      RSB r0, r1, r2        ; r0  r2 – r1               ; reverse subtraction

      RSC r0, r1, r2        ; r0  r2-r1+C-1             ; reverse subtract with carry

Bit-wise logical operations

      AND r0, r1, r2        ; r0  r1 AND r2             ; AND operation

      ORR r0, r1, r2        ; r0  r1 OR r2              ; OR operation

      EOR r0, r1, r2        ; r0  r1 XOR r2             ; EXOR operation

      BIS r0, r1, r2        ; r0  r1 AND NOT r2         ; ‘Bit clear’ where every ‘1’ in
      the second operand clears the corresponding bit in the first.

Register movement operations

These instructions ignore the first operand, which is omitted from the assembly
language format, and simply move the second operand to the destination.

      MOV r0, r2                ; r0  r2                ; move operation

      MVN r0, r2                ; r0  not r2            ; move negated

Comparison operations

These instructions do not produce a result but just set the condition code bits in
the CPSR (current program status reg) according to the selected operation.

      CMP CMN r1, r2        ; set cc on r1-r2            ; compare

      TST TEQ          r1, r2        ; set cc on r1+r2          ; compare negated
r1, r2       ; set cc on r1 and r2      ; test(bit)

                     r1, r2       ; set cc on r1 xor r2      ; test equal

Barrel Shifter

      The ARM doesn’t have actual shift instructions.

      Instead it has a barrel shifter which provides a mechanism to carry out
       shifts as part of other instructions.

       LSL : logical shift left by 0 t0 31 places; fill the vacated bits at the least
       significant end of the word with zeros.

       LSR : logical shift right by 0 to 32 places; fill the vacated bits at the most
       significant end of the word with zeros.

       ASL : arithmetic shift left; this is a synonym for LSL

       ASR : arithmetic shift right by 0 to 32 places; fill the vacated bits at the
       most significant end of the word with zeros if the source operand was
       positive, or with ones if the source operand was negative.

Más contenido relacionado

La actualidad más candente

2014/04/26 兆毅資訊 eSignal 產品說明會 (台中場) - prat2
2014/04/26 兆毅資訊 eSignal 產品說明會 (台中場) - prat22014/04/26 兆毅資訊 eSignal 產品說明會 (台中場) - prat2
2014/04/26 兆毅資訊 eSignal 產品說明會 (台中場) - prat2Datanet KC
 
14827 unit 4_clocked_flip_flops
14827 unit 4_clocked_flip_flops14827 unit 4_clocked_flip_flops
14827 unit 4_clocked_flip_flopsSandeep Kumar
 
Lec 09 - Registers and Counters
Lec 09 - Registers and CountersLec 09 - Registers and Counters
Lec 09 - Registers and CountersVajira Thambawita
 
Shift Microoperations by Pir Sarfraz RSDT larkana
Shift Microoperations by Pir Sarfraz RSDT larkanaShift Microoperations by Pir Sarfraz RSDT larkana
Shift Microoperations by Pir Sarfraz RSDT larkanaPir Sarfraz Ahmed
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flopShuaib Hotak
 
Lect2 up370 (100329)
Lect2 up370 (100329)Lect2 up370 (100329)
Lect2 up370 (100329)aicdesign
 
Micro Controller lab basic experiments (1)
Micro Controller lab basic experiments (1)Micro Controller lab basic experiments (1)
Micro Controller lab basic experiments (1)Noor Tahasildar
 
Logic Design - Chapter 2: Logic Gates
Logic Design - Chapter 2: Logic GatesLogic Design - Chapter 2: Logic Gates
Logic Design - Chapter 2: Logic GatesGouda Mando
 
07 Analogue to Digital Converter(ADC).2016
07 Analogue to Digital Converter(ADC).201607 Analogue to Digital Converter(ADC).2016
07 Analogue to Digital Converter(ADC).2016Mohamed Fawzy
 
Cn1 connection details 36pins
Cn1 connection details 36pinsCn1 connection details 36pins
Cn1 connection details 36pinsravi_kaneria
 
คำถามประจำหน่วยที่ 4
คำถามประจำหน่วยที่ 4คำถามประจำหน่วยที่ 4
คำถามประจำหน่วยที่ 43RTFrost_Marc
 
Winter training,Readymade Projects,Buy Projects,Corporate Training
Winter training,Readymade Projects,Buy Projects,Corporate TrainingWinter training,Readymade Projects,Buy Projects,Corporate Training
Winter training,Readymade Projects,Buy Projects,Corporate TrainingTechnogroovy
 

La actualidad más candente (19)

2014/04/26 兆毅資訊 eSignal 產品說明會 (台中場) - prat2
2014/04/26 兆毅資訊 eSignal 產品說明會 (台中場) - prat22014/04/26 兆毅資訊 eSignal 產品說明會 (台中場) - prat2
2014/04/26 兆毅資訊 eSignal 產品說明會 (台中場) - prat2
 
Flip flop
Flip flopFlip flop
Flip flop
 
Flipflop
FlipflopFlipflop
Flipflop
 
Dac s05
Dac s05Dac s05
Dac s05
 
14827 unit 4_clocked_flip_flops
14827 unit 4_clocked_flip_flops14827 unit 4_clocked_flip_flops
14827 unit 4_clocked_flip_flops
 
Ch2 arm-1
Ch2 arm-1Ch2 arm-1
Ch2 arm-1
 
Lec 09 - Registers and Counters
Lec 09 - Registers and CountersLec 09 - Registers and Counters
Lec 09 - Registers and Counters
 
Shift Microoperations by Pir Sarfraz RSDT larkana
Shift Microoperations by Pir Sarfraz RSDT larkanaShift Microoperations by Pir Sarfraz RSDT larkana
Shift Microoperations by Pir Sarfraz RSDT larkana
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
Lect2 up370 (100329)
Lect2 up370 (100329)Lect2 up370 (100329)
Lect2 up370 (100329)
 
Micro Controller lab basic experiments (1)
Micro Controller lab basic experiments (1)Micro Controller lab basic experiments (1)
Micro Controller lab basic experiments (1)
 
Sequenential circuit-dcf
Sequenential circuit-dcfSequenential circuit-dcf
Sequenential circuit-dcf
 
Logic Design - Chapter 2: Logic Gates
Logic Design - Chapter 2: Logic GatesLogic Design - Chapter 2: Logic Gates
Logic Design - Chapter 2: Logic Gates
 
07 Analogue to Digital Converter(ADC).2016
07 Analogue to Digital Converter(ADC).201607 Analogue to Digital Converter(ADC).2016
07 Analogue to Digital Converter(ADC).2016
 
Cn1 connection details 36pins
Cn1 connection details 36pinsCn1 connection details 36pins
Cn1 connection details 36pins
 
Counters
CountersCounters
Counters
 
คำถามประจำหน่วยที่ 4
คำถามประจำหน่วยที่ 4คำถามประจำหน่วยที่ 4
คำถามประจำหน่วยที่ 4
 
Winter training,Readymade Projects,Buy Projects,Corporate Training
Winter training,Readymade Projects,Buy Projects,Corporate TrainingWinter training,Readymade Projects,Buy Projects,Corporate Training
Winter training,Readymade Projects,Buy Projects,Corporate Training
 
D and T Flip Flop
D and T Flip FlopD and T Flip Flop
D and T Flip Flop
 

Destacado

Use Data to Take the Guesswork Out of Marketing
Use Data to Take the Guesswork Out of MarketingUse Data to Take the Guesswork Out of Marketing
Use Data to Take the Guesswork Out of MarketingCustomerLink
 
Introduction to marketing
Introduction to marketingIntroduction to marketing
Introduction to marketingtspach
 
Increases your company output through corporate training
Increases your company output through corporate trainingIncreases your company output through corporate training
Increases your company output through corporate trainingGIO
 
CustomerLink Painted Picture
CustomerLink Painted PictureCustomerLink Painted Picture
CustomerLink Painted PictureCustomerLink
 
Wegmans way retail mgt.
Wegmans way  retail mgt.Wegmans way  retail mgt.
Wegmans way retail mgt.Javed Sida
 
Arc proof 1 sdc007105g0201
Arc proof   1 sdc007105g0201Arc proof   1 sdc007105g0201
Arc proof 1 sdc007105g0201Oswald Ng
 
Inflection in Lexical Morphology
Inflection in Lexical Morphology Inflection in Lexical Morphology
Inflection in Lexical Morphology Putri Anggitawati
 
Project report for exide
Project report for exideProject report for exide
Project report for exideBIPLAB DIKSHIT
 
Business plan _The Tea Arcade
Business plan _The Tea ArcadeBusiness plan _The Tea Arcade
Business plan _The Tea ArcadeJaved Sida
 

Destacado (13)

Spanish 2
Spanish 2Spanish 2
Spanish 2
 
Use Data to Take the Guesswork Out of Marketing
Use Data to Take the Guesswork Out of MarketingUse Data to Take the Guesswork Out of Marketing
Use Data to Take the Guesswork Out of Marketing
 
Certificates
CertificatesCertificates
Certificates
 
Introduction to marketing
Introduction to marketingIntroduction to marketing
Introduction to marketing
 
Increases your company output through corporate training
Increases your company output through corporate trainingIncreases your company output through corporate training
Increases your company output through corporate training
 
Gg1 e ltr
Gg1 e ltrGg1 e ltr
Gg1 e ltr
 
CustomerLink Painted Picture
CustomerLink Painted PictureCustomerLink Painted Picture
CustomerLink Painted Picture
 
Commingsoon
CommingsoonCommingsoon
Commingsoon
 
Wegmans way retail mgt.
Wegmans way  retail mgt.Wegmans way  retail mgt.
Wegmans way retail mgt.
 
Arc proof 1 sdc007105g0201
Arc proof   1 sdc007105g0201Arc proof   1 sdc007105g0201
Arc proof 1 sdc007105g0201
 
Inflection in Lexical Morphology
Inflection in Lexical Morphology Inflection in Lexical Morphology
Inflection in Lexical Morphology
 
Project report for exide
Project report for exideProject report for exide
Project report for exide
 
Business plan _The Tea Arcade
Business plan _The Tea ArcadeBusiness plan _The Tea Arcade
Business plan _The Tea Arcade
 

Similar a Microprocessors and microcontrollers

ARM Architecture Instruction Set
ARM Architecture Instruction SetARM Architecture Instruction Set
ARM Architecture Instruction SetDwight Sabio
 
Module 2 PPT of ES.pptx
Module 2 PPT of ES.pptxModule 2 PPT of ES.pptx
Module 2 PPT of ES.pptxshruthi810379
 
Arm assembly language programming
Arm assembly language programmingArm assembly language programming
Arm assembly language programmingv Kalairajan
 
Arm teaching material
Arm teaching materialArm teaching material
Arm teaching materialJohn Williams
 
15CS44 MP & MC module 5
15CS44 MP & MC  module 515CS44 MP & MC  module 5
15CS44 MP & MC module 5RLJIT
 
ARM AAE - Intrustion Sets
ARM AAE - Intrustion SetsARM AAE - Intrustion Sets
ARM AAE - Intrustion SetsAnh Dung NGUYEN
 
16201104.ppt
16201104.ppt16201104.ppt
16201104.pptyibe5
 
Arm Cortex material Arm Cortex material3222886.ppt
Arm Cortex material Arm Cortex material3222886.pptArm Cortex material Arm Cortex material3222886.ppt
Arm Cortex material Arm Cortex material3222886.pptManju Badiger
 
8051 Instruction Set
8051 Instruction Set8051 Instruction Set
8051 Instruction SetStupidsid.com
 
ARMbuilt-inshift_2a6f2cdd75038e8c46c6d481aac833ec.pdf
ARMbuilt-inshift_2a6f2cdd75038e8c46c6d481aac833ec.pdfARMbuilt-inshift_2a6f2cdd75038e8c46c6d481aac833ec.pdf
ARMbuilt-inshift_2a6f2cdd75038e8c46c6d481aac833ec.pdfeklavya0304
 

Similar a Microprocessors and microcontrollers (20)

ARM Architecture Instruction Set
ARM Architecture Instruction SetARM Architecture Instruction Set
ARM Architecture Instruction Set
 
ARM instruction set
ARM instruction  setARM instruction  set
ARM instruction set
 
ARM instruction set
ARM instruction  setARM instruction  set
ARM instruction set
 
Module 2 PPT of ES.pptx
Module 2 PPT of ES.pptxModule 2 PPT of ES.pptx
Module 2 PPT of ES.pptx
 
Arm assembly language programming
Arm assembly language programmingArm assembly language programming
Arm assembly language programming
 
Unit vi
Unit viUnit vi
Unit vi
 
Arm teaching material
Arm teaching materialArm teaching material
Arm teaching material
 
Arm teaching material
Arm teaching materialArm teaching material
Arm teaching material
 
module 5.1.pptx
module 5.1.pptxmodule 5.1.pptx
module 5.1.pptx
 
module 5.pptx
module 5.pptxmodule 5.pptx
module 5.pptx
 
15CS44 MP & MC module 5
15CS44 MP & MC  module 515CS44 MP & MC  module 5
15CS44 MP & MC module 5
 
ARM AAE - Intrustion Sets
ARM AAE - Intrustion SetsARM AAE - Intrustion Sets
ARM AAE - Intrustion Sets
 
16201104.ppt
16201104.ppt16201104.ppt
16201104.ppt
 
Arm Cortex material Arm Cortex material3222886.ppt
Arm Cortex material Arm Cortex material3222886.pptArm Cortex material Arm Cortex material3222886.ppt
Arm Cortex material Arm Cortex material3222886.ppt
 
arm-intro.ppt
arm-intro.pptarm-intro.ppt
arm-intro.ppt
 
8051 Instruction Set
8051 Instruction Set8051 Instruction Set
8051 Instruction Set
 
OptimizingARM
OptimizingARMOptimizingARM
OptimizingARM
 
ARM Fundamentals
ARM FundamentalsARM Fundamentals
ARM Fundamentals
 
ARMbuilt-inshift_2a6f2cdd75038e8c46c6d481aac833ec.pdf
ARMbuilt-inshift_2a6f2cdd75038e8c46c6d481aac833ec.pdfARMbuilt-inshift_2a6f2cdd75038e8c46c6d481aac833ec.pdf
ARMbuilt-inshift_2a6f2cdd75038e8c46c6d481aac833ec.pdf
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 

Último

Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 

Último (20)

Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 

Microprocessors and microcontrollers

  • 1. MICROPROCESSORS AND MICROCONTROLLERS ASSIGNMENT PRESENTATION – II GROUP 8 ARM INSTRUCTIONS SUBMITTED BY, L.ANITHA (1OL104) C.SANDHYA SREE (1OL141) G.SRIRANJANI (1OL144) S.SAVITHA (1OL151) N.D.VARTHANA (1OL155) S.DURGA DEVI (11L405)
  • 2. INTRODUCTION:  Advanced RISC Machine  First RISC microprocessor for commercial purpose  Used for low-power and cost-sensitive embedded applications FEATURES:  All instructions are 32 bits long.  Most instructions execute in a single cycle.  Architectural simplicitywhich allows Very small implementations which result in Very low power consumption ARM Instruction types:  Data Processing Instructions  Data Transfer Instructions  Control Flow Instructions Data Processing Instructions Data processing instructions to perform arithmetic and logical operations. These instructions typically require 2 operands and produce a single result. Ex: ADD r0,r1,r2 ; simply takes the values in 2 reg’s (r1 & r2) , adds them together , and places the result in a third reg. (r0) Classified as, Arithmetic operations Bit-wise logical operations Register movement operations Comparison operations
  • 3. Arithmetic operations ADD r0, r1, r2 ; r0  r1 + r2 ; simple addition ADC r0, r1, r2 ; r0  r1+r2 + C ; add with carry SUB r0, r1, r2 ; r0  r1-r2 ; subtract SBC r0, r1, r2 ; r0  r1 - r2 + C – 1 ; subtract with carry RSB r0, r1, r2 ; r0  r2 – r1 ; reverse subtraction RSC r0, r1, r2 ; r0  r2-r1+C-1 ; reverse subtract with carry Bit-wise logical operations AND r0, r1, r2 ; r0  r1 AND r2 ; AND operation ORR r0, r1, r2 ; r0  r1 OR r2 ; OR operation EOR r0, r1, r2 ; r0  r1 XOR r2 ; EXOR operation BIS r0, r1, r2 ; r0  r1 AND NOT r2 ; ‘Bit clear’ where every ‘1’ in the second operand clears the corresponding bit in the first. Register movement operations These instructions ignore the first operand, which is omitted from the assembly language format, and simply move the second operand to the destination. MOV r0, r2 ; r0  r2 ; move operation MVN r0, r2 ; r0  not r2 ; move negated Comparison operations These instructions do not produce a result but just set the condition code bits in the CPSR (current program status reg) according to the selected operation. CMP CMN r1, r2 ; set cc on r1-r2 ; compare TST TEQ r1, r2 ; set cc on r1+r2 ; compare negated
  • 4. r1, r2 ; set cc on r1 and r2 ; test(bit) r1, r2 ; set cc on r1 xor r2 ; test equal Barrel Shifter  The ARM doesn’t have actual shift instructions.  Instead it has a barrel shifter which provides a mechanism to carry out shifts as part of other instructions. LSL : logical shift left by 0 t0 31 places; fill the vacated bits at the least significant end of the word with zeros. LSR : logical shift right by 0 to 32 places; fill the vacated bits at the most significant end of the word with zeros. ASL : arithmetic shift left; this is a synonym for LSL ASR : arithmetic shift right by 0 to 32 places; fill the vacated bits at the most significant end of the word with zeros if the source operand was positive, or with ones if the source operand was negative.