Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

home / study / engineering / computer science / computer science questions and answers / assembly language programming programming assignment 1 write a program to

home / study / engineering / computer science / computer science questions and answers / assembly language programming programming assignment 1 write a program to calculate the nth ...

Question: Assembly language programming Programming assignment 1 Write a program to calculate the Nth numbe...

Assembly language programming

Programming assignment 1

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(windows 32). If you use console 32 or console 64 the correct number must be placed 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 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 sample to show you how the programming language looks 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 ; 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

More Books

Students also viewed these Databases questions

Question

How are passive investments classified for accounting purposes?

Answered: 1 week ago