.SetLoadVariables2 LDA #4 ; Set skipBytes = 4 so we skip the first four bytes of STA skipBytes ; the file (as these contain the program start address ; and file length) LDA #$FF ; Set fileSize(1 0) = $4FFF STA fileSize LDA #$4F STA fileSize+1 LDA #0 ; Set trackSector = 0 (though this appears to have no STA trackSector ; effect, as it isn't checked anywhere and the first ; byte of the track/sector list is unused) LDA #$00 ; Modify the instruction at loadAddr to STA $4000,X STA loadAddr+1 LDA #$40 STA loadAddr+2 RTS ; Return from the subroutineName: SetLoadVariables2 [Show more] Type: Subroutine Category: Loader Summary: Configure the file load variables for loading the ELB1 fileContext: See this subroutine in context in the source code References: This subroutine is called as follows: * Elite loader calls SetLoadVariables2
[X]
Variable fileSize (category: Loader)
The file size of the file we are loading
[X]
Variable skipBytes (category: Loader)
The number of bytes to skip at the start of the file that we are loading
[X]
Variable trackSector (category: Loader)
The track/sector list for the file we are loading