Question: ARM Assembly Programming: Character Frequency Count It involves writing a program in the ARM assembly language to count and display how often each character occurs
ARM Assembly Programming: Character Frequency Count
It involves writing a program in the ARM assembly language to count and display how often each character occurs in a string. It should design and implement frequency count. the code should process the hard-coded poem string: My hearts in the Highlands, my heart is not here, My hearts in the Highlands, a-chasing the deer; Chasing the wild-deer, and following the roe, My hearts in the Highlands, wherever I go.
The program should run like this
$ ./freq
0000000001
0000000032
0000000003
0000000006
0000000002
0000000001
0000000001
0000000001
0000000003
0000000001
0000000003
0000000011
0000000001
0000000007
0000000020
0000000001 0000000007
0000000017
0000000011
0000000006
0000000001
0000000011
0000000005
0000000010
0000000009
0000000011
0000000001
0000000003
0000000004
(a) Frequency table Parse the string character-by-character and increment the counters in the frequency table.
(b) Powers of 10 table Compute 10N for N from 0 to 9, storing the values in the powers ten memory locations (in the ten array).
(c) Convert counts to ASCII Convert the frequency counts to ASCII character values.
(d) Print the frequency table Display the count for each character in the format:
e.g. 0000000017 h
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
