SlideShare a Scribd company logo
Assembly Language Programming Using TI MSP430 and IAR Workbench.
Write an assembly program that first initializes two 16-bit signed integers, A and B. Create a
subroutine, called SW_MUL, that multiplies the two integers together using the multiplication
technique of your choice. Parameters should be passed to the subroutine using the stack and the
result stored in R14. A second subroutine, called HW_MUL, must then be created that multiplies
the two integers using the hardware multiplier. The parameters should be passed using registers
and the result should be stored in R15. Assess the performance of the subroutines by monitoring
the clock cycle counter in the IAR Workbench.
Thanks in advance for any help!
Solution
An assembly (or assembler) language,[1] often abbreviated asm, is a low-level programming
language for a computer, or other programmable device, in which there is a very strong
(generally one-to-one) correspondence between the language and the architecture's machine
code instructions. Each assembly language is specific to a particular computer architecture. In
contrast, most high-level programming languages are generally portable across multiple
architectures but require interpretingor compiling. Assembly language may also be called
symbolic machine code.[2]
Assembly language is converted into executable machine code by a utility program referred to as
an assembler. The conversion process is referred to as assembly, or assembling the source code.
Assembly time is the computational step where an assembler is run.

More Related Content

Similar to Assembly Language Programming Using TI MSP430 and IAR Workbench.Wr.pdf

Assembly chapter One.pptx
Assembly chapter One.pptxAssembly chapter One.pptx
Assembly chapter One.pptx
ssuserb78e291
 
4.LanguageProcessors and language Processing Activities.pdf
4.LanguageProcessors and language Processing Activities.pdf4.LanguageProcessors and language Processing Activities.pdf
4.LanguageProcessors and language Processing Activities.pdf
SwapnaliPawar27
 
Programming languages
Programming languagesProgramming languages
Programming languages
gaurav jain
 
Lecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxLecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptx
Chewe Lulembo
 
Computer languages
Computer languagesComputer languages
Computer languages
Atiq_Ahmed
 
4 computer languages
4 computer languages4 computer languages
4 computer languages
BaliThorat1
 
Describe professional programing languages and talks
Describe professional programing languages and talks Describe professional programing languages and talks
Describe professional programing languages and talks Ed Bray
 
Assembly language
Assembly languageAssembly language
Assembly language
gaurav jain
 
Ayushi
AyushiAyushi
CH 01.pptx
CH 01.pptxCH 01.pptx
CH 01.pptx
Obsa2
 
Embedded firmware
Embedded firmwareEmbedded firmware
Embedded firmware
Joel P
 
Programming languages.pptx
Programming languages.pptxProgramming languages.pptx
Programming languages.pptx
Christ Association
 
Visual basic ictl bi
Visual basic ictl biVisual basic ictl bi
Visual basic ictl binad_84
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer langkapil078
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer langkapil078
 
Description of programming language
Description of programming languageDescription of programming language
Description of programming languageSam Stratford
 

Similar to Assembly Language Programming Using TI MSP430 and IAR Workbench.Wr.pdf (20)

Assembly chapter One.pptx
Assembly chapter One.pptxAssembly chapter One.pptx
Assembly chapter One.pptx
 
A&a&r&n
A&a&r&nA&a&r&n
A&a&r&n
 
aula
aulaaula
aula
 
4.LanguageProcessors and language Processing Activities.pdf
4.LanguageProcessors and language Processing Activities.pdf4.LanguageProcessors and language Processing Activities.pdf
4.LanguageProcessors and language Processing Activities.pdf
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Lecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxLecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptx
 
Computer languages
Computer languagesComputer languages
Computer languages
 
4 computer languages
4 computer languages4 computer languages
4 computer languages
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Describe professional programing languages and talks
Describe professional programing languages and talks Describe professional programing languages and talks
Describe professional programing languages and talks
 
Assembly language
Assembly languageAssembly language
Assembly language
 
Computer languages 11
Computer languages 11Computer languages 11
Computer languages 11
 
Ayushi
AyushiAyushi
Ayushi
 
CH 01.pptx
CH 01.pptxCH 01.pptx
CH 01.pptx
 
Embedded firmware
Embedded firmwareEmbedded firmware
Embedded firmware
 
Programming languages.pptx
Programming languages.pptxProgramming languages.pptx
Programming languages.pptx
 
Visual basic ictl bi
Visual basic ictl biVisual basic ictl bi
Visual basic ictl bi
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer lang
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer lang
 
Description of programming language
Description of programming languageDescription of programming language
Description of programming language
 

More from footwearpark

