Re: A83: Re: Mem alloc...


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

Re: A83: Re: Mem alloc...




Or (I don't wether this pertains to the 83+ but I would assume it does)
the romcall _insertmem which, if I remember right, will move the user
variables to make space for hl bytes at de. you'll probably to want to
check for free ram before you do this...

   ld hl,$0100
   ld de,$9237
   call _insertmem


Harper Maddox wrote:
> 
> you really dont alloc memory in assembly, since technically you can write to
> anything you want.
> However you can access a large amount of free memory that will not cause
> problems.
> Probably the most popular of these areas is SAVESCREEN, the apd buffer,
> which is a 768 byte area of usable memory.
> 
> If this does not satisfy your request you can use the 128 byte TEXT_MEM or
> the somewhere around 240 byte STAT_RAM.  And if you still need more then you
> can keep the data resident within your program in the form of a ".defs xxxx"
> after a label and access the data as follows
> 
> program:
>  ld hl,FreeMemory        ; pointer to free 1000 byte array
> 
>  ld a,(hl)               ; get the data from the first line in the array
>  ....
>  ret
> 
> FreeMemory:
>  .defs 1000
> 
> ----- Original Message -----
> From: yhean <yhean@mailcity.com>
> To: Ti83 Help List <assembly-83@lists.ticalc.org>
> Sent: Wednesday, December 15, 1999 7:24 AM
> Subject: A83: Mem alloc...
> 
> >
> >
> > What's the way to alloc xxxx bytes, and where is the pointer to these
> bytes?
> >
> > Thanks,
> > Jean
> >
> >
> >
> > LYCOShop is now open. On your mark, get set, SHOP!!!
> > http://shop.lycos.com/
> >

-- 
Scott "_Wrath_" Dial
wrath@calc.org
ICQ#3608935
TimeCity AI Guy II - www.timecity.org
Member of TCPA - tcpa.calc.org
__________________________________________
NetZero - Defenders of the Free World
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html


References: