Prev: 4000 Up: Map Next: 5CB0
5B80: Decryption Routine
The bytes in this region are all 00 in the snapshot used for this disassembly (the routine is not present in memory), so the instructions below are the documented operation of the loader's decryption routine rather than something that can be checked against the bytes here.
Runs "CPL" on each byte starting from GameEntry.
Decryption 5B80 NOP HL=GameEntry.
5B81 NOP
5B82 NOP
Decryption_Loop 5B83 NOP A=HL.
5B84 NOP CPL operation.
5B85 NOP Write A back to HL.
5B86 NOP Increment HL by one.
5B87 NOP Return.
View the equivalent code in Lunar Jetman.
Earlier Ultimate games use a much simpler mechanism;
Prev: 4000 Up: Map Next: 5CB0