Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write an ARM assembly program that will generate the first 20 numbers in the Fib

ID: 3594413 • Letter: W

Question

Write an ARM assembly program that will generate the first 20 numbers in the Fibonacci series and place them in a 20-element word array located at address 0x40000000.  You program must use a loop and some form of indirect addressing.  See http://en.wikipedia.org/wiki/Fibonacci_number#List_of_Fibonacci_numbers for additional information on Fibonacci numbers.Your program must also count the number of odd Fibonacci numbers that were generated.  Store the ‘odd’ count at address 0x40000050.

Use a hexadecimal calculator to verify that your results are correct. Be sure to comment your program well.  Code begins at 0x00000000 ARM7TDM.

Explanation / Answer

function sumFibs(num) { var prevNumber = 0; var currNumber = 1; var result = 0; while (currNumber
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote