2

Closed

Copy RELative files too

description

REL files aren't as "popular" as the other types; but, they are used (in databases and such). Also, they're ideal as virtual disks for CP/M and DOS/65.

file attachments

Closed Aug 1, 2012 at 3:09 PM by GregKing

comments

plbyrd wrote Nov 4, 2010 at 9:34 PM

I think we should break out the logic for copying a file into a new function in disks.c called "copySingleFile" that would take the appropriate parameters to reuse the existing disk contexts. This way we could then break up the logic into stream-type files (PRG, SEQ) and block-type files (REL) into further functions. This will help long-term with porting the code to non-CBM platforms.

plbyrd wrote Nov 9, 2010 at 9:22 PM

Upon further review, this is a very device-specific operation that requires reading the BAM to get the metadata about the REL file which is required to do the record-by-record copy. :( Unless a way to retrieve this data is found that is device independent I don't see how this feature can be added.

GregKing wrote Nov 16, 2010 at 10:07 AM

I attached a listing of a BASIC program that I use to copy REL files in VICE (I use JiffyDOS on my real C64).
It finds the record size in a drive-model-independent way.

plbyrd wrote Nov 17, 2010 at 9:36 PM

Hooray! It's done.