Re: A86: cphlde
[Prev][Next][Index][Thread]
Re: A86: cphlde
yes, except that the carry flag can be used w/ the "jr" type
instructions whereas the sign flag cannot.
Dux Gregis wrote:
>
> 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
--
=====================================
= =
= Kirk Meyer (mailto:_@ibm.net) =
= http://www.bigfoot.com/~kirkmeyer =
= =
= "Set your affection on things =
= above, not on things on the =
= earth." Colossians 3:2 =
= =
=====================================
Follow-Ups:
References: