Merge pull request #1 from enesgunumdogdu/enes

Fibonacci Ex Added
This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-01-08 11:25:51 +00:00 committed by GitHub
commit db4e2ff61c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

19
008-fibonacci.s Normal file
View file

@ -0,0 +1,19 @@
.global _start
.intel_syntax noprefix
// first 5 series of fibonnacci using stack
_start:
mov ax, 1
mov bx, 0
push bx
cmp cx, 00H
je son
dongu:
add bx, ax
push ax
xchg ax, bx
loop dongu:
//exit
syscall