Re: [cc65] C64 fast-loader suggestion?

From: Gábor Lénárt <lgb1lgb.hu>
Date: 2011-12-14 15:37:09
On Wed, Dec 14, 2011 at 03:12:20PM +0100, silverdr@wfmh.org.pl wrote:
> On 2011-12-14, at 14:13, Gábor Lénárt wrote:
> 
> > 2. fastloaders usually accelerates LOAD not CHRIN (however I can be wrong
> >   here: as 'file' $ is not a real one, but created by the drive as a
> >   "virtual" file containing the directory as a BASIC-like program, maybe
> >   fastloaders can't accelerate the loading of $: am I wrong here?)
> 
> It depends. Good, especially hardware supported speeders DO accelerate
> LOAD, CHRIN reads and "$" directory reading.  Still - as I wrote earlier -
> in any case LOAD is always faster.  So, yes this can be sped up but
> generally it is not so important.  The amount of data when reading a
> directory is small and when output directly to the screen, it may even be
> a sort of advantage when the speed of the output gives you more time to
> read it ;-)

Haha :) Seriously it's no a big advantage for me :) as I need to store it in
memory: I use that in a "menu like system" where you can scroll the list (if
there are more entries then would fit onto the screen), also I need the
original form of the file names (not as screen codes which are on the
screen) as I need to load one if user press RETURN on the selected item.
It's a file manager like software, except that it's just for select a file
for loading, and nothing advanced like file operations.

Using a buffer seems to be non-optimal (as I wrote I guess this is the
reason cc65's directory function does not use that way) as it needs a
buffer. But anyway since I need buffer to read the selected file, it does
not create any further memory needs, as the buffer is large enough to load
the directory anyway (even for space to build a pointer table so I can
easily display entries without "decoding" the directory all the time when
menu is used to display/select/scroll the directory content). Later, that
buffer is used to load the selected file into.

Thanks for your answer.
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Dec 14 15:37:16 2011

This archive was generated by hypermail 2.1.8 : 2011-12-14 15:37:21 CET