Im trying to do a loop that calculate the first 10 number in Fibonacci number. I use "loop" at the and of the code, and it doesn't work.
xor cx, cx
mov cx, 8
mov bx, offset Array
mov [byte ptr bx], 0
mov [byte ptr bx+1], 1
mov bx, 1
Fibo:
inc bx
mov al, [byte ptr bx-1]
mov [byte ptr bx], al
mov al, [byte ptr bx-2]
add [byte ptr bx], al
loop Fibo