Match the system with its correct description. Solution(1)En.pdf
Match the system with its correct description.  Solution(1)En.pdfMatch the system with its correct description.  Solution(1)En.pdf
Match the system with its correct description. Solution(1)En.pdf
footwearpark
 
Molecular chaperones can be expressed during Tries remaining Select.pdf
Molecular chaperones can be expressed during Tries remaining  Select.pdfMolecular chaperones can be expressed during Tries remaining  Select.pdf
Molecular chaperones can be expressed during Tries remaining Select.pdf
footwearpark
 
lime spent outside Time spentoutside (minutes) How might the graph be.pdf
lime spent outside Time spentoutside (minutes) How might the graph be.pdflime spent outside Time spentoutside (minutes) How might the graph be.pdf
lime spent outside Time spentoutside (minutes) How might the graph be.pdf
footwearpark
 
Let R be the relation from the set A to the set be the relation from .pdf
Let R be the relation from the set A to the set be the relation from .pdfLet R be the relation from the set A to the set be the relation from .pdf
Let R be the relation from the set A to the set be the relation from .pdf
footwearpark
 
If an electron in an atom has an orbital angular momentum with ml .pdf
If an electron in an atom has an orbital angular momentum with ml .pdfIf an electron in an atom has an orbital angular momentum with ml .pdf
If an electron in an atom has an orbital angular momentum with ml .pdf
footwearpark
 
how do i expand upon selectionSortType so that you are no longer bou.pdf
how do i expand upon selectionSortType so that you are no longer bou.pdfhow do i expand upon selectionSortType so that you are no longer bou.pdf
how do i expand upon selectionSortType so that you are no longer bou.pdf
footwearpark
 
How are proteins imported into the thylakoids of chloroplastsSo.pdf
How are proteins imported into the thylakoids of chloroplastsSo.pdfHow are proteins imported into the thylakoids of chloroplastsSo.pdf
How are proteins imported into the thylakoids of chloroplastsSo.pdf
footwearpark
 
Find the equation of the tangent line for the following curve at=.pdf
Find the equation of the tangent line for the following curve at=.pdfFind the equation of the tangent line for the following curve at=.pdf
Find the equation of the tangent line for the following curve at=.pdf
footwearpark
 
Evolution questions (please answer this in short)Q1. In what sens.pdf
Evolution questions (please answer this in short)Q1. In what sens.pdfEvolution questions (please answer this in short)Q1. In what sens.pdf
Evolution questions (please answer this in short)Q1. In what sens.pdf
footwearpark
 
Ethanol (CH3-CH2-OH) is miscible in water because it is able to form .pdf
Ethanol (CH3-CH2-OH) is miscible in water because it is able to form .pdfEthanol (CH3-CH2-OH) is miscible in water because it is able to form .pdf
Ethanol (CH3-CH2-OH) is miscible in water because it is able to form .pdf
footwearpark
 
Draw a reflection diagram out to 5t b) Squareroot 2 = c) Squarero.pdf
Draw a reflection diagram out to 5t  b) Squareroot 2 =  c) Squarero.pdfDraw a reflection diagram out to 5t  b) Squareroot 2 =  c) Squarero.pdf
Draw a reflection diagram out to 5t b) Squareroot 2 = c) Squarero.pdf
footwearpark
 
Discrete MathIf you draw a card from a standard deck of 52 cards, .pdf
Discrete MathIf you draw a card from a standard deck of 52 cards, .pdfDiscrete MathIf you draw a card from a standard deck of 52 cards, .pdf
Discrete MathIf you draw a card from a standard deck of 52 cards, .pdf
footwearpark
 
Describe the structure and function of nematocysts.SolutionNema.pdf
Describe the structure and function of nematocysts.SolutionNema.pdfDescribe the structure and function of nematocysts.SolutionNema.pdf
Describe the structure and function of nematocysts.SolutionNema.pdf
footwearpark
 
Describe 3 experiments that would use the three different t-tests (O.pdf
Describe 3 experiments that would use the three different t-tests (O.pdfDescribe 3 experiments that would use the three different t-tests (O.pdf
Describe 3 experiments that would use the three different t-tests (O.pdf
footwearpark
 
Correctly develop the reference for each of the following itemsJo.pdf
Correctly develop the reference for each of the following itemsJo.pdfCorrectly develop the reference for each of the following itemsJo.pdf
Correctly develop the reference for each of the following itemsJo.pdf
footwearpark
 
Consider these Hypothesis Statements3. Which one is worseSolu.pdf
Consider these Hypothesis Statements3. Which one is worseSolu.pdfConsider these Hypothesis Statements3. Which one is worseSolu.pdf
Consider these Hypothesis Statements3. Which one is worseSolu.pdf
footwearpark
 
Bert is 16.5 kilometers away from Brenda. Both begin to walk toward .pdf
Bert is 16.5 kilometers away from Brenda. Both begin to walk toward .pdfBert is 16.5 kilometers away from Brenda. Both begin to walk toward .pdf
Bert is 16.5 kilometers away from Brenda. Both begin to walk toward .pdf
footwearpark
 
At timet = 1,a particle is located at position(x, y) = (1, 5)..pdf
At timet = 1,a particle is located at position(x, y) = (1, 5)..pdfAt timet = 1,a particle is located at position(x, y) = (1, 5)..pdf
At timet = 1,a particle is located at position(x, y) = (1, 5)..pdf
footwearpark
 
Analyze the structure of the mobile technology industry. How has it .pdf
Analyze the structure of the mobile technology industry. How has it .pdfAnalyze the structure of the mobile technology industry. How has it .pdf
Analyze the structure of the mobile technology industry. How has it .pdf
footwearpark
 
All of the following are assumptions of the error terms in the simpl.pdf
All of the following are assumptions of the error terms in the simpl.pdfAll of the following are assumptions of the error terms in the simpl.pdf
All of the following are assumptions of the error terms in the simpl.pdf
footwearpark
 

More from footwearpark (20)

Match the system with its correct description. Solution(1)En.pdf
Match the system with its correct description.  Solution(1)En.pdfMatch the system with its correct description.  Solution(1)En.pdf
Match the system with its correct description. Solution(1)En.pdf
 
Molecular chaperones can be expressed during Tries remaining Select.pdf
Molecular chaperones can be expressed during Tries remaining  Select.pdfMolecular chaperones can be expressed during Tries remaining  Select.pdf
Molecular chaperones can be expressed during Tries remaining Select.pdf
 
lime spent outside Time spentoutside (minutes) How might the graph be.pdf
lime spent outside Time spentoutside (minutes) How might the graph be.pdflime spent outside Time spentoutside (minutes) How might the graph be.pdf
lime spent outside Time spentoutside (minutes) How might the graph be.pdf
 
Let R be the relation from the set A to the set be the relation from .pdf
Let R be the relation from the set A to the set be the relation from .pdfLet R be the relation from the set A to the set be the relation from .pdf
Let R be the relation from the set A to the set be the relation from .pdf
 
If an electron in an atom has an orbital angular momentum with ml .pdf
If an electron in an atom has an orbital angular momentum with ml .pdfIf an electron in an atom has an orbital angular momentum with ml .pdf
If an electron in an atom has an orbital angular momentum with ml .pdf
 
how do i expand upon selectionSortType so that you are no longer bou.pdf
how do i expand upon selectionSortType so that you are no longer bou.pdfhow do i expand upon selectionSortType so that you are no longer bou.pdf
how do i expand upon selectionSortType so that you are no longer bou.pdf
 
How are proteins imported into the thylakoids of chloroplastsSo.pdf
How are proteins imported into the thylakoids of chloroplastsSo.pdfHow are proteins imported into the thylakoids of chloroplastsSo.pdf
How are proteins imported into the thylakoids of chloroplastsSo.pdf
 
Find the equation of the tangent line for the following curve at=.pdf
Find the equation of the tangent line for the following curve at=.pdfFind the equation of the tangent line for the following curve at=.pdf
Find the equation of the tangent line for the following curve at=.pdf
 
Evolution questions (please answer this in short)Q1. In what sens.pdf
Evolution questions (please answer this in short)Q1. In what sens.pdfEvolution questions (please answer this in short)Q1. In what sens.pdf
Evolution questions (please answer this in short)Q1. In what sens.pdf
 
Ethanol (CH3-CH2-OH) is miscible in water because it is able to form .pdf
Ethanol (CH3-CH2-OH) is miscible in water because it is able to form .pdfEthanol (CH3-CH2-OH) is miscible in water because it is able to form .pdf
Ethanol (CH3-CH2-OH) is miscible in water because it is able to form .pdf
 
Draw a reflection diagram out to 5t b) Squareroot 2 = c) Squarero.pdf
Draw a reflection diagram out to 5t  b) Squareroot 2 =  c) Squarero.pdfDraw a reflection diagram out to 5t  b) Squareroot 2 =  c) Squarero.pdf
Draw a reflection diagram out to 5t b) Squareroot 2 = c) Squarero.pdf
 
