Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

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....

1 answer below »
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
Answered 1 days After Oct 23, 2021

Solution

Swapnil answered on Oct 25 2021
127 Votes
94475/Solution/data.asm
.ORIG x3100
.FILL #10
.FILL #20
.FILL #30
.FILL #40
.FILL #50
.FILL #5
.FILL #70
.FILL #5
.FILL #90
.FILL...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here