Re: Clever ways to hide a compare




Jim Leonard wrote:
> I was wading through an old game the other day and found a section of
> code that grabbed two values and XOR'd them, then kept track of the
> zero flag through a series of convaluted steps designed to obscure what
> he was doing. (When you XOR two identical bytes, the result is zero.)

Now that's the stuff I'm interested in. What kind of stuff was he
using to obscure, and did he just save the status register flags and
then reload them later?

.



Relevant Pages