Discrete MathIf you draw a card from a standard deck of 52 cards, .pdf
Discrete MathIf you draw a card from a standard deck of 52 cards, .pdfDiscrete MathIf you draw a card from a standard deck of 52 cards, .pdf
Discrete MathIf you draw a card from a standard deck of 52 cards, .pdf
 
Describe the structure and function of nematocysts.SolutionNema.pdf
Describe the structure and function of nematocysts.SolutionNema.pdfDescribe the structure and function of nematocysts.SolutionNema.pdf
Describe the structure and function of nematocysts.SolutionNema.pdf
 
Describe 3 experiments that would use the three different t-tests (O.pdf
Describe 3 experiments that would use the three different t-tests (O.pdfDescribe 3 experiments that would use the three different t-tests (O.pdf
Describe 3 experiments that would use the three different t-tests (O.pdf
 
Correctly develop the reference for each of the following itemsJo.pdf
Correctly develop the reference for each of the following itemsJo.pdfCorrectly develop the reference for each of the following itemsJo.pdf
Correctly develop the reference for each of the following itemsJo.pdf
 
Consider these Hypothesis Statements3. Which one is worseSolu.pdf
Consider these Hypothesis Statements3. Which one is worseSolu.pdfConsider these Hypothesis Statements3. Which one is worseSolu.pdf
Consider these Hypothesis Statements3. Which one is worseSolu.pdf
 
Bert is 16.5 kilometers away from Brenda. Both begin to walk toward .pdf
Bert is 16.5 kilometers away from Brenda. Both begin to walk toward .pdfBert is 16.5 kilometers away from Brenda. Both begin to walk toward .pdf
Bert is 16.5 kilometers away from Brenda. Both begin to walk toward .pdf
 
At timet = 1,a particle is located at position(x, y) = (1, 5)..pdf
At timet = 1,a particle is located at position(x, y) = (1, 5)..pdfAt timet = 1,a particle is located at position(x, y) = (1, 5)..pdf
At timet = 1,a particle is located at position(x, y) = (1, 5)..pdf
 
Analyze the structure of the mobile technology industry. How has it .pdf
Analyze the structure of the mobile technology industry. How has it .pdfAnalyze the structure of the mobile technology industry. How has it .pdf
Analyze the structure of the mobile technology industry. How has it .pdf
 
All of the following are assumptions of the error terms in the simpl.pdf
All of the following are assumptions of the error terms in the simpl.pdfAll of the following are assumptions of the error terms in the simpl.pdf
All of the following are assumptions of the error terms in the simpl.pdf
 

Recently uploaded

How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
ArianaBusciglio
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Fresher’s Quiz 2023 at GMC Nizamabad.pptx
Fresher’s Quiz 2023 at GMC Nizamabad.pptxFresher’s Quiz 2023 at GMC Nizamabad.pptx
Fresher’s Quiz 2023 at GMC Nizamabad.pptx
SriSurya50
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
What is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptxWhat is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptx
christianmathematics
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 

Recently uploaded (20)

How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Fresher’s Quiz 2023 at GMC Nizamabad.pptx
Fresher’s Quiz 2023 at GMC Nizamabad.pptxFresher’s Quiz 2023 at GMC Nizamabad.pptx
Fresher’s Quiz 2023 at GMC Nizamabad.pptx
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
What is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptxWhat is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptx
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 

Assembly Language Programming Using TI MSP430 and IAR Workbench.Wr.pdf

  • 1. Assembly Language Programming Using TI MSP430 and IAR Workbench. Write an assembly program that first initializes two 16-bit signed integers, A and B. Create a subroutine, called SW_MUL, that multiplies the two integers together using the multiplication technique of your choice. Parameters should be passed to the subroutine using the stack and the result stored in R14. A second subroutine, called HW_MUL, must then be created that multiplies the two integers using the hardware multiplier. The parameters should be passed using registers and the result should be stored in R15. Assess the performance of the subroutines by monitoring the clock cycle counter in the IAR Workbench. Thanks in advance for any help! Solution An assembly (or assembler) language,[1] often abbreviated asm, is a low-level programming language for a computer, or other programmable device, in which there is a very strong (generally one-to-one) correspondence between the language and the architecture's machine code instructions. Each assembly language is specific to a particular computer architecture. In contrast, most high-level programming languages are generally portable across multiple architectures but require interpretingor compiling. Assembly language may also be called symbolic machine code.[2] Assembly language is converted into executable machine code by a utility program referred to as an assembler. The conversion process is referred to as assembly, or assembling the source code. Assembly time is the computational step where an assembler is run.