I am trying to write a code that runs a loop that print the first 20 numbers in the Fibonacci series. But I dont know how can I solve it and I tried many ways.
org 100h
mov ax, 0
mov bx, 1
mov cx, 20
start:
call print_num ; this is function that print the value that inside ax register
PRINTN ; this is print new line
mov dx, ax
add ax, bx
loop start
mov ah, 0
int 16h
ret
include magshimim.inc ; this is a private library
Someone know how can I do this?