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


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

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



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.


<pre>
-- 
Real name: Jimmy Mårdell
Email....: mailto:mja@algonet.se
IRC-name.: Yarin
WWW......: http://www.algonet.se/~mja


"If anything can go wrong, it will
 if it can't, it will anyway"


"I was worth the best, and nothing but the best,
 so when I gave myself a present, it was me" - Cat rapes dog
</pre>


References: