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 7:39:23 AM Pacific Standard Time,
ComAsYuAre@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.
Then wouldn't that be the Borrow flag? Ah, well, it's Assembly, gotta keep it
simple. :)