subject

Question 1: Working with MARIE (12 Marks) a) Given the below pseudocode, write the proper code that
implements it using MARIE's assembly language:

Input a number and store it in X;

while X < 10 do

X = X + 1;

Output the value of X;

endwhile;

N. B: You should include the MARIE code in your Answer, with an

explanation of each instruction in your code beside it.

Example:

Add One /Add 1 to AC

b) Add a screenshot of the simulation, showing the result (A screenshot of

the MARIE Simulator window after running the program).

Instructions:

- Use “ORG” instruction to start your program at address 300.
- Use your last university ID number to input the new value of X.
For example, if your ID is1915161678235, then you will use the
number 5 as the value of x.
- Do not forget to change the representation of the Input and
Output windows in the simulator to Decimal.
- The following labels and directives should be included at the end
of your program:

X, Dec 0

One, DEC 1

Ten, DEC 10

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 16:00, bry7474
A(n) is a small bit of text separated from the rest of the paragraph at the top of a column or page.
Answers: 2
image
Computers and Technology, 21.06.2019 22:00, shadow56
Formula that contains a nested function that first calculates the average of the values in range e6: p6 and uses the round function to round that average to the nearest 10 dollars. use -1 for the value of the number digit argument. would the formula be =round(average(e6: p6),0
Answers: 1
image
Computers and Technology, 22.06.2019 07:30, tinasidell1972
An endless cycle of creation and response on the internet is called
Answers: 1
image
Computers and Technology, 22.06.2019 13:30, 21megoplin
In which phase does software coding and testing happen in the spiral model? the spiral model does not have a separate testing phase. both, software coding and testing occurs during the phase.
Answers: 3
You know the right answer?
Question 1: Working with MARIE (12 Marks) a) Given the below pseudocode, write the proper code that...

Questions in other subjects:

Konu
Mathematics, 18.11.2020 06:10
Konu
Mathematics, 18.11.2020 06:10