Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Northwind ! (Registered 2024-11-20) You are not logged in - nap
CSDb User Forums


Forums > CSDb Entries > Release id #247263 : Nightfall
2024-11-03 18:33
jab

Registered: Apr 2020
Posts: 19
Release id #247263 : Nightfall

There is a spot in the middle of the demo (before the isometric part) in which the loader often crashes on real floppy drives. Sorry about that, we ran out of time to debug. We will look into it after having recovered from the party :)
2024-11-03 18:48
Krill

Registered: Apr 2002
Posts: 2968
Never blame the loader until you really know it's the loader's fault. :)
2024-11-03 19:25
jab

Registered: Apr 2020
Posts: 19
Krill:
Sorry again, my sentence was badly formed :) There is a spot in the demo where something causes the loader routine to hang: Execution doesn't return and the drive is left spinning. Powering down the drive returns from the routine with an error flag (this is indicated by the screen turning red).

...but we have already agreed that Frostbyte will contact you with more details, so I won't try going further into it here.
2024-11-03 23:01
Krill

Registered: Apr 2002
Posts: 2968
Ah no problem, that was just a general statement, and the post made before i even knew Nightfall uses that loader by yours truly. =)

Interesting problem, can't wait to see what's at the core of it!
2024-11-04 07:10
hedning

Registered: Mar 2009
Posts: 4720
Oh. I was just about to transfer the top demos to disk here (yes, some of us do that still ;)). Guess I'll wait a while with this one then.
2024-11-13 16:53
Flex

Registered: Feb 2002
Posts: 110
If you want to run "Nightfall" on your beloved 1541 drive, download the "fixed" version that is now available.

https://csdb.dk/release/download.php?id=303727
2024-11-13 19:57
mankeli

Registered: Oct 2010
Posts: 138
What was the problem?
2024-11-13 20:43
chatGPZ

Registered: Dec 2001
Posts: 11346
Also: new entry pls
2024-11-14 00:09
Krill

Registered: Apr 2002
Posts: 2968
Quoting mankeli
What was the problem?
It was, in fact, a loader bug. Two, actually. Either one alone would most likely have gone unnoticed, but they colluded.

The first bug is what's fixed with that recent patch. Under certain circumstances, the r/w head could land on an unintended destination (half-)track after stepping, causing delays or lock-ups.
This is a regression introduced with at least v184, after the 1541 drivecode had undergone a massive overhaul (for speed gains, of course).

Now, normally the track-correction mechanism would fix such errors, making them transient.
But there lies the second bug, also introduced during that overhaul (or thereabouts) due to having to sacrifice some code for other code. (Damn you, mere 2K of drive RAM.)

In this instance, the head landed on a wrong (full-)track with another bit-rate than the intended one.
Read-errors abound, and track-correction mechanism is invoked.
It cycles through the 4 bit-rates until a block is read successfully, and if no such success, stepping down a half-track. Repeat until good.
Once a block is read successfully, but the track denoted in the block header is not the one the loader expects, step to actually desired track.

The problem here was that ALL block headers (normally coming with a header tag of GCR $52) were mis-read as GCR $55 (block data tag) due to a wrong bit-rate while bit-rate cycling, and thus the block-read routine got stuck, never finding an actual block header (but still getting SYNCs, so no timeouts).

In earlier revisions, there were exactly 2 tries to get a block header, and an error if those 2 tries were unsuccessful (because the expectation is to get block header and block data alternatingly), causing the track-correction mechanism to proceed until good.
With the aforementioned byte-saving, these 2 tries became a simple loop-until-fine, and that turned out to be a Bad Idea.

Now, trying to find those measly 3 bytes to get the old 2-tries method back. (And yes, new version coming ASAP.) =)

(Oh, and thanks a bunch to Thierer [maker of SD2IEC firmware patch to support this loader] for providing real1541 logic analyser bus-snoop logs enabling me to track down these two bugs.)
2024-11-15 09:15
iAN CooG

Registered: May 2002
Posts: 3186
New Entry for the now released 100% fixed release
Nightfall 100%
credits copied, fill the missing infos if and when known
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Unicorn/TWA
KLR/NoName
t0m3000/hf^boom!^ibx
Aomeba/Artline Desig..
Scrapper
Andy/AEG
MCM/ONSLAUGHT
Jetboy/Elysium
Guests online: 80
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 Uncensored  (9.6)
7 Wonderland XIV  (9.6)
8 Comaland 100%  (9.6)
9 No Bounds  (9.6)
10 Christmas Megademo  (9.5)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Libertongo  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Morph  (9.5)
9 Dawnfall V1.1  (9.5)
10 It's More Fun to Com..  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Nostalgia  (9.3)
5 Censor Design  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Booze  (9.7)
3 Stormbringer  (9.7)
4 Fungus  (9.6)
5 Grim Reaper  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.052 sec.