subject

Objective: Gain more experience with MIPS programming. and in using macros. Overview: In this program you will implement a very simple compression algorithm, RLE, as described in Wikipedia: Run-length encoding (RLE) is a very simple form of lossless data compression in which runs of data (that is, sequences in which the same data value occurs in many consecutive data elements) are stored as a single data value and count, rather than as the original run. This is most useful on data that contains many such runs For example, 'AABBBC" would be encoded as: A2B3C1 Macro File: Create macros to print an int, print a char, print a string, get a string from the user, open file, close file, read file, and allocate heap memory. You can use more macros than these if you like. Main Program File:
1. Allocate 1024 bytes of dynamic memory and save the pointer to the area.
2. The main program is a loop in which you ask the user for a filename. If they enter nothing for the filename, exit the program. Otherwise:
a. Open the file for reading. If the file does not exist, print an error message and terminate the program
b. Read the file into an input buffer space of 1024 bytes
c. Close the file.
d. Output the original data to the console.
e. Call the compression function. Save the size of the compressed data in memory.
f. Call a function to print the compressed data.
g. Call the uncompress function. Print the uncompressed data.
h. Print the number of bytes in the original and compressed data.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 18:30
List 3 items that were on kens resume that should have been excluded
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
Match the file formats with the types of multimedia they can store
Answers: 2
question
Computers and Technology, 24.06.2019 03:30
Explain the importance of html in web page designing in 20 sentences..
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
In three to five sentences, describe how you can organize written information logically and sequentially
Answers: 1
You know the right answer?
Objective: Gain more experience with MIPS programming. and in using macros. Overview: In this progra...
Questions
question
Mathematics, 25.08.2019 21:00
question
Mathematics, 25.08.2019 21:00
Questions on the website: 13722360