CDTV Resourced Project

Help & news on accelerators from TF, Amiga, Atari, CD32 etc

Moderators: terriblefire, Terriblefire Moderator

Post Reply
terriblefire
Moderator Team
Moderator Team
Posts: 1362
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK
Contact:

CDTV Resourced Project

Post by terriblefire » Tue Jul 23, 2019 2:46 pm

So i have spent a few evenings by the beach working on resourcing the CDTV.DEVICE driver from the CDTV 2.3 ROM and I have made very good progress. I understand how the driver works now and I may even produce a C based driver in the future.

However If i want to publish this in a nice form I cannot include the CDTV.H file as that is still copyrighted (available on the cdtv developer cd). And there doesnt appear to be a CDTV.INC file for assembly language.

I basically would like a nice process for converting the CDTV.H file into a CDTV.INC file that end users can do (or i can get the makefile to do for them) so that all they need to do is drop the CDTV.H file into the sourced I provide and bingo.. you have a building CDTV driver.

I've been using VASM for the development so any suggestions would be welcome.
———
I get cranky when asked to repeat myself.

dalek
Posts: 47
Joined: Thu Nov 08, 2018 11:03 am

Re: CDTV Resourced Project (H file to I File Converter Needed)

Post by dalek » Tue Jul 23, 2019 3:40 pm

Nice work!

I did manage to umm do the opposite - compile cdtv.device from let's call it "commonly available" sources... they look to be from a newer version of the driver aimed at the cdtv-cr. Anyway, I changed it to use MEMF_24BITDMA mem instead of MEMF_PUBLIC but I guess chip would work too (I was thinking of testing with the TF530 with 2MB Zorro II RAM).

I kinda got stuck/ran out of time at the point of replacing the rom version of the device with the new one - I'm assuming there are tools to do that. My plan was to first try the new code with no changes, to make sure everything worked, then try again with the changed memory flags.

In my travels I also found a few other components using MEMF_PUBLIC, such as the 'strap' code - not sure if that is cdtv-cr specific or also used in the cdtv.

EDIT: those "commonly available" files also have a cdtv.i version for people to find which would probably do the job.

terriblefire
Moderator Team
Moderator Team
Posts: 1362
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK
Contact:

Re: CDTV Resourced Project (H file to I File Converter Needed)

Post by terriblefire » Tue Jul 23, 2019 4:53 pm

The files need to be legally available for me to be able to publish this. So i'll need to figure out a way to covert the .H to the .I at build time.
———
I get cranky when asked to repeat myself.

dalek
Posts: 47
Joined: Thu Nov 08, 2018 11:03 am

Re: CDTV Resourced Project (H file to I File Converter Needed)

Post by dalek » Wed Jul 24, 2019 1:12 am

Totally get that - what's the build environment? Linux? Would you be happy with a quick and dirty awk or perl or python script that translates it? I'll whip something up...

terriblefire
Moderator Team
Moderator Team
Posts: 1362
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK
Contact:

Re: CDTV Resourced Project (H file to I File Converter Needed)

Post by terriblefire » Sun Jul 28, 2019 11:40 am

———
I get cranky when asked to repeat myself.

dalek
Posts: 47
Joined: Thu Nov 08, 2018 11:03 am

Re: CDTV Resourced Project

Post by dalek » Sun Jul 28, 2019 2:22 pm

Seriously cool! I can't believe you spent your vacation time doing this :)

utri007
Posts: 48
Joined: Tue Nov 13, 2018 10:20 pm

Re: CDTV Resourced Project

Post by utri007 » Sun Jul 28, 2019 11:02 pm

Thank you. Do I get this right, with this, some of those accelerators wich did not work previously with CDTV could work now?

terriblefire
Moderator Team
Moderator Team
Posts: 1362
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK
Contact:

Re: CDTV Resourced Project

Post by terriblefire » Mon Jul 29, 2019 11:51 am

We have the code to start looking at the fix. I need to look at how to use a fixed buffer for DMA rather than what it currently does.
———
I get cranky when asked to repeat myself.

Post Reply

Return to “Terriblefire's channel”