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 > Question/Problem about Dreamload
2007-07-22 14:42
Conrad

Registered: Nov 2006
Posts: 849
Question/Problem about Dreamload

I'm having a bit of trouble with Dreamloader for the last few weeks now, not saying that I'm a lamer at using it :) it's more to do with the disks (testing on WinVice with 1541-I drive btw).

What it is, most of the files on the disk load great as normal, but for some files it causes the loader and program IRQ to freeze.

I have a feeling it's something to do with where the allocated blocks of the file are stored in the BAM, because this problem happens after I transfer a certain file to the D64 image, or make a duplicate of the disk. I'm currently using D64 Editor V0.028 to put files onto a d64, so I'm not too sure if it's that program that's causing it, or Dreamloader.

Just to let you know that the code for the demo/whatever is set up properly and that all load addresses of each file to load are correct and will not overwrite any code areas in memory. I've had this same problem with another production as well.

Can anyone tell me what I might be doing wrong?

cheers.


EDIT: Here's the source code I'm using to load a file, if you may need to see:

;Prepare loader and start of demo...
*=$8f00
	jsr $8000		;Initialise disk-drive fastloader.
	bcc load_setup_ok	;If no carry, init successfull.
	inc $d020		;Else, flash border, saying no drive is connected, etc.
	jmp $8f00		;Loop back to check again.
load_setup_ok	
	jmp irqstart		;Call main IRQ to setup and start demo.


;This part is JMPed to after IRQ is set up.
load_restart
	jsr $0506		;Shut up the disk-drive.
load_next
	lda #$00		;Shift next two files to the file handle to load.
	sta load_start+1	;
load_third
	lda #$00		;
	sta load_next+1		;
	lda #$00		;
	sta load_third+1	;	
load_start	
	lda #$00		;Main driver loop to check for next file to load.
	beq load_next
	clc
	adc #$2b		;Offset to store char as "@" onwards
	cmp #$3f		;Check if the char is a "?" (invalid filechar)
	bne *+4
	lda #119		;Set it as another unique symbol
	sta load_filename
	jsr $0509		;Wake up the disk-drive.
load_retry
	ldy #>load_filename	;and load the file...
	ldx #<load_filename	;
	lda #$02		;(first 2 chars required from filename)
	jsr $0500		;
	bcs load_error		;If no carry, load was successful.
	lda load_start+1	;Do we need to restart the tune after load?
	cmp #$11
	bcc load_restart	;Skip if not a tune loaded.
	lda #$00		;Else start loaded music.
	tax
	tay
	jsr $1000
	jmp load_restart
load_error			;If load unsuccessful, check the right disk is inserted.

...blah...blah...blah

load_filename
	!text " *"




 
... 10 posts hidden. Click here to view all posts....
 
2007-09-01 06:49
gregg
Account closed

Registered: Apr 2005
Posts: 56
My project is 1541-only and I don't have interruptions. At least only planned ones between reading the tracks. I already asked Krill about his loader. I'll give it a try as soon as I have it.
A non-IRQ-loader would probably be faster/better suited for this, as you pointed out though. But where can I find such loaders? Everyone only wants IRQ loaders! :)

Maybe it's possible to rip such a loader right from a fast disk copier.
2007-09-01 08:21
tlr

Registered: Sep 2003
Posts: 1790
Quote: I think you are using an old version of dreamload, which had a bug accessing tracks 32 and above. Get the newest version here (and forgive us our bad announcement policy = there is hardly none :( )

http://developer.berlios.de/projects/rrtools/

(updated the CSDb-entry now, sorry for the confusion)


Svn-repository + using jam, yay!

I've wanted to have a go at using jam for a long time. I'm using make/automake currently.
2007-09-01 10:24
Style

Registered: Jun 2004
Posts: 498
gregg: yeh sorry, DL_BASE + 3 :) glad it worked out :)
Previous - 1 | 2 - 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
Mike
MCM/ONSLAUGHT
sln.pixelrat
A3/AFL
Andy/AEG
Alakran_64
BYB/Hokuto Force
Peacemaker/CENSOR/Hi..
No-XS
Raf/Vulture Design
iceout/Avatar/HF
Sychamis
zscs
Fred/Channel 4
Guests online: 164
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 The Demo Coder  (9.6)
6 Edge of Disgrace  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 X-Mas Demo 2024  (9.5)
7 Dawnfall V1.1  (9.5)
8 Rainbow Connection  (9.5)
9 Onscreen 5k  (9.5)
10 Morph  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (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.049 sec.