Monday, 30 April 2012

Re: ::::::||VU_Askari(MIT)||:::::: cs401, Q2

thnx

On Mon, Apr 30, 2012 at 9:24 PM, Muhammad Usama <m.usama905@gmail.com> wrote:

http://www.syntax-example.com/Code/find-factorial-number-subroutine-1750.aspx

On Mon, Apr 30, 2012 at 9:21 PM, mc110404686 Mehak Khan <mc110404686@vu.edu.pk> wrote:
iski afd?

On Mon, Apr 30, 2012 at 9:15 PM, Muhammad Usama <m.usama905@gmail.com> wrote:

Solution of question no. 2:

 

DATA SEGMENT
NO DW 5
DATA ENDS

CODE SEGMENT


FACTO PROC NEAR
ASSUME CS:CODE
MOV AX,0000
POP BX
POP AX
PUSH BX
MOV BL,AL
DEC BL

L1:MUL BL
DEC BL
CMP BL,00
JNE L1
L2:RET
FACTO ENDP
ASSUME DS:DATA,CS:CODE
START:
MOV AX,DATA
MOV DS,AX
PUSH NO
CALL FACTO
MOV BH,00
MOV AH,4CH
INT 21H
CODE ENDS




--
MIT
2nd Semester


--
You received this message because you are subscribed to the Google
Groups "VU_Askari(MIT)" group.
To post to this group, send email to vu_askarimit@googlegroups.com
Visit these groups:
This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
Management: https://groups.google.com/group/vuaskari_mgt?hl=en
Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
MIS Group: http://groups.google.com/group/askari_mis?hl=en

--
You received this message because you are subscribed to the Google
Groups "VU_Askari(MIT)" group.
To post to this group, send email to vu_askarimit@googlegroups.com
Visit these groups:
This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
Management: https://groups.google.com/group/vuaskari_mgt?hl=en
Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
MIS Group: http://groups.google.com/group/askari_mis?hl=en



--
MIT
2nd Semester


--
You received this message because you are subscribed to the Google
Groups "VU_Askari(MIT)" group.
To post to this group, send email to vu_askarimit@googlegroups.com
Visit these groups:
This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
Management: https://groups.google.com/group/vuaskari_mgt?hl=en
Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
MIS Group: http://groups.google.com/group/askari_mis?hl=en

No comments:

Post a Comment