Re: A83: Re: subprogs


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

Re: A83: Re: subprogs




Harper Maddox wrote:
> 
> Technically you could have over 27k of variables... you can make the whole
> program an array of random numbers, and these numbers which are located
> within your program are essentially variables (although they seemingly have
> no value without a label)
> 
> ie.   .db 0,2,5,5,4,6,6,4  ; could go on forever
> you could also use the textmem, textshadow, cmdshadow also giving you even
> more memory than your free ram.

Ugh, an easier way to do this is to use the facilities provided by TI. 
Change the number after the first End in your program to the amount of
memory you need.  It will reside right after your program, so you can
reference it through a label at the end of your program.

This is better because it won't take up memory when the program isn't
running but will be generous enough to report "Out of memory" if there's
not enough at runtime.

This is a good solution to find memory if you need to use the "useless"
memory pools for their actual uses.

-- 
John Kugelman.  kugelman@mnsinc.com

I believe we can change anything.
I believe in my dream.
    - Joe Satriani


Follow-Ups: References: