[A83] Re: Optimizing


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

[A83] Re: Optimizing




> Isn't their a faster way to compare hl to de than this: 
_cphlde? I hope you
> guys can help me out.

you can get rid of the call by copying it right into your 
code...

seriously, it depends on what you are curious about.

a simple OR A \ SBC HL, DE should do the job, as it affects 
the zero and the carry flag correctly (and also the sign 
flag). this should be enough to be able to determine their 
relation (carry means HL<DE; zero means HL=DE; if both are 
reset, then HL>DE)

PG





References: