| |
QuasaR
Registered: Dec 2001 Posts: 145 |
AR/RR check & DIR-routy
Hi there!
Is there any posibility to check if there's a AR/RR plugged into the C64? And how can I use the directory-routine of the AR in my own proggies? |
|
| |
Stryyker
Registered: Dec 2001 Posts: 468 |
You could try reading from IO space $df00-$dfff and try to make sense of it. I have no idea how you would know where the dir routines are in the ROM though with all the different versions.
There is some docs ar rr.c64.org with how to access the ROM stuffs, maybe map it in to $8000 etc. like * command (I think) does and use the ROM header to determine versions.
I can't remember if the AR routines can use $:S* to get only files starting with S. I'd prefer to write my own where I have control over this sort of stuff. It isn't that hard. |
| |
Rough Account closed
Registered: Feb 2002 Posts: 1829 |
Quote: You could try reading from IO space $df00-$dfff and try to make sense of it. I have no idea how you would know where the dir routines are in the ROM though with all the different versions.
There is some docs ar rr.c64.org with how to access the ROM stuffs, maybe map it in to $8000 etc. like * command (I think) does and use the ROM header to determine versions.
I can't remember if the AR routines can use $:S* to get only files starting with S. I'd prefer to write my own where I have control over this sort of stuff. It isn't that hard.
$:$*
it does. |
| |
Stryyker
Registered: Dec 2001 Posts: 468 |
I managed to test on my NTSC AR6 (Fastloader 5.0) and all $:wildcard ideas all get entire directory. I recommend using some filename entry routine then fix it to some standard dir display routine. It doesn't use much memory and allows people to do more advanced stuff. |
| |
Count Zero
Registered: Jan 2003 Posts: 1932 |
Right, check rr.c64.org, the appendices of the manual for details.
Also true that wildcard support is not really supported by AR/RR yet .. the drive code in there is so messed up ... sigh ... :)
l8r
Count Zero/CyberpunX/SCS*TRC |
| |
Graham Account closed
Registered: Dec 2002 Posts: 990 |
coding a dir routine is really easy, and also wildcards is easy. why use AR/RR calls for that in your own program? |
| |
Krill
Registered: Apr 2002 Posts: 2980 |
quasar: maybe you would like to have a fast dir routine that you can even run while playing music in the irq. check fixup#$00 for sources. |