Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 1 i r 2 start: in r 1 , #Read an input value into register r 1 # Check if the entered number is
start: in #Read an input value into register
# Check if the entered number is negative or positive
sub Check if is negative
bge updateHighest #update highest number
blt &start #If is positive, go back to start to keep asking
bge printHigh #If is negative, go to printHigh to output and stop
updateHighest:
add
printHigh: out #Output the entered number highest positive or zero
halt #Halt the program
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started