Question: In this assignment, you will use ARM assembly language to write a program to calculate the 6thFibonacci numberF6In mathematics, theFibonacci numbers, commonly denotedFn, form asequence,

In this assignment, you will use ARM assembly language to write a program to calculate the 6thFibonacci numberF6In mathematics, theFibonacci numbers, commonly denotedFn, form asequence, called theFibonacci sequence, such that each number is the sum of the two preceding ones, starting from 0 and 1. That isIn this assignment, you will use ARM assembly language to write a

The beginning of the sequence is thus:0, 1, 1, 2, 3, 5, 8, 13, 21, ...Your program will start with two values in data section:F0=0, and F1=1.You will write ARM assembly code using only what we learned in this week to calculate F6. Requirements:

1.Only use what we learned so far.(ADD, MOV, LDR, STR, etc.)

2.Your data section should contain F0 and F1 values.3

.Use only two registers in your code section: R0 and R1.

4.No other numbers are allowed in code section.

5.Create a makefile to manage the build and clean tasks.

6.The program will be named fib6.s7.The output of your program should be like this: $ ./fib6; echo $?8

Fo=0, F1=1 Fn= Fn-1 + Fn-2 for n > 1. Fo=0, F1=1 Fn= Fn-1 + Fn-2 for n > 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!