![]() |
Routines |
| Prev: 16384 | Up: Map | Next: 23728 |
|
Decrypts the game by running RRD on every byte from 32767 up to 64510, then jumps to SecurityCheck.
|
||||
|
Decrypt every byte from 32767 upwards.
|
||||
| GameEntry | 23424 | LD HL,32767 | Set the start address to 32767. | |
| 23427 | LD BC,124 | Set B to 0 so each inner pass covers one page, and C to 124 pages. | ||
| 23430 | XOR A | Reset the flags. | ||
| Decryption_Loop | 23431 | RRD | Rotate the current byte right through the accumulator. | |
| 23433 | INC HL | Move onto the next byte. | ||
| 23434 | DJNZ Decryption_Loop | Decrease B by one and loop back to Decryption_Loop until this page is done. | ||
| 23436 | DEC C | Decrease the page count by one. | ||
| 23437 | JR NZ,Decryption_Loop | Loop back to Decryption_Loop until every page is decrypted. | ||
| GameEntry_Jump | 23439 | JP SecurityCheck | Jump to SecurityCheck. | |
| Prev: 16384 | Up: Map | Next: 23728 |