Question: Question 1 : Working with MARIE a ) Write a MARIE assembly program that implements the below Pseudocode: w = 0 Input x If x

Question 1: Working with MARIE
a) Write a MARIE assembly program that implements the below
Pseudocode:
w=0
Input x
If x0
Jump to End
If x=0
x=x+2
Input y
w=x**y
End, display the w value
Check your program with the following values:
if the value of x0, your last ID digit will not be prompted, and the output =0.
if you entered x=0 and your last ID digit, then the output = your last ID digit *2.
if the entered x>0, say n, and your last ID digit, then the output = your last ID digit *n.
N.B: You should include the MARIE code in your Answer (not a screenshot!), with an explanation of your code, especially the critical instructions.
Example:
Add One , Add 1 to AC
b) Add three screenshots of the simulation, showing the results of the 3 cases as mentioned above (Each screenshot of the MARIE Simulator window should be taken after running the program).
Instructions:
Use "ORG" instruction to start your program at address equivalent to 51210.
Use any value for x., and your last university ID number to input the value of y, if prompted.
For example, if your ID is 2215161678205, then you will use the number 5 for y .
Do not forget to change the representation of the Input and Output windows in the simulator to Decimal.
You should include the proper labels and directives at the end of your program.
Question 2: Working with Logic Gates.
Given the below Function:
F(x,y,z)=(x+z)*(?bar(y)+x)+xbar(y)z
a- Draw the combinational circuit that directly implements the Boolean expression:
b- For what values of x,y, and z the output ( F ) will be 0? Justify your answer using a truth table.
Question 1 : Working with MARIE a ) Write a MARIE

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!