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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 07:30
Jasper and samantha are in a robotics competition. the guidelines state that the robots should be able to move a 10-gram weight at least 2 meters and turn in a circle. jasper and samantha have already built the robot. which step of the design process should they follow next to decide whether their robot meets the minimum criteria for the competition?
Answers: 1
question
Computers and Technology, 23.06.2019 04:00
Write a method that takes in an array of point2d objects, and then analyzes the dataset to find points that are close together. be sure to review the point2d api. in your method, if the distance between any pair of points is less than 10, display the distance and the (x,y)s of each point. for example, "the distance between (3,5) and (8,9) is 6.40312." the complete api for the point2d adt may be viewed at ~pf/sedgewick-wayne/algs4/documentation/point2d.html (links to an external site.)links to an external site.. try to write your program directly from the api - do not review the adt's source code.
Answers: 1
question
Computers and Technology, 23.06.2019 18:40
Johnson enterprises uses a computer to handle its sales invoices. lately, business has been so good that it takes an extra 3 hours per night, plus every third saturday, to keep up with the volume of sales invoices. management is considering updating its computer with a faster model that would eliminate all of the overtime processing.
Answers: 2
question
Computers and Technology, 24.06.2019 12:30
Why does the pc send out a broadcast arp prior
Answers: 1
You know the right answer?
Question 1: Working with MARIE (12 Marks) a) Given the below pseudocode, write the proper code that...
Questions
question
Social Studies, 02.09.2019 10:10
question
Mathematics, 02.09.2019 10:10
question
Geography, 02.09.2019 10:10
question
Chemistry, 02.09.2019 10:10
Questions on the website: 13722362