home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 216
/
216.d81
/
t.diskovery
< prev
next >
Wrap
Text File
|
2022-08-26
|
3KB
|
105 lines
u
D I S K O V E R Y
by Dave Moorman
I had hoped to get this issue out
before the first of September. Oh
well! The good news is that my PC
Techie and I have the prototype
LOADSTAR Home Tower up and running. We
can build them as fast as you order.
Having worked now with MS-DOS and
watched some C++ programming in
action, I realize that the PC is a
real computer. We do the IBM/Intel/
Whoever hardware a disservice by
dismissing it. True, one own SID and
VIC II capabilities are, at their
level, superior. But the Big Blue Box
[is] Big and fast.
Too bad that programmers feel like
they can write any old code, since in
just 18 months, a bigger, faster
machine will come out that will run it
just fine. Code Bloat is unbelieveable
in the Windows world. I can turn on my
C-64, load Edstar, type a column, and
save it in the time it takes to boot
my PC and load Word.
Of course, my C-64 is using a
couple of FD-2000's with JiffyDOS. The
Home Tower is not as fast. It
transfers data like a JiffyDOSed 1541
-- which is slow for me. I began to
notice as the "64HDriver" program
gained size and functionallity.
Booting takes some time.
Yep -- Code Bloat! Before we ship,
I will put it all together in one
linked and packed file, which will cut
down the disk blocks by about
one-third. Better.
Along the way, I have found some
of my favorite things in programming:
PROBLEMS! That's right! If you don't
like solving problems -- especially
problems of logic -- you probably
won't like to program.
Lee Novak has made my job much
easier by creating Mr. Mouse 2.1 --
the "full blown" mouse toolbox. But
Mr. Mouse did not have one function I
really needed. Alphabetization. Er --
sorting. Sorting used to be a big
deal. People would do demos at User
Group meetings. Magazines would run
articles. I suppose that at this late
date, everything everyone ever needs
to know about sorting can be found on
any decent word processor or spread
sheet.
Unless, of course, you are
building a hard drive browser using
Mr. Mouse 2.1 which does load a
directory, and does organize it for
display. But it doesn't sort.
Fortunately, the organizing (racking)
uses a three byte wide table (location
lo/location hi/length). That means
only 6 bytes have to be swapped,
not the whole strings.
Actually, the sort routine was not
hard. First, put the six bytes in zero
page memory (beginning at 249). The
lengths are there as well, but not
needed.
Second, use the .Y register as an
index to compare the two items, one
character at a time. If not in order,
swap the two pointers and move down
the list. If in order, move up the
list.
I was amazed at how quickly a
hundred entries could be sorted. It is
magic! Better yet, I get to be the
Magician! The Sourcerer!
Now, if solving social, emotional,
and spiritual problems would be as
easy -- or even twice as hard -- our
world really could be saved.
DMM