Skip to navigation

Elite on the BBC Micro and NES

Loader: PROT4

[BBC Micro disc version, Loader 3]

Name: PROT4 [Show more] Type: Subroutine Category: Loader Summary: Fetch the address of the keyboard translation table before carrying on with the copy protection
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * Elite loader (Part 1 of 3) calls PROT4
IF _SRAM_DISC .PROT4 LDA #172 \ Call OSBYTE 172 to read the address of the MOS LDX #0 \ keyboard translation table into (Y X) LDY #255 JSR OSBYTE STX TRTB% \ Store the address of the keyboard translation table in STY TRTB%+1 \ TRTB%(1 0) JMP PROT1 \ Call PROT1 to calculate checksums into CHKSM, \ returning from the subroutine using a tail call ENDIF