Re: A86: Re: Greater Than/Less Than
[Prev][Next][Index][Thread]
Re: A86: Re: Greater Than/Less Than
In a message dated 12/6/98 01:17:32 Eastern Standard Time, ZeromusMog@aol.com
writes:
> 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
>
> ???
both would. if you had to do
ld a,100
sub 200
then a borrow would be needed (remember this from arithmetic?) in order to
perform the operation. this sets the carry flag.