AssignmentView more random threads:
- Corrine Miranda- Next Series, whats the name of miranda...
- RequiRed syllabus for LLB of BZU
- difficult managerial accounting question
- cs601 assignment no 4
- what are key functions of the human Resource management now...
- plz
- PlzzzZZZZZ SolVe This ASssignmnt...PlzzzZZZZ urGentLy...
- cs506 2nd asinment
- MTH101 Assignment #6 Solutions
- Cs610 assinmnt ( computer networks) n phy101
Write a program named “count letters” that counts the occurrences of all small and capital letters in given below string and then prints the result in the format (Caps, count:: Small, count).Strings is “bcAdBDeCEad” and it should print this result (Caps, 5:: Small, 5).The program should take address of the source string as a parameter via stack and also provide proper comments against each instruction.
Due Date: 24-05-2010
Sponsored Links
:o:o--------------------------------------------------------------------------------------:o:o
[B]The more knowledge you have, the greater will be your fear of Allah.[/B]
Please Join My [B]Group Vuhelp[/B][B], Birthday Wishing, Daily Hadees[/B] [CODE][B]http://vuhelp.net/groups/vuhelp.html[/B]
[B]http://vuhelp.net/groups/birthday-wishing.html[/B]
[B]http://vuhelp.net/groups/daily-hadees.html[/B][/CODE]
[CENTER][B][COLOR="Red"][SIZE="4"]Email: [email]viki@vuhelp.net[/email][/SIZE][/COLOR][/B][/CENTER]
Write a program named “count letters” that counts the occurrences of all small and capital letters in given below string and then prints the result in the format (Caps, count:: Small, count).Strings is “bcAdBDeCEad” and it should print this result (Caps, 5:: Small, 5).The program should take address of the source string as a parameter via stack and also provide proper comments against each instruction.
:o:o--------------------------------------------------------------------------------------:o:o
[B]The more knowledge you have, the greater will be your fear of Allah.[/B]
Please Join My [B]Group Vuhelp[/B][B], Birthday Wishing, Daily Hadees[/B] [CODE][B]http://vuhelp.net/groups/vuhelp.html[/B]
[B]http://vuhelp.net/groups/birthday-wishing.html[/B]
[B]http://vuhelp.net/groups/daily-hadees.html[/B][/CODE]
[CENTER][B][COLOR="Red"][SIZE="4"]Email: [email]viki@vuhelp.net[/email][/SIZE][/COLOR][/B][/CENTER]
Aoa Sir, It will be appreicated if u kindly give us some hints or information about this assignment,
Write a program named “count letters” that counts the occurrences of all small and capital letters in given below string and then prints the result in the format (Caps, count:: Small, count).Strings is “bcAdBDeCEad” and it should print this result (Caps, 5:: Small, 5).The program should take address of the source string as a parameter via stack and also provide proper comments against each instruction.
and the due date is 24-05-2010
CS401 Solution Assignment 3
Code:;---- ; ---- start of loop reading the keyboard ; ---- one character at a time ;---- mov bX,0 -- initialize capital character counter loop_top: MOV AH,1 ;READ A CHARACTDR INT 21h cmp al,0dh ; end of line? je Display1 ; yes, then stop ; test for capital letters cmp al,'A' JL loop_end ; if char < 'A' then go CMP al,'Z' JG loop_end ; if char > 'Z' then go INC bx ; increment capital letter counter cmp bx,9 JG Display2 ; too many capital letters loop_end: jmp loop_top Display1: LEA DX,MSG2 ;GET MSG1 MOV AH,9 ;DISPLAY STRING INT 21H ;DISPLAY MSG1 mov dl,bl ; print the number of characters add dl,'0' ; make it readable MOV AH,2 ;display the character that is in dl INT 21H jmp exit_program ; all done Display2: LEA DX,MSG3 ;GET MSG1 MOV AH,9 ;DISPLAY STRING INT 21H ;DISPLAY MSG1 exit_program: MOV AH,4CH ; return control to DOS INT 21H MAIN ENDP END MAIN END
:o:o--------------------------------------------------------------------------------------:o:o
[B]The more knowledge you have, the greater will be your fear of Allah.[/B]
Please Join My [B]Group Vuhelp[/B][B], Birthday Wishing, Daily Hadees[/B] [CODE][B]http://vuhelp.net/groups/vuhelp.html[/B]
[B]http://vuhelp.net/groups/birthday-wishing.html[/B]
[B]http://vuhelp.net/groups/daily-hadees.html[/B][/CODE]
[CENTER][B][COLOR="Red"][SIZE="4"]Email: [email]viki@vuhelp.net[/email][/SIZE][/COLOR][/B][/CENTER]
There are currently 1 users browsing this thread. (0 members and 1 guests)