This must be an LC-3 assembly language program! Comment your code! Write a progr
ID: 3673609 • Letter: T
Question
This must be an LC-3 assembly language program! Comment your code! Write a program that includes - a "main" function (this is simply the code located at the top of your program) - a function to calculate GCD (greatest common divisor) - a function to calculate MOD (the modulus or in Java, %) main should calculate the GCD of two variables N1 and N2 initialized to 50 and 20 and put the answer in R3. (The answer is 10!)
2. Write a program that includes - a "main" function (this is simply the code located at the top of your program) - a function to calculate GCD (greatest common divisor)-a function to calculate MOD (the modulus or in Java, %) main should calculate the GCD of two variables N1 and N2 initialized to 50 and 20 and put the answer in R3. (The answer is 10!) For GCD, I suggest using the following code int GCD(int x, int y) f int lesser if (xExplanation / Answer
Link for Source code below. Not able to paste code here. Indentation problem.
https://drive.google.com/file/d/0B9P4w87kevGhS1VURVlGZkF0VGc/view?usp=sharing
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.