Re: A86: very strange


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

Re: A86: very strange




David Phillips wrote:
> 
> Well, then how do some programs save the highscore, and some don't?  I
> wrote a program that had variables inside the program (.db's), and the
> second time I ran it they were the same as when I exited the first time.
what happens is that when a program is loaded into $D748, the TI-OS will
not bother to put it there again if the program is called a second time.
This way, you're .db vars will be saved until you run a different asm
program which changes the data where you had your .db's stored. to save
scores, use _mm_ldir to copy the program back to it's user memory.
> 
> --------------
> David Phillips
> electrum@tfs.net
> 
> Trey Jazz wrote:
> >
> > well i wasnt sure how its done...what i was saying is that usually when
> > something is changed in the program during runtime it is saved in the
> > program however it is done.
> >
> > ASM programs are not written back to their storage locations when they
> > complete.


References: