Assembly Language program using Sparc architecture
$10-30 USD
Cancelled
Posted about 9 years ago
$10-30 USD
Paid on delivery
The program will prompt the user for a number and then ask them to select one of two options: right logical shift or left logical shift. If the user selects “right logical shift”, then the program will shift the number to right by the parameter entered by user. If the user selects “left logical shift”, then the program will shift the number to left by the parameter entered by user. The program should display the initial value and the result in decimal.
Use scanf to read input from the keyboard and printf to display your message on the monitor. As usual, make sure to document your code properly. You do not need to confirm that the user inputs are valid.
Bonus: The program could ask the user if they want to quit the program. If the user selects not to quit, then the process is repeated, otherwise, display “Goodbye.”
Example: Here is an example of what your program will do:
Please enter in a number between 0 and 4095:1024
Please select one of the following functions:
r: shift the number to right
l: shift the number to left
The user will then type in a character followed by the ENTER key. Your program will respond accordingly. Assume the user enters „r‟.
Please enter in a number of positions you want to shift:
Assume the user enters „5‟.
The initial value is:1024
The result is:32
Would you like to quit (y/n)?
- Assume the user enters "n‟.
Please enter in a number between 0 and 4095:1024
Please select one of the following functions:
r: shift the number to rightl: shift the number to left
l: shift the number to left
The user will then type in a character followed by the ENTER key. Your program will respond accordingly. Assume the user enters „l‟.
Please enter in a number of positions you want to shift:
Assume the user enters „5‟.
The initial value is:1024
The result is:32768
Would you like to quit (y/n)?
Assume the user enters „y‟.
Goodbye.
Hi,
I am an electrical engineer specialising in embedded systems and programming. I have a great deal of experience with assembly, and can write your program ASAP.
If you have any questions regarding my proposal please feel free to contact me.
Regards,
Jimi Minton