Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Krill Loader & Open borders
2012-09-23 09:45
Pantaloon

Registered: Aug 2003
Posts: 124
Krill Loader & Open borders

I have problems while loading with Krills loader and at the same time have open upper & lower borders. As soon as i start to load the borders starts to flicker.

Note: i don't do anything else in the interrupt, just opening the upper & lower border.

Anyone have a clue why ?
2012-09-23 10:17
Martin Piper

Registered: Nov 2007
Posts: 645
Does the loader use SEI/CLI?
2012-09-23 10:18
Pantaloon

Registered: Aug 2003
Posts: 124
thats what i first tought but couldnt find it in the code.
2012-09-23 10:27
Burglar

Registered: Dec 2004
Posts: 1047
you probably timed the openborder code too tight.

which rasterline do u set $d011? I use $fa, should work fine.
2012-09-23 10:32
Pantaloon

Registered: Aug 2003
Posts: 124
$fa here aswell. (and been randomly trying different values with the same result :)).
2012-09-23 11:52
Krill

Registered: Apr 2002
Posts: 2854
If you look at the test program that comes with the loader, you'll notice that it opens the borders while loading.

There is no SEI/CLI in the code, so interrupts have the exact same latency and jitter as without loading.

I guess you have not enabled KERNAL fallback, which might explain this behaviour if the loader misdetects the drive for some reason (detected drive type is returned in the X register after install).

Currently i have no idea what could cause this, but you can send me a minimal test program so i can have a look.

2012-09-23 12:16
Pantaloon

Registered: Aug 2003
Posts: 124
Krill, i've sent you a mail now. (to krill at plush dot de)
2012-09-23 12:55
Krill

Registered: Apr 2002
Posts: 2854
You have enabled loading to the memory under the IO space at $d000-$dfff. Thus, the loader will switch $01.

Your interrupt handlers buffer $01 nicely, but they don't set it after buffering, so the writes to $d012 to set another trigger line and $d019 to ack the IRQ are ineffective when the loader was interrupted after having disabled the IO registers in order to write to $d000-$dfff.

Just set $01 to enable IO registers after buffering it in your IRQ handlers.

Btw., loading to $d000-$dfff decreases loader performance quite a bit, as it has to set $01 twice for each received byte.
Consider working around the need to do so, or use two incarnations of the resident code, one with and one without loading under IO space, the former only when it's really needed.
2012-09-23 12:57
Pantaloon

Registered: Aug 2003
Posts: 124
yeah found it now :)
and cant really avoid loading under $d000 unless i split my files in several parts and do a manual memcpy. unfortunely all our parts takes $08000-$ff3f.
2012-09-23 12:59
Pantaloon

Registered: Aug 2003
Posts: 124
Is there a build flag for this:

"or use two incarnations of the resident code, one with and one without loading under IO space"

or do i manually need to do something :)
2012-09-23 13:04
Krill

Registered: Apr 2002
Posts: 2854
Manually. Build the loader twice with and without load under IO. You'll notice the install portions are identical except for different configuration strings.
 
... 21 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 | 3 | 4 - Next
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
Frostbyte/Artline De..
cba
Chico/Civitas
LightSide
Firelord/EX/TRX
Apollyon/ALD
Case/Padua
X-Raffi/X-Rated
Andy/AEG
TheRyk/MYD!
YPS
Mike
DuncanTwain
Guests online: 116
Top Demos
1 Next Level  (9.8)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.6)
6 Comaland 100%  (9.6)
7 Uncensored  (9.6)
8 No Bounds  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 Layers  (9.7)
2 It's More Fun to Com..  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Rainbow Connection  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Booze Design  (9.3)
3 Censor Design  (9.3)
4 Crest  (9.3)
5 Performers  (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.041 sec.