.model small
<!--[if !supportEmptyParas]--> <!--[endif]-->
.stack
<!--[if !supportEmptyParas]--> <!--[endif]-->
.data
fibonacci_arr DB 12 DUP(1)
<!--[if !supportEmptyParas]--> <!--[endif]-->
.code
main PROC
mov ax,@data
mov ds,ax
<!--[if !supportEmptyParas]--> <!--[endif]-->
mov ax,0
mov bx,0
mov cx,12
mov dx,0
<!--[if !supportEmptyParas]--> <!--[endif]-->
fibonacci_loop:
mov al,fibonacci_arr[bx]
add al,fibonacci_arr[bx+2]
mov fibonacci_arr[bx+4],al
inc bx
loop fibonacci_loop
<!--[if !supportEmptyParas]--> <!--[endif]-->
<!--[if !supportEmptyParas]--> <!--[endif]-->
main ENDP
END main
초기값이 두개,,,?
루프를 줄여요...? 생초보가 실습도 몇번 안해보고 책으로만 짠거라... 양해좀 해주세요
1, 1 넣고 시작해야지. 뭘 더하겠다는건데.