[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Advanced Applesoft HELP!



Well, sort of.

I have written a machine-language library for an Applesoft program. 
Normally, I stick such libraries at $8000 and am done with it at that. 
But this is a program which, if I am not careful, could accidentally tromp
a library stored up there.  And the library is fairly long; and I really
don't like doing library BLOADs anyway.

I was careful to write the library using 100% relocatable code. 
Therefore, it seems that this would be a good candidate for that age-old
tactic where the library is sandwiched in between the last line of
tokenized Applesoft and the current LOMEM: value.  This causes Applesoft
to take care of all the memory management, automatically relocating the
library if the Applesoft gets edited, and causing the library to be saved
on disk as part of the tokenized program.  Really a neat trick!  And it
works well.  I've done it in the past.

Trouble is, I can't remember how I did it 8-}!  And I can't seem to find
any of my old POKE charts 8-(.  I have lots of DOS 3.3 data, but next to
nothing on the workings of Applesoft.

Can anybody at least point me in the right direction?  And if you're still
a little fuzzy on what I'm trying to do, the old RENUMBER program from the
DOS 3.3 System Master used this tactic...in fact, RENUMBER remained memory
resident until an FP command was issued.  And yes, I'm looking at that one
for a starting point (the CALL PEEK (nnn)+PEEK(nnn+1)*256 is really helpful!).

Thanks in advance...

--Dave Althoff, Jr.
    /-\        _       _               __                          
   /XXX\      /X\     /X\_      _     /XX\_      _     _        _____  
  /XXXXX\    /XXX\  _/XXXX\_   /X\   /XXXXX\ (NO ADMITTANCE:)  /XXXXX
_/XXXXXXX\__/XXXXX\/XXXXXXXX\_/XXX\_/XXXXXXX\(.sig testing underway!!)