ahmetT 0 Newbie Poster

Hello, I'm just working on a fibonacci numbers in 8086 assembly. However it is not working as I expected. All I want count from 0 to 100. If anyone knows, please help me, thanks. Here the code I have done so far:

org 100h
mov al,0
mov bl,0
mov cl,100
mov ch,0
mov dl,1
mov dh,0
call fibonacci_loop
ret                
fibonacci_loop:
add al,dh
add al,dl
mov bl,al
add dl,dh
mov dh,bl 
add ch,1
cmp ch,cl
jne fibonacci_loop
ret
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.