Skip to navigation


Loader: RelocateLoader

[Commodore 64 version, Disk Loader 1]

Name: RelocateLoader [Show more] Type: Subroutine Category: Loader Summary: Load and run the GMA1 loader file
Context: See this subroutine in context in the source code References: No direct references to this subroutine in this source file
.RelocateLoader LDX #101 ; We now copy this program from the BASIC program area ; to $02A7, which is where it is supposed to run, so ; set byte a counter in X to copy 101 bytes .relo1 LDA $0801,X ; Copy the X-th byte from $0801 to $02A7 STA $02A7,X DEX ; Decrement the byte counter BPL relo1 ; Loop back until we have copied the whole program JMP RunGMA ; Jump to the newly relocated RunDMA routine to load and ; run the first GMA file on disk