[A83] Re: Variables in APPs


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

[A83] Re: Variables in APPs




Apps are stored in flash(archive).  Basically rom as far as the asm
programmer is concerned.  So if you allocate some mem in rom with a .db 0,
then you can not modify the byte.  You can use saferam areas.  You can also
create app vars for storing data of long periods of time(like saved games
and highscores).  If you need lots of memory, you can always use the ram
thats sitting unused between the bottom of the fps and the top of the
operator stack.  I did this in symbolic though i used a temporary variable
and maximized its size with the romcall editprog.  The down side to this is
that you do not know the absolute addresses of this section of ram.

Brandon Sterner
www.detacheds.com
----- Original Message -----
From: "Thomas Lutz" <tlutz@stevens-tech.edu>
To: <assembly-83@lists.ticalc.org>
Sent: Monday, March 11, 2002 10:32 PM
Subject: [A83] Variables in APPs


>
> Am I correct in saying that one cannot do the following in an APP?
>
> ...
>  ld a,(MyVar)
>  inc a
>  ld (MyVar),a
> ...
>
> MyVar: db 0
>
>
> What is the easiest way to overcome this? Is using safe ram areas a good
> idea? Thanks a lot.
> -Tom
>
>
>





References: