Re: A85: scoring


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

Re: A85: scoring



 somewhere withing your program, put a line like this:
score:
.db 0 ; or .dw 0 if you want scores higher than 255

to set the score, do this:
ld hl, score	; or ld hl, &score  if you're using usgard
ld de, (program_addr) ; and you can skip this line
add hl, de
ld (hl), [score number]

I'm not sure if Usgard does checksums, but you'll need to set the
recalculate bit somewhere before your program quits:
ld hl, ZS_BITS
ld (hl), 1 

						                 Erik Huizing
						     ehuizing@acs.ucalgary.ca
					     http://www.ucalgary.ca/~ehuizing

On Thu, 30 Oct 1997, Michael Young wrote:

> 
> 	Could some tell me how you store permanent variables, like for a
> scoring option.  This is an important element that I am missing from my
> games.
> 
> 					             Thanks
> 						- Mike
> 					young10@juno.com
> 


References: