Once, out of curiosity, I tried hex-editing the executable file of the game "Dangerous Dave". I looked at the file for any lines I could find and made some random changes to see if this really changed the text displayed in the game.
I was surprised to see the result, which I now recreated using the hex editor and DOSBox: 
As you can see, editing the two characters "RO" in the line "ROMERO" led to a change of 4 characters, resulting in "ZUMEZU". The program seems to reuse two characters and print them at the beginning and end of this line.
What is the reason for this? My first guess would be to try to make the executable smaller, but only code that reuses characters will probably require more space than the 2 bytes that will be saved. Is this just a trick by the author, or just some kind of voodoo compiler?
eliba source share