Question: You will be creating an assembly file from scratch that fully implements the option where the digits of the users number are printed in reverse
You will be creating an assembly file from scratch that fully implements the option where the digits of the users number are printed in reverse order.
You have to give the user 2 options: the users number being printed as its binary representation or the digits of the users number being printed in reverse order. But write the code for reversing the user's numbers program only!
Whichever option you do not choose will still need to be accounted for in your code, you will print NOT IMPLEMENTED for whichever option you decide not to do. (See sample run) Both options are pretty common algorithms, its getting them into the assembly code that will be a challenge. Be sure to only use assembly constructs we have learned so far in class. Shifts and bitwise operations will come in handy, although their usage may not be immediately obvious when writing your code.
Example of the output:
Sample Run 2: (binary implemented) Enter a positive number <= 255: 148 What shall we do with your number? 1) Print Binary Representation 2) Print number in Reverse Choice: 2
NOT IMPLEMENTED
Thanks for playing!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
