Question: Description Write an assembly code in MARIE to sort the following numbers ( Hexadecimal ) from maximum to minimum. Numbers ( HEX ) : 5

Description
Write an assembly code in MARIE to sort the following numbers (Hexadecimal) from maximum to minimum.
Numbers (HEX): 5,35,75,45,85,25,95,55,15,65
- You must store given values in the memory in the same order as given and as a hex value.
- You must sort the values and store them in the same memory location where the original values are stored.
- Your code should not ask any input value.
- Write the complete code out, not just psuedocode.
- Has to work in MARIE.js Simulator
- Show the memory values before and after the program is run and show how it sorted the numbers correctly

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!