Re: A86: cphlde
[Prev][Next][Index][Thread]
Re: A86: cphlde
It doesn't matter what kind of numbers you're using: after you subtract,
if de is greater than hl, the result is negative and the sign flag will
be set.
Dan Eble wrote:
>
> On Mon, 4 May 1998, Dux Gregis wrote:
>
> > I disassembled _cphlde ($403c) to find out which flags are set. I'm not
> > sure how the carry flag is affected, but you can use the sign flag to
> > check for inequalities:
>
> It works just like a normal cp. If you're working with signed numbers,
> use the sign flag. If you're working with unsigned numbers, use the carry
> flag.
>
> --------
> Dan Eble (mailto:eble@cis.ohio-state.edu)
> (http://www.cis.ohio-state.edu/~eble)
>
> "Behold, how great a matter a little fire kindleth!" -- James 3:5
Follow-Ups:
References: