[Coco] 6309 andcc z,v ?

William Astle lost at l-w.ca
Mon Jun 11 19:09:47 EDT 2007


Roger Taylor wrote:
> While looking through an "as09.exe" assembler test file, I noticed the
> following line:
> 
>                 andcc   z,v                         ; alternate


That looks to me like it clears the Z and V (zero and overflow) flags,
based on the generated code.

I would think that, by extension, you could do:

andcc c

and have the assemble as $1C $FE (andcc #$FE) since the carry flag is bit 0.

Also, by extension, I would expect

orcc z,v

to assemble as $1A $06 (orcc #$06) to set the specified flags.

-- 
William Astle
finger lost at l-w.net for further information

Geek Code V3.12: GCS/M/S d- s+:+ !a C++ UL++++$ P++ L+++ !E W++ !N w---
!D !M PS PE V-- Y+ PGP t+@ 5++ X !R tv+@ b+++@ !DI D? G e++ h+ y?



More information about the Coco mailing list