Writing new selector software: question

General discussion forum - for all that doesn't fit in any other category.
Post Reply
Rink
Posts: 18
Joined: Wed Jul 03, 2013 2:53 pm

Writing new selector software: question

Post by Rink »

I was thinking I'd write a little image selector for the Sharp X1, which would just list the available disk images on the card and allow you to select one for each drive. Should be pretty straight forward...

I've read the direct access document and have a question:
If I wanted to list the disk images and their 'slots', do I really have to use the direct access mode, process Microsoft's horrible file system, find the HxC .cfg file, and then parse the ShortDirectoryEntry structures? Or am I missing an easier way of doing this?

There's the nice CMD_SELECT_IMG_INDEX function, so I was rather hoping for a function to take an image index and return something like a ShortDirectoryEntry. :)

Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Writing new selector software: question

Post by Jeff »


Rink
Posts: 18
Joined: Wed Jul 03, 2013 2:53 pm

Re: Writing new selector software: question

Post by Rink »

Thanks Jeff.

Maybe I can just re-use the FAT library from the CPC version. Would make life easier. :D

Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Writing new selector software: question

Post by Jeff »

Rink wrote:Thanks Jeff.

Maybe I can just re-use the FAT library from the CPC version. Would make life easier. :D
You should have a look to this too :
http://pulkomandy.tk/projects/thomson/b ... order=name

Rink
Posts: 18
Joined: Wed Jul 03, 2013 2:53 pm

Re: Writing new selector software: question

Post by Rink »

Ah, that one looks even better for me to work off.

Cheers mate. Time to get coding! :D

Rink
Posts: 18
Joined: Wed Jul 03, 2013 2:53 pm

Re: Writing new selector software: question

Post by Rink »

Thought I'd post and say that I've made some decent progress so far. The software doesn't look that much like the other tools, (hey, 320x200 pixels - what you gonna do? ;)) but is shaping up pretty cool.

On to the bit I've been dreading... the FAT file system.

Just so you know that I don't just ask a ton of questions and then disappear. ;) I am working. :)

Arnie
Posts: 66
Joined: Mon Apr 29, 2013 9:56 pm

Re: Writing new selector software: question

Post by Arnie »

I for one appreciate the effort, Rink. Keep up the good work. If you need a tester then drop me a pm.

Arnie.

Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Writing new selector software: question

Post by Jeff »

Arnie wrote:I for one appreciate the effort, Rink. Keep up the good work.
Arnie.
Me too ! :D

Rink
Posts: 18
Joined: Wed Jul 03, 2013 2:53 pm

Re: Writing new selector software: question (X1)

Post by Rink »

Cool! Thanks for posting guys - it does make a difference to me to know that some people are interested.

I'd still write the software even if no one else wanted it (because I need it! :lol: ) but this is extra motivation to do the job well.

Rink
Posts: 18
Joined: Wed Jul 03, 2013 2:53 pm

Re: Writing new selector software: question

Post by Rink »

Just a quick update: I got side-tracked fighting with the X1's programmable character generator trying to put in a nice HxC logo.

Gave up on that for now (will hit it again after the main part of the code is written), and am back to working on the FAT library integration.

Post Reply