SlideShare a Scribd company logo
4. Write a program to compute value of the following polynomial (In LC-3 assembly language)
y=2x^3 - 5x^2 +8x for x > 0
- Use MULT subroutine to multiply numbers
- Use SUBTR subroutine to subtract numbers
In main program
- Store input value of x in memory at x4000
- Store result value of y in memory at x4001

More Related Content

More from atozsha

Take a moment to think about what the word 'integrity' means to you- a.pdf
Take a moment to think about what the word 'integrity' means to you- a.pdfTake a moment to think about what the word 'integrity' means to you- a.pdf
Take a moment to think about what the word 'integrity' means to you- a.pdf
atozsha
 
T or F 51) Forests- woodlands- pastures- and rangelands together occup.pdf
T or F 51) Forests- woodlands- pastures- and rangelands together occup.pdfT or F 51) Forests- woodlands- pastures- and rangelands together occup.pdf
T or F 51) Forests- woodlands- pastures- and rangelands together occup.pdf
atozsha
 
Table4- Measure tnt of size (diameter for cocci- lenath for bacilli) a.pdf
Table4- Measure tnt of size (diameter for cocci- lenath for bacilli) a.pdfTable4- Measure tnt of size (diameter for cocci- lenath for bacilli) a.pdf
Table4- Measure tnt of size (diameter for cocci- lenath for bacilli) a.pdf
atozsha
 
Suppose there is a lion in the bushes- Arrange the pattem of the pathw.pdf
Suppose there is a lion in the bushes- Arrange the pattem of the pathw.pdfSuppose there is a lion in the bushes- Arrange the pattem of the pathw.pdf
Suppose there is a lion in the bushes- Arrange the pattem of the pathw.pdf
atozsha
 
4- Govan and Milica were studying for their physiology final exam- The.pdf
4- Govan and Milica were studying for their physiology final exam- The.pdf4- Govan and Milica were studying for their physiology final exam- The.pdf
4- Govan and Milica were studying for their physiology final exam- The.pdf
atozsha
 
4- From the perspective of the causes of extinction- a reduction in th.pdf
4- From the perspective of the causes of extinction- a reduction in th.pdf4- From the perspective of the causes of extinction- a reduction in th.pdf
4- From the perspective of the causes of extinction- a reduction in th.pdf
atozsha
 
4- Conclude with an analysis of the results of the Project- 4a- What b.pdf
4- Conclude with an analysis of the results of the Project- 4a- What b.pdf4- Conclude with an analysis of the results of the Project- 4a- What b.pdf
4- Conclude with an analysis of the results of the Project- 4a- What b.pdf
atozsha
 
4- Newspaper vending machines are designed so that once you have paid.pdf
4- Newspaper vending machines are designed so that once you have paid.pdf4- Newspaper vending machines are designed so that once you have paid.pdf
4- Newspaper vending machines are designed so that once you have paid.pdf
atozsha
 
4- Choose ONE of the following three research methods- Thoroughly expl.pdf
4- Choose ONE of the following three research methods- Thoroughly expl.pdf4- Choose ONE of the following three research methods- Thoroughly expl.pdf
4- Choose ONE of the following three research methods- Thoroughly expl.pdf
atozsha
 
4- Depending on whether or not organisms use O2 as an oxidant- they ar.pdf
4- Depending on whether or not organisms use O2 as an oxidant- they ar.pdf4- Depending on whether or not organisms use O2 as an oxidant- they ar.pdf
4- Depending on whether or not organisms use O2 as an oxidant- they ar.pdf
atozsha
 
5- Consider the bases and the backbone- Which part is more hydrophobic.pdf
5- Consider the bases and the backbone- Which part is more hydrophobic.pdf5- Consider the bases and the backbone- Which part is more hydrophobic.pdf
5- Consider the bases and the backbone- Which part is more hydrophobic.pdf
atozsha
 
4- Let X and Y be two discrete random variables with joint density fun.pdf
4- Let X and Y be two discrete random variables with joint density fun.pdf4- Let X and Y be two discrete random variables with joint density fun.pdf
4- Let X and Y be two discrete random variables with joint density fun.pdf
atozsha
 
5- a- In which year did Mealy describe his machine- b- In which year d.pdf
5- a- In which year did Mealy describe his machine- b- In which year d.pdf5- a- In which year did Mealy describe his machine- b- In which year d.pdf
5- a- In which year did Mealy describe his machine- b- In which year d.pdf
atozsha
 
