Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
  You are not logged in - nap
Krill's Loader, Repository Version 166   [2018]

Krill's Loader, Repository Version 166 Released by :
Plush [web]

Release Date :
1 October 2018

Type :
C64 Tool

User rating:awaiting 8 votes (8 left)

Credits :
Code .... Krill of Plush

Download :

Look for downloads on external sites:
 Pokefinder.org


Goof Info
Submitted by Krill on 3 December 2018
Had some problems with reliability on real drives, loader got stuck on first load with a significant chance.
This fixes it:

Index: loader/src/drives/drivecode1541.s
===================================================================
--- loader/src/drives/drivecode1541.s (revision 166)
+++ loader/src/drives/drivecode1541.s (working copy)
@@ -147,25 +147,25 @@
;.byte ___, $11, $43, PBI, $e3, $81, $63, ___, <V2, >V2, $03, ___, $a3, $d1, <ST, >ST
.byte ___, $51, <D0, >D0, ___, ___, ___, ___, ___, ___, ___, ___, ___, $b1, <SD, >SD
.byte ___, $31, <D1, >D1, ___, $21, ___, ___, ___, ___, ___, XEF, GIL, $f1, <SF, >SF
- .byte ___, $71, <BL, >BL, ___, $61, ___, ___, ___, ___
+ .byte ___, $71, <BL, >BL, ___, $61, ___, ___, ___

; initialisation continued from dcodinitc
- ; will be overwritten with INDEXTAB ($67..$7b) and FILENAMEHASHVAL1 ($7c..$84)
+ ; will be overwritten with INDEXTAB ($67..$7b), FILENAMEHASHVAL1 ($7c..$84) and DIRTRACKS ($85..$8d)

nxtbitrate: lax VIA2_PRB
axs #$0100 - (1 << BITRATE_SHIFT)
stx VIA2_PRB; cycle through the 4 bit-rates
-findtrackn: lda #$ff; invalid track number -> no track step
- ldx #OPC_STA_ZP; $85
- tay
+findtrackn: ldx #OPC_STA_ZP; $85
+ ldy #$ff; invalid track number -> no track step
jsr getblkinit; any sector, no block link sanity check, store ID
lda STACK + $fe; track
+ jsr rawtoser
+ beq nxtbitrate
+ cmp #MAXTRACK41 + 1
+ bcs nxtbitrate
sta CURTRACK
jsr loadblock
- bcs nxtbitrate
- lda CURTRACK
- jsr rawtoser
- sta CURTRACK
+ bcs nxtbitrate
jmp toloadfile
Goof Info
Submitted by Krill on 16 October 2018
A bug has sneaked in that would cause problems when installing the loader on a freshly-reset drive (load, reset drive, run) or uninstalling and then re-installing the loader.

Patch:
Index: loader/src/drives/drivecode1541.s
===================================================================
--- loader/src/drives/drivecode1541.s (revision 166)
+++ loader/src/drives/drivecode1541.s (working copy)
@@ -1251,7 +1251,7 @@
ora devicenum + 1
sta devicenum + 1

- ldx #tables420e - tables420
+ ldx #tables420e - tables420 - 1
: lda tables420,x
sta $01,x
dex
Search CSDb
Advanced
Navigate
Prev - Random - Next
Detailed Info
· Summaries (1)
· User Comments (7)
· Production Notes (1)
Fun Stuff
· Goofs (2)
· Hidden Parts
· Trivia
Forum
· Discuss this release
Support CSDb
Help keep CSDb running:



Funding status:




About this site:
CSDb (Commodore 64 Scene Database) is a website which goal is to gather as much information and material about the scene around the commodore 64 computer - the worlds most popular home computer throughout time. Here you can find almost anything which was ever made for the commodore 64, and more is being added every day. As this website is scene related, you can mostly find demos, music and graphics made by the people who made the scene (the sceners), but you can also find a lot of the old classic games here. Try out the search box in the top right corner, or check out the CSDb main page for the latest additions.
Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.086 sec.