Write a MARIE assembly code to perform the following pseudocode excerpt. Input a number Assign this number to x Input a number Assign this number to y If y< x { Let z= 2*x } Assign the value of y to AC Else { Let z=3*x Assign the value of x to AC } End: Display the AC value. Stop b) Include a screenshot of the simulation's result (A screenshot of the MARIE Simulator window after running the program). Instructions: - Use "ORG" instruction to start your program at address equivalent to (30008). - use the number 5 as the value of x and 9 as the value of y. - Do not forget to change the Input and output boxes to decimal! - Proper labels and directives should be included at the end of your program.
Write a MARIE assembly code to perform the following pseudocode excerpt. Input a number Assign this number to x Input a number Assign this number to y If y< x { Let z= 2*x } Assign the value of y to AC Else { Let z=3*x Assign the value of x to AC } End: Display the AC value. Stop b) Include a screenshot of the simulation's result (A screenshot of the MARIE Simulator window after running the program). Instructions: - Use "ORG" instruction to start your program at address equivalent to (30008). - use the number 5 as the value of x and 9 as the value of y. - Do not forget to change the Input and output boxes to decimal! - Proper labels and directives should be included at the end of your program.
Related questions
Question
![Write a MARIE assembly code to perform the following
pseudocode excerpt.
Input a number
Assign this number to x
Input a number
Assign this number to y
If y< x
{
Let z= 2*x
}
Assign the value of y to AC
Else
{
Let z=3*x
Assign the value of x to AC
}
End: Display the AC value
Stop
b) Include a screenshot of the simulation's result (A
screenshot of the MARIE Simulator window after running
the program).
Instructions:
- Use "ORG" instruction to start your program at address
equivalent to (30008).
- use the number 5 as the value of x and 9 as the value
of y.
- Do not forget to change the Input and output boxes to
decimal!
- Proper labels and directives should be included at the
end of your program.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F55e8e9e2-d447-4236-ab7f-8d5e04ea9c50%2F0088c929-3570-4f5e-91db-2e1b6637a084%2Fwp7mf0dh_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Write a MARIE assembly code to perform the following
pseudocode excerpt.
Input a number
Assign this number to x
Input a number
Assign this number to y
If y< x
{
Let z= 2*x
}
Assign the value of y to AC
Else
{
Let z=3*x
Assign the value of x to AC
}
End: Display the AC value
Stop
b) Include a screenshot of the simulation's result (A
screenshot of the MARIE Simulator window after running
the program).
Instructions:
- Use "ORG" instruction to start your program at address
equivalent to (30008).
- use the number 5 as the value of x and 9 as the value
of y.
- Do not forget to change the Input and output boxes to
decimal!
- Proper labels and directives should be included at the
end of your program.
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
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 4 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)