.CHECK CLC \ Clear the C flag for the addition below LDY #0 \ We are going to loop through 256 bytes, so set a byte \ counter in Y .p2 ADC PLL1,Y \ Set A = A + Y-th byte of PLL1 EOR ENTRY,Y \ Set A = A EOR Y-th byte of ENTRY DEY \ Decrement the byte counter BNE p2 \ Loop back to checksum the next byte RTS \ Return from the subroutineName: CHECK [Show more] Type: Subroutine Category: Copy protection Summary: Calculate a checksum from two 256-byte portions of the loader codeContext: See this subroutine in context in the source code References: This subroutine is called as follows: * PROT1 calls CHECK
[X]
Label ENTRY in subroutine Elite loader (Part 1 of 3)
[X]
Subroutine PLL1 (Part 1 of 3) (category: Drawing planets)
Draw Saturn on the loading screen (draw the planet)
[X]
Label p2 is local to this routine