[Coco] Diecom copy protection analysis

Robert Gault robert.gault at worldnet.att.net
Thu Dec 23 13:01:37 EST 2004


A comment on the use of sector editors to add RSDOS LOADM code. While 
HexWorkshop is great in that it permits insertion or deletion of data, 
Coco disk editors such as Colorzap or dEd do not have this capability.

There is a way to achieve the same results with Colorzap. Find a gran 
that is not in use either on the original disk or a new disk which has 
sectors of the same size as the original disk. Copy the sector(s) 
required to the new location leaving the first sector in the gran 
unused. Now you can add to the first sector the RSDOS LOADM header 
indicating that the load address is -sector.size+5+address. That will 
make the data load where you want it and the blank sector will be just 
before it.

Ex. you want to load a 1024 byte sector at $6000 that does not have a 
LOADM format. Make the lead-in sector in the gran start with $00 $07 $FB 
$5C $05. The LOADM address will then be
|$5C05 header sector|$6000 data sector| The $00 indicates ml code, 
$07FB is the the original length of $400 plus the extra sector ($400) 
minus the 5 byte LOADM code, $5C05 is the offset LOADM address 
($6000-$400+5).



More information about the Coco mailing list