SlideShare a Scribd company logo
1 of 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.

More Related Content

What's hot

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
 

What's hot (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
 

Viewers also liked

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
 

Viewers also liked (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 to 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 to 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
 

Recently uploaded

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
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
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
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
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
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
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
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
 
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
 

Recently uploaded (20)

Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
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
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
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
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
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
 
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.