Question: In Masm must use while loop and if statement to calculate the fibonacci numbers from 0 to 1 , 0 0 0 , 0 0

In Masm must use while loop and if statement to calculate the fibonacci numbers from 0 to 1,000,000
Pseudocode:
x-0
y-1
sum-0
temp-0
While y is less than 1,000,000 THEN
If y%2 is odd then
sum-sum+y
End_if
x-x+ y
temp-x
x-y
y-temp
End_while
Note: temp is not a required varible and not needed. In addition, you are not looping 1,000,000, rather looping until you reach the Fibonacci value greater than 1,000,000
Answer
Register:
EAX:00109E82
Memory:
0x00C0400B: 829e 1000
In Masm must use while loop and if statement to

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 Accounting Questions!