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