[Coco] Clearing condition code register
Robert Gault
robert.gault at worldnet.att.net
Sat Mar 26 13:58:16 EST 2005
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.
For anything else, ORCC # or ANDCC # is what you have to use with the
6809/6309 CPU.
James Dessart wrote:
> How does one go about clearing the CC register? It doesn't appear
> there's a specific op for it, so for now I'm using "andcc #0", but
> that'll take up two bytes and 3 cycles, instead of 1 and 2,
> respectively. I've gone through the Motorola docs and can't find an
> alternative.
>
> James
>
>
More information about the Coco
mailing list