SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
The question is: Write an Assembly program that receives three numbers from the user and
returns the largest of the three numbers. For example, entering 3 6 2 will output 6.
The example given (which only uses 2 numbers, not 3) was:
INP 14
LDA 14
INP 13
LDB 13
CMP A B
JEQ 9
JLT 11
PNT 14
STP
PNT 14
JMP 8
PNT 13
JMP 8
--
Using the same opcode structure as listed in the example, how do i convert this assembly code
into working for 3 inputs?

Weitere ähnliche Inhalte

Mehr von adithvrc

The rate of photosynthesis as indicated by oxygen productio.pdf
The rate of photosynthesis as indicated by oxygen productio.pdfThe rate of photosynthesis as indicated by oxygen productio.pdf
The rate of photosynthesis as indicated by oxygen productio.pdfadithvrc
 
The random variable Y with a density function given by fy.pdf
The random variable Y with a density function given by fy.pdfThe random variable Y with a density function given by fy.pdf
The random variable Y with a density function given by fy.pdfadithvrc
 
The program below is written in C++ language using an Object.pdf
The program below is written in C++ language using an Object.pdfThe program below is written in C++ language using an Object.pdf
The program below is written in C++ language using an Object.pdfadithvrc
 
The probability that a patient recovers from a stomach disea.pdf
The probability that a patient recovers from a stomach disea.pdfThe probability that a patient recovers from a stomach disea.pdf
The probability that a patient recovers from a stomach disea.pdfadithvrc
 
The protocol will use the following building blocks The Inn.pdf
The protocol will use the following building blocks The Inn.pdfThe protocol will use the following building blocks The Inn.pdf
The protocol will use the following building blocks The Inn.pdfadithvrc
 
The purpose of this project is to develop a code which will .pdf
The purpose of this project is to develop a code which will .pdfThe purpose of this project is to develop a code which will .pdf
The purpose of this project is to develop a code which will .pdfadithvrc
 
The questionnaires prescreening tools and screening script.pdf
The questionnaires prescreening tools and screening script.pdfThe questionnaires prescreening tools and screening script.pdf
The questionnaires prescreening tools and screening script.pdfadithvrc
 
The Public Company Accounting Oversishit Board PCAOB Whs c.pdf
The Public Company Accounting Oversishit Board PCAOB Whs c.pdfThe Public Company Accounting Oversishit Board PCAOB Whs c.pdf
The Public Company Accounting Oversishit Board PCAOB Whs c.pdfadithvrc
 
The program first reads integer participantCount from input.pdf
The program first reads integer participantCount from input.pdfThe program first reads integer participantCount from input.pdf
The program first reads integer participantCount from input.pdfadithvrc
 
The Pulfrich effect demonstrates one way in which the human .pdf
The Pulfrich effect demonstrates one way in which the human .pdfThe Pulfrich effect demonstrates one way in which the human .pdf
The Pulfrich effect demonstrates one way in which the human .pdfadithvrc
 
The purpose of the decision analysis phase is to Identify .pdf
The purpose of the decision analysis phase is to Identify .pdfThe purpose of the decision analysis phase is to Identify .pdf
The purpose of the decision analysis phase is to Identify .pdfadithvrc
 
The previous year had an unemployment rate of 108 nominal.pdf
The previous year had an unemployment rate of 108 nominal.pdfThe previous year had an unemployment rate of 108 nominal.pdf
The previous year had an unemployment rate of 108 nominal.pdfadithvrc
 
The price of a stock fluctuates between 43 and 560 H the .pdf
The price of a stock fluctuates between 43 and 560  H the .pdfThe price of a stock fluctuates between 43 and 560  H the .pdf
The price of a stock fluctuates between 43 and 560 H the .pdfadithvrc
 
The process of selecting elements from a population collect.pdf
The process of selecting elements from a population collect.pdfThe process of selecting elements from a population collect.pdf
The process of selecting elements from a population collect.pdfadithvrc
 
THE PROBLEMATIC WHISTLEBLOWER Paul ODoherty is the ethics o.pdf
THE PROBLEMATIC WHISTLEBLOWER Paul ODoherty is the ethics o.pdfTHE PROBLEMATIC WHISTLEBLOWER Paul ODoherty is the ethics o.pdf
THE PROBLEMATIC WHISTLEBLOWER Paul ODoherty is the ethics o.pdfadithvrc
 
The problem at the center of RSA is finding the eth root of.pdf
The problem at the center of RSA is finding the eth root of.pdfThe problem at the center of RSA is finding the eth root of.pdf
The problem at the center of RSA is finding the eth root of.pdfadithvrc
 
The process for converting present values into future values.pdf
The process for converting present values into future values.pdfThe process for converting present values into future values.pdf
The process for converting present values into future values.pdfadithvrc
 
The problems associated with the nomenclature include a Sc.pdf
The problems associated with the nomenclature include a Sc.pdfThe problems associated with the nomenclature include a Sc.pdf
The problems associated with the nomenclature include a Sc.pdfadithvrc
 
The patient is a male age 17 from Bethlehem Pennsylvania .pdf
The patient is a male age 17 from Bethlehem Pennsylvania .pdfThe patient is a male age 17 from Bethlehem Pennsylvania .pdf
The patient is a male age 17 from Bethlehem Pennsylvania .pdfadithvrc
 
The percentages of public elementary schools with Internet a.pdf
The percentages of public elementary schools with Internet a.pdfThe percentages of public elementary schools with Internet a.pdf
The percentages of public elementary schools with Internet a.pdfadithvrc
 

