ASM program

ASM program to calculate arithmetic mean of ‘N’ numbers

ASM program to calculate arithmetic mean of ‘N’ numbers

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 […]

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone

ASM program to comparing two given strings

ASM program to comparing two given strings

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 […]

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone

ASM program to reverse the given string

ASM program to reverse the given string

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] […]

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone

ASM program to find a letter in the given string

ASM program to find a letter in the given string

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 […]

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone

ASM program to find the factorial of the given number

ASM program to find the factorial of the given number

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 […]

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone

ASM program to find the factorial of the given number

ASM program to find the factorial of the given number

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 […]

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone

ASM program to find the length of the given string

ASM program to find the length of the given string

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 […]

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone