Question: Your assignment is to write an ARM assembler code to: 1 . Read in a given Text file containing only letters, periods, and spaces. Perform
Your assignment is to write an ARM assembler code to:
Read in a given Text file containing only letters, periods, and spaces. Perform a histogram analysis of the characters to determine the frequency of occurrences and generate the Huffman code as described. When
Given an encoded transmitted message, in which the bits are compacted into several byte unsigned integers, decode and print out the original text message.
Please provide a Makefile as part of your build.
Example:
For the example above, the secret message would fit into a single byte memory location as:
Note the trailing s at the end of the message. You can encode the end of each byte memory location with a bunch of spaces if you want, or you can define an extra character in addition to the letters, period, and spaces to encode an endofmemory character to mark the end of a byte memory block. The design is up to you. There's no problem with printing out a few spaces between letters.
Your decode.s function should take in as input a linked list of byte unsigned integers containing the secret message:
decoder where r contains the address of the first node of the linked list
where
rnodenodenodeNULL
node: NULL
so if a binary code does not fit in at the end of a node, it will continue on into the next node so that there is no wasted bit.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
