Thanks AmkG, you don't know how much you've helped me.
But here's my next problem. I know I need to read all the characters in the input file, but how would I store it?
ex. ABCDEADASDA
Character - Frequency
A - 4
B - 1
C - 1
D - 3
etc...
I know I'm suppose to create an array, ex: BUFFER DB...
Hello,
I have gotten my program to do the following:
1) Read in the command line
ex. compress filename1 filename2
My program opens filename1 without error.
Creates Filename2 without error.
Only problem is, why does it have $ always as the first letter of the
output filename?
ex.
If the user...
Thanks, a few other questions have came up.
I want to get a user input and output by using the dos command line. After I get the filenames, I will open them using INT21h.
ex. compress FILENAME1 FILENAME2
I understand the FILENAME1 would be located at 80H and FILENAME2 would be located in...
AmkG, thanks for your quick reply.
I understand that it will have something to do with a tree...maybe something that might resemble a binary search tree. But how will I create such a tree in Assembly? And I understand that I have to create a counter for each character, but how will I do that...
I am a beginner. I have to create a compression program using the huffman algorithm. My question ism before that I must create a "frequency table." That would be used to compare how many times characters are used when reading from a file input. How would I approach in creating that table?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.