Assembly Language intel AT&T Syntax GCD LCM computation
$30-250 USD
Κλειστή
Αναρτήθηκε περίπου 10 χρόνια πριν
$30-250 USD
Πληρωμή κατά την παράδοση
Write a 32-bit Intel Assembly language program using AT&T syntax that computes the GCD and LCM of two integers. Requirements:
1. Your program will read the two integers via the command line arguments.
2. The two numbers will be signed 32-bit integers.
3. You must perform any and all error checking on your input numbers. (Suggestion: write a separate function to perform data validation!)
4. You must have a separate function for the main, GCD, LCD, plus any other utility functions necessary to complete this program.
5. At least one of your functions must be a recursive function.
6. Output will be to standard output.
a. On the first line line print the two input numbers and their corresponding GCD.
b. On the second output line print the two input numbers and their corresponding LCM.
Here is an example:
prompt$ ./gcdlcm 24 30 [ENTER]
The greatest common factor of 24 and 30 is 6.
The least common multiple of 24 and 30 is 120.
prompt$
Hi,
I assume this should work on Linux 32-bit.
What toolset is used to build the project? Is it GNU ?
Do you have any samples of code, labs, template project, etc ?
Should everything be written in assembly or main can be in C ?
Hi, I am an Electronics engineer from pune,India.
Have experience coding in Assembly and C/C++ on both windows and linux platforms.
Will use GCC for the porject.
Thanks.
I am good in assembley and Mips language this is an easy job for me i can solve this as early as you want .and not to worry about the payment we will manage it as you want..