Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started