Program: Drop_Save
Author : Marc Moline  <marcm@iese.es>
Version: 1.0
Date   : 24th of November 1994
Utility: Saves the last few droped elements.
Library: 906
Bytes  : 719
Note   : THIS PROGRAM WORKS ONLY IN THE G(X)

Introduction
------------
    How many times after a couple of drops you say Ooops!. Then you
think how
useful is Amiga's or Macintosh's Trashcan (Well, maybe you don't, I do)
This program stores in a list the last droped objects, so they can be
retrieved to be used again. No matter what you drop it will be retained
(at
least a few more DROPS). IT DOES NOT RETRIEVE PURGED OBJECTS. That is
for
version 1.1 if any interest provided.


How to install
--------------
like any other lib.
1) Upload dropsave.lib in your calc.
2) RCL to the stack DROPSAVE.LIB
3) press 0 then STO
4) purge DROPSAVE.LIB
5) turn the calc off, then on.

For more info read the manual or the FAQ

Overview of the commands
------------------------

DRP    ( any -> )    It stores the object you drop in the droped list
UNDRP  ( -> any )    It returns the last droped object
RCLDRP ( -> list)    It returns all the droped objects still in memory
SIZCL  ( Num -> )    It resizes and clears the list of saved objects
STKY   (   ->   )    It assigns the USER keyboard.


How is it done?
---------------

    When the library ataches itself after being installed, it generates
a list
in the hidden menu called 'droped'. In this list all the DRPed objects
will be
stored. It will hold only a few number of DRPed objects (because of the
memory) This number is set by default to 3 and it can be changed with
SIZCL,
just say the size you want and press SIZCL. This WILL DELETE all the
already
saved DRPs ( threfore the SIZe and CLear name). Be careful not to use
too big
size numbers, this programs does no magic, it still uses memory to save
your
DRPed elements. In case of need of memory, you can do 1 SIZCL, and the
'droped' list will be reduced to 18 bytes!

    The list works with a FIFO algorithm (First In First Out) every
time you
DRP something, when you UNDRP it pops the last saved object, placing a
0 at
the end of the list, so the next DRP would delete that 0.

    The RCLDRP simply recallys the 'droped' list. Internally the
objects are
saved like { oldest ... newest }, but the RCLDRP will return the list
with the
most recent DRPed element is at the head of the list. BE CAREFUL if you
RCLDRP
for any reason and the you DRP, all the RCLDRP will be saved as a one
list
element, using a lot of memory.

    The STKY command, assigns (ASN) the <- key with the DRP command and
the
UNDRP with the right-shift (green) + <-. The left-shift (violet) + <-
still
works as the usual DROP. Bear in mind that the assigned keys are
useful, but
kind of get in the way when editing and so. Turn the USR menu off for a
while
and remember to turn it on again. When you need memory turn it off
after a 1
SIZCL for just in case.


Why this works only in the GX ?
-------------------------------

Basically because of three points:

    * It uses the HEAD, TAIL and REVLIST commands
    * I begin to see no one in my university has an S(X), and working
more
      hours will not get me more users.
    * Every day I'm more lazy and any excuse is valid now ;-)

I've the HEAD TAIL and REVLIST implemented in some other programs, I
could seek
them and add them, but performance would lower somehow (Now is almost
transparent). I'm fed up of re-implementing commands, so shift to the
G(X)!!

As usual:

    * Sorry from mi inglix. Knot mi mohter's tonge.
    * I_hope_you_like_it_ware. Please enjoy.
    * Any comments will surprise me, and will be apreciated

    Marc Moline ----> MarcM@IESE.es <-----
