A83: Re: >, <, <=, >=, etc.


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

A83: Re: >, <, <=, >=, etc.




yep...carry is if the result is less than zero so for example:

cp    6
jp    c,label

that would jump to the label if a < 6 (<=5)
or you could do:

cp    6
jp    nc,label

that would jump if a >=6 (>5)

-Dan



>
>Is there a way to test for <,>,<=, and >= via the carry flag?  If so,
someone
>please tell me how.  If it's not done by the carry flag, then what does it?
>Thanks.
>
>Seth