AssignmentView more random threads:
- Assignment 4 eng201 fall req2011
- CS501-Advance Computer Architecture
- assignment no 3 mth302
- Write an eassay on Wireless Technologies
- MTH (101) GDB #1 LASt date 28-01-2011
- MGT 201 Assignment FM
- CS610( COMPUTER NETWORKS) and CS403( DATABASE) needed...
- solution of isl201 required 2011
- Get solution in 24 hour
- ENG 101 MID term paper required
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)