Re: A86: Re: Greater Than/Less Than


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

Re: A86: Re: Greater Than/Less Than




Why would the carry flag be set if it's negative? Isn't the carry flag for
when you add past the maximum value of the register? (I.E.:

ld a,200
add 100

???


In a message dated 12/5/98 8:14:19 PM Pacific Standard Time,
ComAsYuAre@aol.com writes:

> >   ld a,b
>  >    cp c         ;compare b and c
>  >    jp z,same
>  >    jp p,postive (I think, even though that means parity)
>  >    jp n,negative  (???)
>  >  I know that jp z does equal
>  
>  is there any point at all to p and m (not n, m for minus)  ????
>  c is set when it's negative, z is set when it's equal, and nc for when it's
>  positive. is there any advantage to using p and m?