Question: Write an x86 assembly program which prompts the user for a string. The program then prints the count for each of the 26 letters of
Write an x86 assembly program which prompts the user for a string. The program then prints the count for each of the 26 letters of the alphabet, not distinguishing between upper case and lower case, and ignoring all non-letter characters.
Here are some example runs of the program:
Enter a string written in some language: aAAaab555 $ZZZZZzzz a:5 b:1 c:0 d:0 e:0 f:0 g:0 h:0 i:0 j:0 k:0 l:0 m:0 n:0 o:0 p:0 q:0 r:0 s:0 t:0 u:0 v:0 w:0 x:0 y:0 z:8
Implementation Constraint:
- You cannot declare more than 10 labels in your .data and .bss segments together (e.g., you could have 6 labels in your .data segment and 4 labels in your .bss segment, but not 5)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
