Re: A85: permanent freak'n variables! AGAIN!


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

Re: A85: permanent freak'n variables! AGAIN!




On Wed, 11 Feb 1998 21:30:06 PST, you wrote:

>
>Hello again,
>	
>	I am still having trouble with getting permanent varibles.  I
>understand that the number is stored like message strings.  Someone said
>something about recalculating the bits in Z-Shell?  How would I do this? 
>Could someone please help me by perhaps writting a sample for zshell?  
>	I have written a space invaders type game.  The only element that
>I am missing is a top score type function.  Lets say that my regular
>score, the score of the player during the game, is stored in (score1). 
>Lets also say that the top score is in (topscr). I know that then I have
>to move the top score and the regular score into registers and compare
>them to see which is larger.  Once I do that then how would I write it
>to the memory?  This is vital to this game as well as any other future
>projects. PLEASE HELP ME!
>					Thanks again, 
>						          Mike

you will have to set a ZSBIT.  just look in your ti-85.h file and you
will see:

ZS_BITS         =$8C40  ; bit 0 set : checksum again

so basically all you need to do is:

ld hl,ZS_BITS
set 0,(hl)

and that's all there is to it.


-mike
 mgp4007@omega.uta.edu


References: