Re: A83: CP?


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

Re: A83: CP?




Henry Davidowich wrote:
> 
> How does the "cp" affect the flag register?  I understand the zero flag
> concept, but what about other items (such as... the carry flag)?
> Thanks.

The carry flag is set if there is overflow, so it can be used to test
for inequality.  It could be considered a ninth bit, if you will.  If
you really want to see how the different flags are affected, make a
program which compares different numbers and see how the flags change.

-- 
John Kugelman.  kugelman@mnsinc.com

I believe we can change anything.
I believe in my dream.
    - Joe Satriani


References: