Question: Write a x86 assembly program (MASM) to calculate the nth term of the fibonacci sequence. My pseudocode is below, but I don't know how to
Write a x86 assembly program (MASM) to calculate the nth term of the fibonacci sequence. My pseudocode is below, but I don't know how to put into x86 assembly. I don't want to include any libraries like Irvine32. Just using simple mov and add instructions with some loops.
first=1
second=1
third=0
for i from 1 to n
third=first+second
first=second
second=third
return third
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
