.DecryptGameBinary LDR R0, gameCodeAddr \ Set R0 to the address of the game code LDR R1, absoluteAddr \ Set R1 to the address of the start of the \ Absolute file LDR R2, gameCodeEndAddr \ Set R2 to the address of the end of the \ game code .decr1 LDR R12, [R0], #4 \ Copy a word from R0 to R1, updating the STR R12, [R1], #4 \ addresses as we go (this is where the \ decryption process would work, but \ currently it is just a copy) CMP R0, R2 \ Loop back until we have copied the whole BNE decr1 \ game B Entry \ Start the game by jumping to the Entry \ routineName: DecryptGameBinary [Show more] Type: Subroutine Category: Copy protection Summary: Placeholder routine to decrypt game code to &8000 so it can be runContext: See this subroutine in context in the source code References: This subroutine is called as follows: * RunImageEntry calls DecryptGameBinary
[X]
[X]
Variable absoluteAddr (category: Copy protection)
The address of the start of the Absolute file
[X]
Label decr1 is local to this routine
[X]
Variable gameCodeAddr (category: Copy protection)
The address of the game code
[X]
Variable gameCodeEndAddr (category: Copy protection)
The address of the end of the game code