;PRGRAM: FINDING FACTRORIAL FIVE
fact macro
l1:mul cl
dec cl
jnz l1
endm
data1 segment
val db 05h
count db 00h
data1 ends
code1 segment
assume cs:code1,ds:data1
start:mov ax,data1
mov ds,ax
xor ax,ax
mov al,val
mov count,al
mov cl,count
dec cl
fact
mov ah,4ch
int 21h
code1 ends
end start
end
; RESULT: 5X4X3X2X1 = 78H
back to itmp lab