IF _GMA86_PAL LDA #4 ; Call LoadGMAFile to load the GMA4 file, which contains JSR LoadGMAFile ; the Elite loader and game data ELIF _GMA85_NTSC LDA #'4' ; Call LoadGMAFile to load the GMA4 file, which contains JSR LoadGMAFile ; the Elite loader and game data ENDIF JSR KERNALSCINIT ; Call the Kernal's SCINIT function to initialise the ; VIC-II LDA #2 ; Set VIC register $20 to set the border colour to the STA VIC+$20 ; colour number in bits 0-3 (i.e. colour 2, red) STA VIC+$21 ; Set VIC register $21 to set the background colour to ; the colour number in bits 0-3 (i.e. colour 2, red) LDA #$04 ; Set the high byte of the pointer to screen memory to STA $0288 ; $04, so screen memory gets set to $0400 LDA #$4C ; Insert the following instruction into address $CE0E: STA $CE0E ; LDA #LO(load4) ; JMP load4 STA $CE0F ; ; starting with the opcode ($4C) and the low byte of the ; address .load3 LDA #HI(load4) ; And finishing up with the high byte of the address STA $CE10 ; ; This enables the Elite loader to jump back to load4 ; when it has finished by doing a JMP $CE0E instruction ; (see elite-loader.asm) JMP ENTRY ; Jump to the entry point in elite-loader, which returns ; to load4 via the JMP command we put in $CE0E aboveName: Elite GMA loader (Part 3 of 4) [Show more] Type: Subroutine Category: Loader Summary: Run the Elite loader in the GMA4 fileContext: See this subroutine in context in the source code References: This subroutine is called as follows: * SetUpFastLoader calls via load3
Other entry points: load3 Jump to the entry point in elite-loader
[X]
Configuration variable ENTRY = $7596
The entry point in the COMLOD file (GMA4)
[X]
Configuration variable KERNALSCINIT = $FF81
The Kernal function to initialise the VIC-II
[X]
Subroutine LoadGMAFile (category: Loader)
Load a specific GMA file
[X]
Configuration variable VIC = $D000
Registers for the VIC-II video controller chip, which are memory-mapped to the 46 bytes from $D000 to $D02E (see page 454 of the Programmer's Reference Guide)
[X]
Label load4 in subroutine Elite GMA loader (Part 4 of 4)