[Coco] 6809 Test and Set instruction?

jdaggett at gate.net jdaggett at gate.net
Tue Jul 11 14:53:53 EDT 2006


Allen

There is no "SET" instruction for the MC6809. The "TST" (test) is a 
minimal information instruction. The "TST" should be performed on 
unsigned values. 

TST  yields TMP  <= M - 0 
 

Since no unsigned value is less than zero the "BLO" and "BLS"  
conditional branches have no use. It is better to use the conditional 
branch "BNE" after the "TST" instruction. The conditional branch 
"BHI" can be u sed after a "TST" though the "BNE is prefered. 

The a test the Z and N flags are affedted. The V,  overflow bit, is 
always cleared. No other CC register flags are affected. 

james


On 10 Jul 2006 at 23:08, Allen Huffman wrote:

> Does the 6809 have a test and set instruction?
> 
> 		-- Allen
> 
> 
> -- 
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.9.10/384 - Release Date: 7/10/2006
> 





More information about the Coco mailing list