SlideShare uma empresa 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.

Mais conteúdo relacionado

Mais procurados

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
 

Mais procurados (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
 

Destaque

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
 

Destaque (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
 

Semelhante 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
 

Semelhante 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

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
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
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
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
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
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
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
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
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
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
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 

Último (20)

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
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
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
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
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
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
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
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
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
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🔝
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
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
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.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.