[Coco] Clearing condition code register

James Dessart james at skwirl.ca
Sat Mar 26 14:28:42 EST 2005


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...

James




More information about the Coco mailing list