Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ASM 80x86 Write a program to calculate the Nth number in the Fibonacci Sequence. You may use the any of the frameworks provided on blackboard

ASM 80x86

Write a program to calculate the Nth number in the Fibonacci Sequence. You may use the any of the frameworks provided on blackboard in the frameworks zip. If you use console 32 or console 64 the correct number must be place in the EAX register before you move 0 into EAX to return from the procedure. The N to select which number in the sequence to calculate must be declared in the data segment for console 32 and console 64 applications. Submissions completed by the end of the second week of the assignment will receive 3 bonus points. Submissions completed by the end of the first week of the assignment will receive an additional 3 bonus points. Submissions that use the Windows 32 or Windows 64 to ask the user for N and display the output will receive an addition 4 bonus points.

here is a look on how x86 should look like

image text in transcribed

; program to find sum 1+2+. . .+n for n-l, 2, . . . 586 .MODEL FLAT STACK 4096 DATA CODE PROC mov mov main ebx, 0 eax, 0 ; number- 0 ;sum := 0 forever: inc add mp ebx eax, ebX forever ; add 1 to number ; add number to sum ; repeat main ENDP END

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Brad Bulger, Jay Greenspan, David Wall

2nd Edition

ISBN: 0764549634, 9780764549632

More Books

Students also viewed these Databases questions

Question

What is the difference between continuous and discrete data?

Answered: 1 week ago

Question

Identify how culture affects appropriate leadership behavior

Answered: 1 week ago