
Here's some instructions on how to use my loader. It's quite a long time since
I touched these loaders, so I hope I didn't forget anything important... If
you need a VIC20 loader you should use this one since there are no other
"proper" loaders for VIC20.

   SounDemoN/Dekadence

      INSTRUCTIONS FOR C64 LOADER

To initialize the loader:

   The initialization routine is self relocatable. This means that you can
   load it anywhere in memory and it will work. (Anywhere as in the low
   byte of the address must be $00) Once it is loaded to some address, 
   jsr to that address with accu containing the high byte of where the 
   actual loader should be relocated (don't confuse this with the
   automatic relocation of the initialization routine). The loader is
   $c4 bytes long. The KERNAL ROM must be enabled when calling the init 
   routine. ($01 must be $36 or $37)

   For example, to relocate the loader to $0100-$01c4:

      In the machine code monitor, load the loader to $2000 (or any
      other address of your choice):

         L"C64LOADER.V2",8,2000

      Then execute:

         lda #$01
         jsr $2000

   After the initialization is complete and the loader is relocated, the
   memory occupied by the initialization routine ($2000->) can be used. 

To load a file:

   Accu is loaded with the PRG number (0 = first PRG file, 1 = second PRG
   file, etc. Only PRG files are counted) X and Y contain the address of
   where the file is loaded (The default load address is always ignored)

   For example, to load the first PRG file on disk to $1000:

      lda #$00
      ldx #<$1000
      ldy #>$1000
      jsr $0100

To reset the drive:

   Set msb of accu and call the loader:

      lda #$ff
      jsr $0100

Some notes:

   Don't change the vic bank with $dd00. Use $dd02 with inverted bank
   number with bits 2-5 set and bits 6-7 cleared.

   for instance:

      lda #$xx
      and #$03
      sta $dd00

   can be changed to:

      lda #$xx
      and #$03
      eor #$3f
      sta $dd02

   The loader uses the "2 bit atn protocol". This means that sprites,
   bad lines or interrupts can't harm the loader.

   Loading to the i/o area ($d000-$e000) is not supported.





      INSTRUCTIONS FOR VIC20 LOADER

To initialize the loader:

   Load it and jsr $1400. Accu contains the high byte of where the loader
   should be relocated. The loader is about $c0 bytes long (can't remember exactly)

   For example, to relocate the loader to $0100-$01c0:

      lda #$01
      jsr $1400

   After the initialization is complete and the loader is relocated, the
   memory occupied by the initialization routine ($1400->) can be used. 

To load a file:

   Accu is loaded with the PRG number (0 = first PRG file, 1 = second PRG
   file, etc. Only PRG files are counted) X and Y contain the address of
   where the file is loaded (The default load address is always ignored)

   For example, to load the first PRG file on disk to $1000:

      lda #$00
      ldx #<$1000
      ldy #>$1000
      jsr $0100

To reset the drive:

   Set msb of accu and call the loader:

      lda #$ff
      jsr $0100
