SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
Objectives: - Irvine library usage - Selection statements in MASM - Loop in MASM - Validate
user's entry Write an interactive assembly code using MASM, that asks the user to enter two
integer values, gets each value, and makes sure that each one is a valid, positive integer. Then the
code should calculate and output the summation of all the integer values between the two entered
integers. Sample output #1 Please enter two positive integers and I will give you the sum of all
integers between them. Enter the first one 3 Enter the second one 9 The running total integer
between 3 and 6 is 15 #2 Please enter two positive integers and I will give you the sum of all
integers between them. Enter the first one a Invalid entry try again. Enter a positive integer -5
Invalid entry. We ask for a positive integer 3 Enter the second one x Invalid entry try again.
Enter a positive integer -5 Invalid entry. We ask for a positive integer 6 The running total integer
between 3 and 6 is 42

Mais conteúdo relacionado

Mais de karthik12341

Panini Corporation posee el 85 de las acciones con derecho a vo.pdf
 Panini Corporation posee el 85  de las acciones con derecho a vo.pdf Panini Corporation posee el 85  de las acciones con derecho a vo.pdf
Panini Corporation posee el 85 de las acciones con derecho a vo.pdfkarthik12341
 
P Co regularly sells goods to its one subsidiary company, S Co, which.pdf
 P Co regularly sells goods to its one subsidiary company, S Co, which.pdf P Co regularly sells goods to its one subsidiary company, S Co, which.pdf
P Co regularly sells goods to its one subsidiary company, S Co, which.pdfkarthik12341
 
Overview This assignment is designed to have you practice working wit.pdf
 Overview This assignment is designed to have you practice working wit.pdf Overview This assignment is designed to have you practice working wit.pdf
Overview This assignment is designed to have you practice working wit.pdfkarthik12341
 
Over the past year, Ionias money supply decreased by $4 billion, $1 .pdf
 Over the past year, Ionias money supply decreased by $4 billion, $1 .pdf Over the past year, Ionias money supply decreased by $4 billion, $1 .pdf
Over the past year, Ionias money supply decreased by $4 billion, $1 .pdfkarthik12341
 
Ornaments, Incorporated, is an allequity firm with a total market val.pdf
 Ornaments, Incorporated, is an allequity firm with a total market val.pdf Ornaments, Incorporated, is an allequity firm with a total market val.pdf
Ornaments, Incorporated, is an allequity firm with a total market val.pdfkarthik12341
 
Oriole Company commenced operations on July 1 . Oriole Company uses a.pdf
 Oriole Company commenced operations on July 1 . Oriole Company uses a.pdf Oriole Company commenced operations on July 1 . Oriole Company uses a.pdf
Oriole Company commenced operations on July 1 . Oriole Company uses a.pdfkarthik12341
 
Oriole Enterprises purchased a new piece of equipment for its factory.pdf
 Oriole Enterprises purchased a new piece of equipment for its factory.pdf Oriole Enterprises purchased a new piece of equipment for its factory.pdf
Oriole Enterprises purchased a new piece of equipment for its factory.pdfkarthik12341
 
Opinion Pieces Discuss WHOs Exclusion Of TB From Its Priority List O.pdf
 Opinion Pieces Discuss WHOs Exclusion Of TB From Its Priority List O.pdf Opinion Pieces Discuss WHOs Exclusion Of TB From Its Priority List O.pdf
Opinion Pieces Discuss WHOs Exclusion Of TB From Its Priority List O.pdfkarthik12341
 
operating income Is this more or less than before Why Begin by ide.pdf
 operating income Is this more or less than before Why Begin by ide.pdf operating income Is this more or less than before Why Begin by ide.pdf
operating income Is this more or less than before Why Begin by ide.pdfkarthik12341
 
Onewheel manufactures unicycles. In 2021 it had $2 million worth of u.pdf
 Onewheel manufactures unicycles. In 2021 it had $2 million worth of u.pdf Onewheel manufactures unicycles. In 2021 it had $2 million worth of u.pdf
Onewheel manufactures unicycles. In 2021 it had $2 million worth of u.pdfkarthik12341
 
One interesting result yielded by the Principle of Inclusion and Excl.pdf
 One interesting result yielded by the Principle of Inclusion and Excl.pdf One interesting result yielded by the Principle of Inclusion and Excl.pdf
One interesting result yielded by the Principle of Inclusion and Excl.pdfkarthik12341
 
On November 28, 2008 DJIA closed at 8726.61 points and the divisor .pdf
 On November 28, 2008 DJIA closed at 8726.61 points and the divisor .pdf On November 28, 2008 DJIA closed at 8726.61 points and the divisor .pdf
On November 28, 2008 DJIA closed at 8726.61 points and the divisor .pdfkarthik12341
 
On lanuary 2 Vear 4. Poplar tid, purchase.pdf
 On lanuary 2 Vear 4. Poplar tid, purchase.pdf On lanuary 2 Vear 4. Poplar tid, purchase.pdf
On lanuary 2 Vear 4. Poplar tid, purchase.pdfkarthik12341
 
On June 12, 2021, Minute Company purchased 1,000 shares of Second.pdf
 On June 12, 2021, Minute Company purchased 1,000 shares of Second.pdf On June 12, 2021, Minute Company purchased 1,000 shares of Second.pdf
On June 12, 2021, Minute Company purchased 1,000 shares of Second.pdfkarthik12341
 
Observe the following class structure public class Foot public Foo(i.pdf
 Observe the following class structure public class Foot public Foo(i.pdf Observe the following class structure public class Foot public Foo(i.pdf
Observe the following class structure public class Foot public Foo(i.pdfkarthik12341
 
On January 2 , Year 4, Poplar Ltd. purchased 80 of the outstanding s.pdf
 On January 2 , Year 4, Poplar Ltd. purchased 80 of the outstanding s.pdf On January 2 , Year 4, Poplar Ltd. purchased 80 of the outstanding s.pdf
On January 2 , Year 4, Poplar Ltd. purchased 80 of the outstanding s.pdfkarthik12341
 
On December 31,2025 , Grouper Company prepared an income statement an.pdf
 On December 31,2025 , Grouper Company prepared an income statement an.pdf On December 31,2025 , Grouper Company prepared an income statement an.pdf
On December 31,2025 , Grouper Company prepared an income statement an.pdfkarthik12341
 
On average, from 1960 to the present, which was higher in the United .pdf
 On average, from 1960 to the present, which was higher in the United .pdf On average, from 1960 to the present, which was higher in the United .pdf
On average, from 1960 to the present, which was higher in the United .pdfkarthik12341
 
of Interest t Due Mar 26 by 1159pm Submitting a file upload DNA mole.pdf
 of Interest t Due Mar 26 by 1159pm Submitting a file upload DNA mole.pdf of Interest t Due Mar 26 by 1159pm Submitting a file upload DNA mole.pdf
of Interest t Due Mar 26 by 1159pm Submitting a file upload DNA mole.pdfkarthik12341
 
Olaf lives in the state of Minnesota. In May 2022, a tornado hit th.pdf
 Olaf lives in the state of Minnesota. In May 2022, a tornado hit th.pdf Olaf lives in the state of Minnesota. In May 2022, a tornado hit th.pdf
Olaf lives in the state of Minnesota. In May 2022, a tornado hit th.pdfkarthik12341
 

Mais de karthik12341 (20)

Panini Corporation posee el 85 de las acciones con derecho a vo.pdf
 Panini Corporation posee el 85  de las acciones con derecho a vo.pdf Panini Corporation posee el 85  de las acciones con derecho a vo.pdf
Panini Corporation posee el 85 de las acciones con derecho a vo.pdf
 
P Co regularly sells goods to its one subsidiary company, S Co, which.pdf
 P Co regularly sells goods to its one subsidiary company, S Co, which.pdf P Co regularly sells goods to its one subsidiary company, S Co, which.pdf
P Co regularly sells goods to its one subsidiary company, S Co, which.pdf
 
Overview This assignment is designed to have you practice working wit.pdf
 Overview This assignment is designed to have you practice working wit.pdf Overview This assignment is designed to have you practice working wit.pdf
Overview This assignment is designed to have you practice working wit.pdf
 
Over the past year, Ionias money supply decreased by $4 billion, $1 .pdf
 Over the past year, Ionias money supply decreased by $4 billion, $1 .pdf Over the past year, Ionias money supply decreased by $4 billion, $1 .pdf
Over the past year, Ionias money supply decreased by $4 billion, $1 .pdf
 
Ornaments, Incorporated, is an allequity firm with a total market val.pdf
 Ornaments, Incorporated, is an allequity firm with a total market val.pdf Ornaments, Incorporated, is an allequity firm with a total market val.pdf
Ornaments, Incorporated, is an allequity firm with a total market val.pdf
 
Oriole Company commenced operations on July 1 . Oriole Company uses a.pdf
 Oriole Company commenced operations on July 1 . Oriole Company uses a.pdf Oriole Company commenced operations on July 1 . Oriole Company uses a.pdf
Oriole Company commenced operations on July 1 . Oriole Company uses a.pdf
 
Oriole Enterprises purchased a new piece of equipment for its factory.pdf
 Oriole Enterprises purchased a new piece of equipment for its factory.pdf Oriole Enterprises purchased a new piece of equipment for its factory.pdf
Oriole Enterprises purchased a new piece of equipment for its factory.pdf
 
Opinion Pieces Discuss WHOs Exclusion Of TB From Its Priority List O.pdf
 Opinion Pieces Discuss WHOs Exclusion Of TB From Its Priority List O.pdf Opinion Pieces Discuss WHOs Exclusion Of TB From Its Priority List O.pdf
Opinion Pieces Discuss WHOs Exclusion Of TB From Its Priority List O.pdf
 
operating income Is this more or less than before Why Begin by ide.pdf
 operating income Is this more or less than before Why Begin by ide.pdf operating income Is this more or less than before Why Begin by ide.pdf
operating income Is this more or less than before Why Begin by ide.pdf
 
Onewheel manufactures unicycles. In 2021 it had $2 million worth of u.pdf
 Onewheel manufactures unicycles. In 2021 it had $2 million worth of u.pdf Onewheel manufactures unicycles. In 2021 it had $2 million worth of u.pdf
Onewheel manufactures unicycles. In 2021 it had $2 million worth of u.pdf
 
One interesting result yielded by the Principle of Inclusion and Excl.pdf
 One interesting result yielded by the Principle of Inclusion and Excl.pdf One interesting result yielded by the Principle of Inclusion and Excl.pdf
One interesting result yielded by the Principle of Inclusion and Excl.pdf
 
On November 28, 2008 DJIA closed at 8726.61 points and the divisor .pdf
 On November 28, 2008 DJIA closed at 8726.61 points and the divisor .pdf On November 28, 2008 DJIA closed at 8726.61 points and the divisor .pdf
On November 28, 2008 DJIA closed at 8726.61 points and the divisor .pdf
 
On lanuary 2 Vear 4. Poplar tid, purchase.pdf
 On lanuary 2 Vear 4. Poplar tid, purchase.pdf On lanuary 2 Vear 4. Poplar tid, purchase.pdf
On lanuary 2 Vear 4. Poplar tid, purchase.pdf
 
On June 12, 2021, Minute Company purchased 1,000 shares of Second.pdf
 On June 12, 2021, Minute Company purchased 1,000 shares of Second.pdf On June 12, 2021, Minute Company purchased 1,000 shares of Second.pdf
On June 12, 2021, Minute Company purchased 1,000 shares of Second.pdf
 
Observe the following class structure public class Foot public Foo(i.pdf
 Observe the following class structure public class Foot public Foo(i.pdf Observe the following class structure public class Foot public Foo(i.pdf
Observe the following class structure public class Foot public Foo(i.pdf
 
On January 2 , Year 4, Poplar Ltd. purchased 80 of the outstanding s.pdf
 On January 2 , Year 4, Poplar Ltd. purchased 80 of the outstanding s.pdf On January 2 , Year 4, Poplar Ltd. purchased 80 of the outstanding s.pdf
On January 2 , Year 4, Poplar Ltd. purchased 80 of the outstanding s.pdf
 
On December 31,2025 , Grouper Company prepared an income statement an.pdf
 On December 31,2025 , Grouper Company prepared an income statement an.pdf On December 31,2025 , Grouper Company prepared an income statement an.pdf
On December 31,2025 , Grouper Company prepared an income statement an.pdf
 
On average, from 1960 to the present, which was higher in the United .pdf
 On average, from 1960 to the present, which was higher in the United .pdf On average, from 1960 to the present, which was higher in the United .pdf
On average, from 1960 to the present, which was higher in the United .pdf
 
of Interest t Due Mar 26 by 1159pm Submitting a file upload DNA mole.pdf
 of Interest t Due Mar 26 by 1159pm Submitting a file upload DNA mole.pdf of Interest t Due Mar 26 by 1159pm Submitting a file upload DNA mole.pdf
of Interest t Due Mar 26 by 1159pm Submitting a file upload DNA mole.pdf
 
Olaf lives in the state of Minnesota. In May 2022, a tornado hit th.pdf
 Olaf lives in the state of Minnesota. In May 2022, a tornado hit th.pdf Olaf lives in the state of Minnesota. In May 2022, a tornado hit th.pdf
Olaf lives in the state of Minnesota. In May 2022, a tornado hit th.pdf
 

Último

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 

Último (20)

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 

Objectives - Irvine library usage - Selection statements in MASM - L.pdf

  • 1. Objectives: - Irvine library usage - Selection statements in MASM - Loop in MASM - Validate user's entry Write an interactive assembly code using MASM, that asks the user to enter two integer values, gets each value, and makes sure that each one is a valid, positive integer. Then the code should calculate and output the summation of all the integer values between the two entered integers. Sample output #1 Please enter two positive integers and I will give you the sum of all integers between them. Enter the first one 3 Enter the second one 9 The running total integer between 3 and 6 is 15 #2 Please enter two positive integers and I will give you the sum of all integers between them. Enter the first one a Invalid entry try again. Enter a positive integer -5 Invalid entry. We ask for a positive integer 3 Enter the second one x Invalid entry try again. Enter a positive integer -5 Invalid entry. We ask for a positive integer 6 The running total integer between 3 and 6 is 42