[A83] Re: allocating uninitialized memory?


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

[A83] Re: allocating uninitialized memory?




#ifdef TI83P

FREE_MEM_START  .equ $9824
FREE_MEM_END  .equ $9828

#else

FREE_MEM_START  .equ $930D
FREE_MEM_END  .equ $9311

#endif



There are pointers at (FREE_MEM_START) and (FREE_MEM_END).  To find the
total free RAM, subtract (FREE_MEM_START) from (FREE_MEM_END).
(FREE_MEM_START) points to the first free byte of free RAM, and
(FREE_MEM_END) points to first byte of non-free RAM.


> I was just wondering if there was a way to create a bit of free space for
a
> program by recording where the stack pointer is, then decrementing it by
the
> amount of space that the program wants.  If this method was used, would
> there be a way to detect stack overflow?
>
>
>




Follow-Ups: References: