0% found this document useful (0 votes)
63 views

Fibonacci

This program uses a loop to repeatedly add 1 to a value stored in the AL register, storing the result in the DL register and then swapping the values between AL and BL registers. It does this 5 times before ending the program with an interrupt.

Uploaded by

balu56kv
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views

Fibonacci

This program uses a loop to repeatedly add 1 to a value stored in the AL register, storing the result in the DL register and then swapping the values between AL and BL registers. It does this 5 times before ending the program with an interrupt.

Uploaded by

balu56kv
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

.

model small
.stack 64
.data
.code
start:
mov al,00h
mov dl,00h
mov bl,01h
mov cl,05h
again: add al,bl
mov dl,al
mov al,bl
mov bl,dl
dec cl
jnz again
mov ah,4ch
int 21h
end start
.end

You might also like