Re: A86: Terms


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

Re: A86: Terms




Trey Jazz wrote:

> >Another question is where do ASAPs fit in to all this?  I will make a
> guess.
> >I think they are only for menus and for customizations which require tokens
> >(i.e. add-on commands/functions).  So do add-ons (menus and functions) have
> >their own set apart area in memory or do you just put them wherever?
>
> right...the menus and functions have their own space (which can be invaded
> easily), the menu has tokens as to if the text in it should be put on the
> screen or if it should open up a submenu or if it should run something. when
> a function is typed on the screen and then goes through the parser it finds
> the token for it and runs the routine for it.

The menus are just 13 words in RAM that hold pointers to menu structures (i.e.
the 9 math iASAPs, the 3 other math menu pointers, and the custom menu).  The
only space in RAM that is actually _reserved_ for menus is the custom menu
area.  To install your own menus and functions you have to find a space
somewhere in RAM page 0 between $D748+x and $FC00 to squeeze it :-(  The one
good thig is that you don't actually need to put the code for your functions
there.  Just the tokSpell and eos tables there... :-)  I found a nice little
space somewhere around $F300 that is unused by stat and fin (but it is used by
trig ;-)...

--
Stephen Hicks
mailto:shicks@mindspring.com
ICQ:5453914
IRC/AIM:Kupopo
Hopemage:http://www.mindspring.com/~shicks/



References: