Prev: 4000 Up: Map Next: 5CB0
5B80: Decryption Routine
Runs "RRD" on every byte from 7FFF-FBFF.
GameEntry 5B80 LD HL,$7FFF HL=7FFF.
5B83 LD BC,$007C BC=7C.
5B86 XOR A Reset the flags.
Decryption_Loop 5B87 RRD RRD operation.
5B89 INC HL Increment HL by one.
5B8A DJNZ Decryption_Loop Decrease counter by one and loop back to Decryption_Loop until counter is zero.
5B8C DEC C Decrease C by one.
5B8D JR NZ,Decryption_Loop Loop back to Decryption_Loop until C is zero.
5B8F JP SecurityCheck Jump to SecurityCheck.
View the equivalent code in Atic Atac.
Earlier Ultimate games use a much simpler mechanism;
Prev: 4000 Up: Map Next: 5CB0