A86: Re: Ztetris magic


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

A86: Re: Ztetris magic




Yes, that is known as program write-back.  But it is also neccessary to
store the program variables, which are normally stored in _textShadow.  To
do this (the method Jimmy used) you set aside space in your program with
.db's and copy the data there.  But beware that this takes up space in your
program.  Another interesting method to consider would be to allocate a
string to save the game, then erase it when you go back into the program.
This way, if every program had this feature, and you only saved one game at
a time, there would not be as much wasted space.  This should be done (IMHO)
transparently, so the user doesn't have to worry about selecting the string
or deleting it.

-----Original Message-----
From: Bill Barksdale <wcbarksdale@usa.net>
To: assembly-86@lists.ticalc.org <assembly-86@lists.ticalc.org>
Date: Monday, October 19, 1998 7:50 PM
Subject: A86: Ztetris magic


>
>What Ztetris does, is, when the del key is pressed, it jumps to an exit
>routine, which basically copies the program from $d748 back to wherever
>it was (this works because all data is stored within the program
>itself.)  If you want more details, the Ztetris source is readily
>available.
>
>--Bill Barksdale