[A83] Re: allocating uninitialized memory? + _insertmem


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

[A83] Re: allocating uninitialized memory? + _insertmem



On Mon, 26 May 2003 18:13:29 +0200, guillaume.h@ifrance.com wrote:

> I'm making an ASM program on ti-83- which needs about 4 
> Kbytes of temporary memory. I've already seen that the rom 
> calls _insertmem and _deletemem have already been discussed 
> here, and they are "described" in the ti-83+ SDK, but I 
> haven't found the *clear* aswer to this question : how can we 
> use the free mem to store big data ?

Well, first check if there's enough free ram. There's a rom call for
that, but I don't exactly remember its name (_enoughmem or something).
You give the amount of ram needed in HL and it will return a carry when
there's not enough. When the carry isn't set, it's safe to use the mem
starting at (FREE_MEM_START).



Follow-Ups: References: