From dbdf71f35b73d38fd47c4a62484a25133dd33cea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=2E=20Enes=20G=C3=BCn=C3=BCmdo=C4=9Fdu?= Date: Mon, 8 Jan 2024 14:07:37 +0300 Subject: [PATCH] Fibonacci Ex Added --- 008-fibonacci.s | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 008-fibonacci.s diff --git a/008-fibonacci.s b/008-fibonacci.s new file mode 100644 index 0000000..7c45e5f --- /dev/null +++ b/008-fibonacci.s @@ -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 \ No newline at end of file