[Coco] Clearing condition code register
robert.gault at worldnet.att.net
Sat Mar 26 23:09:56 EST 2005
If you want regA preserved, then how about using regB. COMB and CLRB
will produce the same results.
James Dessart wrote:
> On 26-Mar-05, at 1:58 PM, Robert Gault wrote:
>> It is very unusual that the CC register is completely cleared.
>> Normally only some bits are cleared, the most frequent being the carry
>> bit. Since the carry bit is often used, CLRA and COMA are found in
>> code for faster/shorter commands for altering CC bit0.
> That's actually what I wanted, it seems. :) Although I have to leave the
> contents of A intact, I believe, so I may just want to AND with 0xFE...
More information about the Coco