[Coco] 6309 andcc z,v ?

Darren A. darccml at hotmail.com
Mon Jun 11 20:47:35 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.

>

>--


Yes, the "Z,V" operand refers to the Condition Code flags, not the Zero and
Value registers of the 6309.

Darren

_________________________________________________________________
PC Magazine’s 2007 editors’ choice for best Web mail—award-winning Windows
Live Hotmail.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_pcmag_0507




More information about the Coco mailing list