Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,165 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,658 people online right now. Registration is fast and FREE... Join Now!




Help wit assembly programs

 
Reply to this topicStart new topic

Help wit assembly programs, Fibonocci series

Sreemv
post 1 Aug, 2008 - 09:49 AM
Post #1


New D.I.C Head

*
Joined: 1 Aug, 2008
Posts: 1

Hello.. Can anyone give me the assembly language code required to generate the Fibonacci's series on using MASM!
Thanks in advance
User is offlineProfile CardPM

Go to the top of the page

NickDMax
post 1 Aug, 2008 - 01:34 PM
Post #2


2B||!2B

Group Icon
Joined: 18 Feb, 2007
Posts: 2,857



Thanked 47 times

Dream Kudos: 550
My Contributions


Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: code.gif

Thanks.
User is offlineProfile CardPM

Go to the top of the page

kapax
post 19 Aug, 2008 - 12:55 PM
Post #3


New D.I.C Head

*
Joined: 2 Jul, 2008
Posts: 39



Thanked 1 times
My Contributions


CODE

mov ax, 1
mov bx, 1

loop:
add ax, bx
add bx, ax
jmp loop


registers go like that:
ax = 1
bx = 1
ax = 2
bx = 3
ax = 5
bx = 8
...

but finish the code, i am not going to do your homework for you.

This post has been edited by kapax: 19 Aug, 2008 - 12:55 PM
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/21/08 02:39PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month