Mehr von adithvrc (20)

The rate of photosynthesis as indicated by oxygen productio.pdf
The rate of photosynthesis as indicated by oxygen productio.pdfThe rate of photosynthesis as indicated by oxygen productio.pdf
The rate of photosynthesis as indicated by oxygen productio.pdf
 
The random variable Y with a density function given by fy.pdf
The random variable Y with a density function given by fy.pdfThe random variable Y with a density function given by fy.pdf
The random variable Y with a density function given by fy.pdf
 
The program below is written in C++ language using an Object.pdf
The program below is written in C++ language using an Object.pdfThe program below is written in C++ language using an Object.pdf
The program below is written in C++ language using an Object.pdf
 
The probability that a patient recovers from a stomach disea.pdf
The probability that a patient recovers from a stomach disea.pdfThe probability that a patient recovers from a stomach disea.pdf
The probability that a patient recovers from a stomach disea.pdf
 
The protocol will use the following building blocks The Inn.pdf
The protocol will use the following building blocks The Inn.pdfThe protocol will use the following building blocks The Inn.pdf
The protocol will use the following building blocks The Inn.pdf
 
The purpose of this project is to develop a code which will .pdf
The purpose of this project is to develop a code which will .pdfThe purpose of this project is to develop a code which will .pdf
The purpose of this project is to develop a code which will .pdf
 
The questionnaires prescreening tools and screening script.pdf
The questionnaires prescreening tools and screening script.pdfThe questionnaires prescreening tools and screening script.pdf
The questionnaires prescreening tools and screening script.pdf
 
The Public Company Accounting Oversishit Board PCAOB Whs c.pdf
The Public Company Accounting Oversishit Board PCAOB Whs c.pdfThe Public Company Accounting Oversishit Board PCAOB Whs c.pdf
The Public Company Accounting Oversishit Board PCAOB Whs c.pdf
 
The program first reads integer participantCount from input.pdf
The program first reads integer participantCount from input.pdfThe program first reads integer participantCount from input.pdf
The program first reads integer participantCount from input.pdf
 
The Pulfrich effect demonstrates one way in which the human .pdf
The Pulfrich effect demonstrates one way in which the human .pdfThe Pulfrich effect demonstrates one way in which the human .pdf
The Pulfrich effect demonstrates one way in which the human .pdf
 
The purpose of the decision analysis phase is to Identify .pdf
The purpose of the decision analysis phase is to Identify .pdfThe purpose of the decision analysis phase is to Identify .pdf
The purpose of the decision analysis phase is to Identify .pdf
 
The previous year had an unemployment rate of 108 nominal.pdf
The previous year had an unemployment rate of 108 nominal.pdfThe previous year had an unemployment rate of 108 nominal.pdf
The previous year had an unemployment rate of 108 nominal.pdf
 
The price of a stock fluctuates between 43 and 560 H the .pdf
The price of a stock fluctuates between 43 and 560  H the .pdfThe price of a stock fluctuates between 43 and 560  H the .pdf
The price of a stock fluctuates between 43 and 560 H the .pdf
 
The process of selecting elements from a population collect.pdf
The process of selecting elements from a population collect.pdfThe process of selecting elements from a population collect.pdf
The process of selecting elements from a population collect.pdf
 
THE PROBLEMATIC WHISTLEBLOWER Paul ODoherty is the ethics o.pdf
THE PROBLEMATIC WHISTLEBLOWER Paul ODoherty is the ethics o.pdfTHE PROBLEMATIC WHISTLEBLOWER Paul ODoherty is the ethics o.pdf
THE PROBLEMATIC WHISTLEBLOWER Paul ODoherty is the ethics o.pdf
 
The problem at the center of RSA is finding the eth root of.pdf
The problem at the center of RSA is finding the eth root of.pdfThe problem at the center of RSA is finding the eth root of.pdf
The problem at the center of RSA is finding the eth root of.pdf
 
The process for converting present values into future values.pdf
The process for converting present values into future values.pdfThe process for converting present values into future values.pdf
The process for converting present values into future values.pdf
 
The problems associated with the nomenclature include a Sc.pdf
The problems associated with the nomenclature include a Sc.pdfThe problems associated with the nomenclature include a Sc.pdf
The problems associated with the nomenclature include a Sc.pdf
 
The patient is a male age 17 from Bethlehem Pennsylvania .pdf
The patient is a male age 17 from Bethlehem Pennsylvania .pdfThe patient is a male age 17 from Bethlehem Pennsylvania .pdf
The patient is a male age 17 from Bethlehem Pennsylvania .pdf
 
The percentages of public elementary schools with Internet a.pdf
The percentages of public elementary schools with Internet a.pdfThe percentages of public elementary schools with Internet a.pdf
The percentages of public elementary schools with Internet a.pdf
 

Kürzlich hochgeladen

General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
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
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
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
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
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
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 

Kürzlich hochgeladen (20)

General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
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
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
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
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
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
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
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
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 

The question is Write an Assembly program that receives thr.pdf

  • 1. The question is: Write an Assembly program that receives three numbers from the user and returns the largest of the three numbers. For example, entering 3 6 2 will output 6. The example given (which only uses 2 numbers, not 3) was: INP 14 LDA 14 INP 13 LDB 13 CMP A B JEQ 9 JLT 11 PNT 14 STP PNT 14 JMP 8 PNT 13 JMP 8 -- Using the same opcode structure as listed in the example, how do i convert this assembly code into working for 3 inputs?