5- (6 pts) When chlorophyll absorbs a photon- an electron is excited i.pdf
5- (6 pts) When chlorophyll absorbs a photon- an electron is excited i.pdf5- (6 pts) When chlorophyll absorbs a photon- an electron is excited i.pdf
5- (6 pts) When chlorophyll absorbs a photon- an electron is excited i.pdf
atozsha
 
4- A sociologist studying freshmen at a major university carried out a.pdf
4- A sociologist studying freshmen at a major university carried out a.pdf4- A sociologist studying freshmen at a major university carried out a.pdf
4- A sociologist studying freshmen at a major university carried out a.pdf
atozsha
 
5- (9 Points) Let A- B- C- D be arbitrary sets and subset of Universal.pdf
5- (9 Points) Let A- B- C- D be arbitrary sets and subset of Universal.pdf5- (9 Points) Let A- B- C- D be arbitrary sets and subset of Universal.pdf
5- (9 Points) Let A- B- C- D be arbitrary sets and subset of Universal.pdf
atozsha
 
4- In my sock drawer- I have 10 white socks- 4 black socks- and 2 red.pdf
4- In my sock drawer- I have 10 white socks- 4 black socks- and 2 red.pdf4- In my sock drawer- I have 10 white socks- 4 black socks- and 2 red.pdf
4- In my sock drawer- I have 10 white socks- 4 black socks- and 2 red.pdf
atozsha
 
4- In Drosophila- the mutation for ebony body color is recessive and a.pdf
4- In Drosophila- the mutation for ebony body color is recessive and a.pdf4- In Drosophila- the mutation for ebony body color is recessive and a.pdf
4- In Drosophila- the mutation for ebony body color is recessive and a.pdf
atozsha
 
5) Transform PB - strike s lip penults- 2- DESCRIBE one event or physi.pdf
5) Transform PB - strike s lip penults- 2- DESCRIBE one event or physi.pdf5) Transform PB - strike s lip penults- 2- DESCRIBE one event or physi.pdf
5) Transform PB - strike s lip penults- 2- DESCRIBE one event or physi.pdf
atozsha
 
5) Transfer RNAs (tRNAs) are single-stranded nucleic acids that have f.pdf
5) Transfer RNAs (tRNAs) are single-stranded nucleic acids that have f.pdf5) Transfer RNAs (tRNAs) are single-stranded nucleic acids that have f.pdf
5) Transfer RNAs (tRNAs) are single-stranded nucleic acids that have f.pdf
atozsha
 

More from atozsha (20)

Take a moment to think about what the word 'integrity' means to you- a.pdf
Take a moment to think about what the word 'integrity' means to you- a.pdfTake a moment to think about what the word 'integrity' means to you- a.pdf
Take a moment to think about what the word 'integrity' means to you- a.pdf
 
T or F 51) Forests- woodlands- pastures- and rangelands together occup.pdf
T or F 51) Forests- woodlands- pastures- and rangelands together occup.pdfT or F 51) Forests- woodlands- pastures- and rangelands together occup.pdf
T or F 51) Forests- woodlands- pastures- and rangelands together occup.pdf
 
Table4- Measure tnt of size (diameter for cocci- lenath for bacilli) a.pdf
Table4- Measure tnt of size (diameter for cocci- lenath for bacilli) a.pdfTable4- Measure tnt of size (diameter for cocci- lenath for bacilli) a.pdf
Table4- Measure tnt of size (diameter for cocci- lenath for bacilli) a.pdf
 
Suppose there is a lion in the bushes- Arrange the pattem of the pathw.pdf
Suppose there is a lion in the bushes- Arrange the pattem of the pathw.pdfSuppose there is a lion in the bushes- Arrange the pattem of the pathw.pdf
Suppose there is a lion in the bushes- Arrange the pattem of the pathw.pdf
 
4- Govan and Milica were studying for their physiology final exam- The.pdf
4- Govan and Milica were studying for their physiology final exam- The.pdf4- Govan and Milica were studying for their physiology final exam- The.pdf
4- Govan and Milica were studying for their physiology final exam- The.pdf
 
4- From the perspective of the causes of extinction- a reduction in th.pdf
4- From the perspective of the causes of extinction- a reduction in th.pdf4- From the perspective of the causes of extinction- a reduction in th.pdf
4- From the perspective of the causes of extinction- a reduction in th.pdf
 
4- Conclude with an analysis of the results of the Project- 4a- What b.pdf
4- Conclude with an analysis of the results of the Project- 4a- What b.pdf4- Conclude with an analysis of the results of the Project- 4a- What b.pdf
4- Conclude with an analysis of the results of the Project- 4a- What b.pdf
 
