محمد صادق
06-19-2009, 10:42 PM
ساعدوني في حل مشكلة ال recursive factorial بواسطة الأسمبلي
شوفوا ما هي المشكلة في هذا الكود
<code>
;recursive factorial with macro
recfact macro n
Local L1,L2
cmp n,1
jg L1
jmp L2
L1: push n
dec n
mov bx,n
recfact bx
pop cx
mul cx
L2:
endm
</code>
شوفوا ما هي المشكلة في هذا الكود
<code>
;recursive factorial with macro
recfact macro n
Local L1,L2
cmp n,1
jg L1
jmp L2
L1: push n
dec n
mov bx,n
recfact bx
pop cx
mul cx
L2:
endm
</code>
