Write an assembly program to set R0=1 if there's a 5 in one of ten memory locations, starting at x3100. At the beginning of the program, set R0 = 0. If no 5 is found, it should leave R0 set to 0. Please submit your assembly program below. I will run it with my data. Extra credit - 20 points: If a 5 is found, output the following message to the console. "A 5 was found at x31xx." 31xx is the hex address of the 5.
Write an assembly program to set R0=1 if there's a 5 in one of ten memory locations, starting at x3100. At the beginning of the program, set R0 = 0. If no 5 is found, it should leave R0 set to 0. Please submit your assembly program below. I will run it with my data. Extra credit - 20 points: If a 5 is found, output the following message to the console. "A 5 was found at x31xx." 31xx is the hex address of the 5.
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.6: Nested Loops
Problem 2E
Related questions
Question
Write an assembly program to set R0=1 if there's a 5 in one of ten memory locations, starting at x3100. At the beginning of the program, set R0 = 0. If no 5 is found, it should leave R0 set to 0. Please submit your assembly program below. I will run it with my data.
Extra credit - 20 points: If a 5 is found, output the following message to the console. "A 5 was found at x31xx." 31xx is the hex address of the 5.
Here is the test data I used to generate the screen print below. It is not the test data I will use to grade your project.
.ORIG x3100
.FILL #10
.FILL #20
.FILL #30
.FILL #40
.FILL #50
.FILL #5
.FILL #70
.FILL #5
.FILL #90
.FILL #100
.END
.FILL #10
.FILL #20
.FILL #30
.FILL #40
.FILL #50
.FILL #5
.FILL #70
.FILL #5
.FILL #90
.FILL #100
.END
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr