Programmatic access for a custom disk image launcher

Programmatic access for a custom disk image launcher

Postby f8dy » Wed Jul 27, 2011 12:30 pm

I would like to write an alternate UI for selecting and booting disk images. Is this possible from 6502 assembly? What sort of API does the CFFA3000 export, if any? Is it robust enough to allow a third-party program running on the Apple // itself to duplicate the functionality built into the CFFA3000 firmware -- listing, selecting, and deselecting disk images in the 2 virtual Disk II drives?
f8dy
 
Posts: 6
Joined: Fri Jul 22, 2011 4:20 pm

Re: Programmatic access for a custom disk image launcher

Postby dlyons » Sun Jul 31, 2011 8:40 pm

The firmware doesn't have the sort of API you're looking for (its only APIs are currently ProDOS and SmartPort calls).

Do you want to write your own image chooser as an interesting project in itself, or because the CFFA's UI direction feels wrong? Suggestions are welcome.

--Dave, The Firmware Guy
dlyons
 
Posts: 42
Joined: Sun Feb 17, 2002 6:00 pm

Re: Programmatic access for a custom disk image launcher

Postby petern » Mon Aug 01, 2011 8:39 am

I like the UI. It works well and makes sense to me.

I do wish for a "insert blank disk" API to speed up creating images of floppies. I'm thinking of a program like ADTPro that automatically creates a new disk image for every floppy.

-Peter
petern
 
Posts: 10
Joined: Mon Jul 25, 2011 12:51 pm

Re: Programmatic access for a custom disk image launcher

Postby f8dy » Mon Aug 01, 2011 8:47 am

An interesting project. The CFFA3000 firmware is fine for selecting images from a small list, but it doesn't scale very well if you have a lot of disk images. I once developed a graphical multi-game launcher based on DOS3.3Launcher, with screenshots of each game and autocomplete matching to select a game from a list of hundreds. It works well enough, but there are many games that don't boot properly with DOS3.3Launcher because they use non-standard RWTS routines. With the launch of CFFA3000, I was hoping to create an updated version that selected disk images from the USB stick and "booted" them.

To accomplish this, all I would really need is the ability to pass a disk image filename into the firmware and have it "insert" the disk image into the virtual S6D1 drive. How difficult would it be to expose that functionality to 6502 code?
f8dy
 
Posts: 6
Joined: Fri Jul 22, 2011 4:20 pm

Re: Programmatic access for a custom disk image launcher

Postby david__schmidt » Thu Aug 04, 2011 8:20 am

petern wrote:I do wish for a "insert blank disk" API to speed up creating images of floppies. I'm thinking of a program like ADTPro that automatically creates a new disk image for every floppy.

That would be handy - otherwise, you would need to unplug the media, copy the file off, (maybe renaming it in the process), and plug it back in for each image made. (Interesting application for the outboard buttons... ;-)
david__schmidt
 
Posts: 158
Joined: Sat Jul 15, 2006 9:32 pm

Re: Programmatic access for a custom disk image launcher

Postby Char27 » Sun Aug 07, 2011 12:49 pm

petern wrote:I like the UI. It works well and makes sense to me.

I do wish for a "insert blank disk" API to speed up creating images of floppies. I'm thinking of a program like ADTPro that automatically creates a new disk image for every floppy.

-Peter


That would be a nice to have - I have lots of media I want to backup too.

Could swap cables manually but am considering getting something like this if there is no other easy way to do it : http://www.newegg.com/Product/Product.a ... 6817107510

That way I could write a quick app or script (cmd/powershell,pyton) to accept a name and move the file off the USB to my HD with that name
1) Copy the disk on the A2 to the USB drive (could write a basic app to copy then wait for a key press)
2) Switch the USB to my computer
3) Run my util to move/rename the file
4) switch the USB to the A2 (would this require any other steps to enable?)
5) goto step 1
if step 4 is as easy as just connecting the USB drive than this might be a pretty quick way to image everything. btw - How long does it take for the CFFA to mount the flash drive?
**somewhere in that loop I may also take a scan (photo) of the disk and store it with the DSK/NIB image. May add that to my desktop script if worth the time.

btw: I am not a beta tester but have thought about how I might accomplish copying a lot of media in an efficiant way with this card. This is currently my basic plan of attack unless there is a better way...
If/when test the script/process and it works well, I will post details here if anyone is interested. Should be pretty simple (except if I add scanner support) but may save someone a little time.
Char27
 
Posts: 35
Joined: Wed Feb 25, 2009 10:09 pm
Location: Chicago, IL (north of)


Return to CFFA3000 Beta Tester Feedback

Who is online

Users browsing this forum: No registered users and 1 guest

cron