SlideShare a Scribd company logo
1 of 1
Download to read 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

More Related Content

More from 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
 

More from 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
 

Recently uploaded

size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticspragatimahajan3
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Denish Jangid
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...Nguyen Thanh Tu Collection
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Celine George
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文中 央社
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxCapitolTechU
 
Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024CapitolTechU
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointELaRue0
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Mohamed Rizk Khodair
 
Essential Safety precautions during monsoon season
Essential Safety precautions during monsoon seasonEssential Safety precautions during monsoon season
Essential Safety precautions during monsoon seasonMayur Khatri
 
factors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptxfactors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptxSanjay Shekar
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTechSoup
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Celine George
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPost Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPragya - UEM Kolkata Quiz Club
 
ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesashishpaul799
 
Mbaye_Astou.Education Civica_Human Rights.pptx
Mbaye_Astou.Education Civica_Human Rights.pptxMbaye_Astou.Education Civica_Human Rights.pptx
Mbaye_Astou.Education Civica_Human Rights.pptxnuriaiuzzolino1
 
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptxREPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptxmanishaJyala2
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya - UEM Kolkata Quiz Club
 

Recently uploaded (20)

size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
Word Stress rules esl .pptx
Word Stress rules esl               .pptxWord Stress rules esl               .pptx
Word Stress rules esl .pptx
 
Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPoint
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).
 
Essential Safety precautions during monsoon season
Essential Safety precautions during monsoon seasonEssential Safety precautions during monsoon season
Essential Safety precautions during monsoon season
 
factors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptxfactors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptx
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPost Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
 
ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyes
 
Mbaye_Astou.Education Civica_Human Rights.pptx
Mbaye_Astou.Education Civica_Human Rights.pptxMbaye_Astou.Education Civica_Human Rights.pptx
Mbaye_Astou.Education Civica_Human Rights.pptx
 
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptxREPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 

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