ASM program to count number of positive and negative numbers from a given series of numbers

Monday, June 4th, 2012  »  Posted By  »  Total 0 Comment

Aim: – To write an assembly language program to count number of positive and negative numbers from a given series of numbers. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 MOV AX, DATA MOV DS, AX MOV CL, 05 XOR BL, BL XOR DL, […]

ASM program to count the number of even and odd numbers from a given series

Monday, June 4th, 2012  »  Posted By  »  Total 2 Comments

Aim: – To write an assembly language program to count the number of even and odd numbers from a given series. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 MOV CL, 05 XOR BL, BL XOR DL, DL LEA SI, SERIES NEXT2: MOV AL, [SI] SHR […]

ASM program to calculate arithmetic mean of ‘N’ numbers

Monday, June 4th, 2012  »  Posted By  »  Total 0 Comment

Aim: – To write an assembly language program to calculate arithmetic mean of ‘N’ numbers. 1 2 3 4 5 6 7 8 9 10 11 12 13 MOV AX, DATA MOV DS, AX XOR AL, AL LEA SI, NUM MOV CX, 0005 MOV AH, 00 NEXT: ADD AL, [SI] INC SI LOOP NEXT MOV […]

ASM program to store successive numbers from 00H to FFH in successive memory locations

Sunday, June 3rd, 2012  »  Posted By  »  Total 1 Comment

Aim: – To write an assembly language program to store successive numbers from 00H to FFH in successive memory locations. 1 2 3 4 5 6 7 8 9 10 MOV AX, DATA MOV DS, AX XOR AL, AL LEA SI, VAR MOV CX, 0100 NEXT: MOV [SI], AL INC AL INC SI LOOP NEXT […]

ASM program to comparing two given strings

Sunday, June 3rd, 2012  »  Posted By  »  Total 1 Comment

Aim: – To write an assembly language program to comparing two given strings. 1 2 3 4 5 6 7 8 9 10 11 MOV AX, DATA MOV DS, AX MOV ES, AX CID MOV CX, 07 LEA SI, SR1 LEA DI, SR2 REP CMP, SB JB L1 L1: MOV BH, 00 END Result: Two […]

ASM program to reverse the given string

Sunday, June 3rd, 2012  »  Posted By  »  Total 0 Comment

Aim: – To write an assembly language program to reverse the given string. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 MOV AX, DATA MOV DS, AX MOV ES, AX MOV CL, 03 LEA SI, A MOV AX, 04 ADD DI, AX L1: MOV AL, [SI] XCHG AL, [DI] […]

ASM program to find a letter in the given string

Sunday, June 3rd, 2012  »  Posted By  »  Total 0 Comment

Aim: – To write an assembly language program to find a letter in the given string. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 MOV AX, DATA MOV DS, AX MOV ES, AX MOV BX, 00 MOV CL, 00 LOOK: MOV AL, A[BX] CMP AL, KEY JE L1 INC […]

ASM program to find the factorial of the given number

Sunday, June 3rd, 2012  »  Posted By  »  Total 0 Comment

Aim: – To write an assembly language program to find the factorial of the given number. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 MOV CL, X DEC CL MOV BX, 00 INC BX MOV A[BX], 01 MOV AL, 00 MOV DL, 01 L1: INC BX ADD AL, DL […]

ASM program to find the factorial of the given number

Sunday, June 3rd, 2012  »  Posted By  »  Total 4 Comments

Aim: – To write an assembly language program to find the factorial of the given number. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 (1) MOV AL, 01 MOV BL, X LOOK: MUL BL DEC BL JNZ […]

ASM program to find the length of the given string

Sunday, June 3rd, 2012  »  Posted By  »  Total 0 Comment

Aim: – To write an assembly language program to find the length of the given string. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 MOV AX, DATA MOV CS, AX MOV DS, AX MOV BX, 00 MOV CL, 00 LOOP: MOV AL, A[BX] CMP AL, 00 JE L1 INC […]

Question and Answer
C/C++ Unix & Linux Wordpress
Source codes
C C++ Java

Free email signup

Email: