Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

EMU8086 help

Name: Dumbass 2007-06-17 19:43 ID:/qzsph9W

Modify the program so that it prints the decompressed data.

The compressed data is 1, 4, 3, 9, 5, 3, 2, 7, 0.  The program currently just prints all these values except the terminating zero.  When properly decompressed, the output should be:

 4 9 9 9 3 3 3 3 3 7 7

Modify the program to print out the decompressed data.  To do this you need to realize that the data comes in pairs like 5, 3.  This first value in the pair is the number of times the second value is to be repeated.  So set up a nested, inner loop to execute this number of times, and print the second value in the pair inside this inner loop.


The dumbfuck didn't give much of an explination on how to do it.

Name: Anonymous 2007-06-17 19:58 ID:/qzsph9W

That's the problem. The guy didn't leave me the program to modify. Asshole! Anyways, I'll provide the picture by my photobucket:

http://i166.photobucket.com/albums/u84/roy9076/rle_soln.gif

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List