4- Newspaper vending machines are designed so that once you have paid.pdf
4- Newspaper vending machines are designed so that once you have paid.pdf4- Newspaper vending machines are designed so that once you have paid.pdf
4- Newspaper vending machines are designed so that once you have paid.pdf
 
4- Choose ONE of the following three research methods- Thoroughly expl.pdf
4- Choose ONE of the following three research methods- Thoroughly expl.pdf4- Choose ONE of the following three research methods- Thoroughly expl.pdf
4- Choose ONE of the following three research methods- Thoroughly expl.pdf
 
4- Depending on whether or not organisms use O2 as an oxidant- they ar.pdf
4- Depending on whether or not organisms use O2 as an oxidant- they ar.pdf4- Depending on whether or not organisms use O2 as an oxidant- they ar.pdf
4- Depending on whether or not organisms use O2 as an oxidant- they ar.pdf
 
5- Consider the bases and the backbone- Which part is more hydrophobic.pdf
5- Consider the bases and the backbone- Which part is more hydrophobic.pdf5- Consider the bases and the backbone- Which part is more hydrophobic.pdf
5- Consider the bases and the backbone- Which part is more hydrophobic.pdf
 
4- Let X and Y be two discrete random variables with joint density fun.pdf
4- Let X and Y be two discrete random variables with joint density fun.pdf4- Let X and Y be two discrete random variables with joint density fun.pdf
4- Let X and Y be two discrete random variables with joint density fun.pdf
 
5- a- In which year did Mealy describe his machine- b- In which year d.pdf
5- a- In which year did Mealy describe his machine- b- In which year d.pdf5- a- In which year did Mealy describe his machine- b- In which year d.pdf
5- a- In which year did Mealy describe his machine- b- In which year d.pdf
 
5- (6 pts) When chlorophyll absorbs a photon- an electron is excited i.pdf
5- (6 pts) When chlorophyll absorbs a photon- an electron is excited i.pdf5- (6 pts) When chlorophyll absorbs a photon- an electron is excited i.pdf
5- (6 pts) When chlorophyll absorbs a photon- an electron is excited i.pdf
 
4- A sociologist studying freshmen at a major university carried out a.pdf
4- A sociologist studying freshmen at a major university carried out a.pdf4- A sociologist studying freshmen at a major university carried out a.pdf
4- A sociologist studying freshmen at a major university carried out a.pdf
 
5- (9 Points) Let A- B- C- D be arbitrary sets and subset of Universal.pdf
5- (9 Points) Let A- B- C- D be arbitrary sets and subset of Universal.pdf5- (9 Points) Let A- B- C- D be arbitrary sets and subset of Universal.pdf
5- (9 Points) Let A- B- C- D be arbitrary sets and subset of Universal.pdf
 
4- In my sock drawer- I have 10 white socks- 4 black socks- and 2 red.pdf
4- In my sock drawer- I have 10 white socks- 4 black socks- and 2 red.pdf4- In my sock drawer- I have 10 white socks- 4 black socks- and 2 red.pdf
4- In my sock drawer- I have 10 white socks- 4 black socks- and 2 red.pdf
 
4- In Drosophila- the mutation for ebony body color is recessive and a.pdf
4- In Drosophila- the mutation for ebony body color is recessive and a.pdf4- In Drosophila- the mutation for ebony body color is recessive and a.pdf
4- In Drosophila- the mutation for ebony body color is recessive and a.pdf
 
5) Transform PB - strike s lip penults- 2- DESCRIBE one event or physi.pdf
5) Transform PB - strike s lip penults- 2- DESCRIBE one event or physi.pdf5) Transform PB - strike s lip penults- 2- DESCRIBE one event or physi.pdf
5) Transform PB - strike s lip penults- 2- DESCRIBE one event or physi.pdf
 
5) Transfer RNAs (tRNAs) are single-stranded nucleic acids that have f.pdf
5) Transfer RNAs (tRNAs) are single-stranded nucleic acids that have f.pdf5) Transfer RNAs (tRNAs) are single-stranded nucleic acids that have f.pdf
5) Transfer RNAs (tRNAs) are single-stranded nucleic acids that have f.pdf
 

Recently uploaded

How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 

Recently uploaded (20)

How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 

4- Write a program to compute value of the following polynomial (In LC.pdf

  • 1. 4. Write a program to compute value of the following polynomial (In LC-3 assembly language) y=2x^3 - 5x^2 +8x for x > 0 - Use MULT subroutine to multiply numbers - Use SUBTR subroutine to subtract numbers In main program - Store input value of x in memory at x4000 - Store result value of y in memory at x4001