> > Anyone has a simple but good BASIC "routine" to read the contents of a
> > directory and put it into variables....
> Set textcolor to backgroundcolor, clear screen, do FILES "*.LDR" and PEEK
> the filenames out of the VRAM. Take in account that when using MSX-Dos2 the
> first line displays the current directory. So search the first line for a
> :-sign. If it is there, then skip the first line.
Aaaaaaaaaaaaaaagggggggggghhhhhhhhhh!!!!!!
Grauw, it's very dirty! And slow! :PPPP
Take a look at my page, in the softwares section.
Look for "Menu para diskette". There are two versions. One in
assembly, the other in assembly and BASIC.
I don't remember now, but I think that the BASIC version put the
filenames in BASIC variables or, at least, in a contiguous area in RAM.
Ok, it's in portuguese, but too few words, you can understand
easily.
> I have done this before, so it works.
Yeah, me too.
I also said an interesting "launcher". The program just do a FILES
on screen and use the screen as RAM. I mean, no POKE or PEEK. Just VPOKE
and VPEEK. The program used the FILES to show the directory on screen and
some VPEEKs and VPOKES to put a cursor. More VPEEKs to read the desired
filename and a RUN. Very simple.
But this method has a problem: if the disk has too many files will
be scroll, and you'll miss the first filenames.
Adriano Camargo Rodrigues da Cunha ([EMAIL PROTECTED])
Engenharia de Computacao - UNICAMP
http://www.adrpage.cjb.net MSX-TR:I have one.And you?
* The only thing worse than X Windows: (X Windows) - X *
****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****
Re: Basic routine for directory listing
Adriano Camargo Rodrigues da Cunha Tue, 27 Jul 1999 12:10:07 -0700
- Basic routine for directory listing Marc Vallribera Ros
- Re: Basic routine for directory li... Antonio & Nestor Soriano
- Re: Basic routine for directory li... Laurens Holst
- Re[2]: Basic routine for direc... Adriano Camargo Rodrigues da Cunha
- Re[2]: Basic routine for d... Antonio & Nestor Soriano
- BASIC routines to director... Giovanni R. Nunes
- Re: Basic routine for dire... Laurens Holst
- Re: Basic routine for directory li... Maarten ter Huurne
- Re: Basic routine for director... Adriano Camargo Rodrigues da Cunha
- [Directory] Initial Giovanni R. Nunes
- Re: [Directory] Initia... Daniel Jorge Caetano
- Re[2]: Basic routine for direc... Antonio & Nestor Soriano
- Re: Re[2]: Basic routine f... Maarten ter Huurne
- RE: Basic routine for directory li... Patrick Kramer
