IDEAL
MODEL small
STACK 256
DATASEG
word1 DW 3
exCode DB 0
CODESEG
Start:
mov ax,@data
mov ds,ax
push [word1]
call factorial
;return to DOS
Exit:
mov ah,04Ch
mov al,[exCode]
int 21h
PROC factorial
;computes N factorial
;input:stack on entry-ret.addr.(top),
;output:Ax
push bp
mov bp,sp
cmp [WORD bp+4],0
jg recurs
mov ax,1
jmp return
recurs:
mov cx,[bp+4]
dec cx
push cx
call factorial
mul [WORD bp+4]
return:
pop bp
ret 2
ENDP factorial
END Start


QUE HACE CADA LINEA DE ESTE PROGRAMA...(linea por linea que hace???)