Re: LZ: How to do self-modifying code?


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

Re: LZ: How to do self-modifying code?



Jimmy Mardell wrote:
> 
> Ryan Myers wrote:
> >
> > How do make code that's self modifying ( for high scores? )
> 
> It's very easy. Just change the byte (or word) in the code and do this
> before the programs exit:
> 
>  ld hl,ZS_BITS  ; Alias for $8C40
>  set 0,(hl)
> 
> Then ZShell will update the checksum so you won't get ***BAD CHECKSUM***
> next time you try to run the game.
what i think he wants to know is a routine that would allow that because
he can't figure that out(neither can i).
PCoMP
Visit Maximus Productions home page at: http://www.ntsource.com/~pcomp


References: