I thought that the slot and drive would be specified in the pathname.
For example: FILE,S6,D1 but maybe not. There is a low level DEV_NUM
and I found these device.h helper functions...
https://cc65.github.io/doc/funcref.html#ss2.20
unsigned char getfirstdevice (void);
unsigned char __fastcall__ getnextdevice (unsigned char device);
unsigned char getcurrentdevice (void);
I thought that the slot and drive would be specified in the pathname.
For example: FILE,S6,D1 but maybe not. There is a low level DEV_NUM
and I found these device.h helper functions...
https://cc65.github.io/doc/funcref.html#ss2.20
unsigned char getfirstdevice (void);
unsigned char __fastcall__ getnextdevice (unsigned char device);
unsigned char getcurrentdevice (void);
This is in fact extremely easy: you just fopen("/PREFIX/FILENAME") and
it finds the correct drive all by itself :)
Yes, ProDOS is about volumes and paths, not about slots and drives.
[...]
In general, you might want to have a look at >https://github.com/cc65/cc65/blob/master/samples/enumdevdir.c
https://github.com/cc65/cc65/blob/master/samples/enumdevdir.c
Thanks! Grepping from mmphosis' pointed me to this file, and it helped
a lot. I now have a functional multi-device file selector
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 04:36:58 |
Calls: | 10,386 |
Calls today: | 1 |
Files: | 14,058 |
Messages: | 6,416,623 |