Tip: Switch palace switches normally disappear if you replay the level. However, if you insert them as direct Map16 and use the hex edit at $00EEB2 in the ROM map, you can replay the level without a problem.
Will detect the emulator the player is using and write it to a RAM address.
It also comes with two patches:
music.asm - If you are using a certain emulator(s) it will change the music to a different song.
newlevel.asm - If you are using a certain emulator(s) and you are in a certain level it will load a new level.
http://serioushax.pastebay.net/313706 (pointless code that checks if A is 16-bit or not)