.doPROT1 LDY #&DB \ Store &EFDB in TRTB%(1 0) to point to the keyboard STY TRTB% \ translation table for OS 0.1 (which we will overwrite LDY #&EF \ with a call to OSBYTE later) STY TRTB%+1 LDY #2 \ Set the high byte of V219(1 0) to 2 STY V219+1 CMP swine-5,X \ This part of the loader has been disabled by the \ crackers, by changing an STA to a CMP (as this is an \ unprotected version) LDY #&18 \ Set the low byte of V219(1 0) to &18 (as X = 255), so STY V219+1,X \ V219(1 0) now contains &0218 RTS \ Return from the subroutineName: doPROT1 [Show more] Type: Subroutine Category: Copy protection Summary: Routine to self-modify the loader codeContext: See this subroutine in context in the source code Variations: See code variations for this subroutine in the different versions References: This subroutine is called as follows: * Elite loader (Part 2 of 5) calls doPROT1
This routine modifies various bits of code in-place as part of the copy protection mechanism. It is called with A = &48 and X = 255.
[X]
Subroutine swine (category: Copy protection)
Resets the machine if the copy protection detects a problem