[Coco] [Color Computer] how to convert any binary file into a .cas file?

Paulo Silva nitrofurano at gmail.com
Tue Dec 21 15:44:43 EST 2010


On Mon, Dec 20, 2010 at 10:23 PM, Paulo Silva <nitrofurano at gmail.com> wrote:

>
>
> On Mon, Dec 20, 2010 at 4:22 PM, Wesley Haynes <wlhaynes1248 at gmail.com>wrote:
>
>> On Sun, Dec 19, 2010 at 3:07 PM, Paulo Silva <nitrofurano at gmail.com>
>> wrote:
>>
>> > somewhere some specs about the .cas file used on emulators like XRoar,
>> but
>> > i didn't understand it clearly... :|
>> >
>>
>> Try http://www.cs.unc.edu/~yakowenk/coco/text/tapeformat.html
>> It's an older site, but it provides a good reference for the coco's tape
>> format.
>>
>> To convert BIN -> CAS, you'll need to split the BIN into 255-byte blocks,
>> each with its own header, checksum, etc.
>>
>>
> thanks, i'm start coding a converter in Python language - where is the best
> way to share this code?
>

done! here is bin2cas.py : http://pastebin.com/3j8TZkSt
the problem is i think the last checksum value is wrong, and its result is
providing an i/o error

for testing, i were trying with 6kb files, and loading into
'pmode3:screen1,0' display area with:

10 pmode 3:screen 1,0
20 cloadm"",1536

(i think the display address is changing sometimes, and i don't know how to
load directly to it)

if someone can help finding the bug, please do, since i humbly think this
tool can be useful for many CoCo2 users and retro coders
thanks,
p.



>
>
>> HTH,
>> Wes
>>
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> http://five.pairlist.net/mailman/listinfo/coco
>>
>
>
>
> --
> Don't give Microsoft the remote control. Don't use Windows 7. <
> http://windows7sins.org>
>
>


-- 
Don't give Microsoft the remote control. Don't use Windows 7. <
http://windows7sins.org>



More information about the Coco mailing list