Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > AR/RR check & DIR-routy
2003-02-21 15:27
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?
2003-02-21 23:06
Stryyker

Registered: Dec 2001
Posts: 465
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.
2003-02-22 10:28
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.
2003-02-22 22:33
Stryyker

Registered: Dec 2001
Posts: 465
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.
2004-05-15 02:26
Count Zero

Registered: Jan 2003
Posts: 1821
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
2004-05-15 12:39
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?
2004-05-17 17:00
Krill

Registered: Apr 2002
Posts: 2839
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.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
TheRyk/MYD!
megasoftargentina
E$G/hOKUtO fOrcE
Tom/TRS
Yodelking/Defiers
Guests online: 103
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Bromance  (9.6)
10 Memento Mori  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Logo Graphicians
1 Sander  (10)
2 Facet  (9.7)
3 Mermaid  (9.4)
4 Pal  (9.4)
5 Shine  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.041 sec.