[Coco] 6309 Division instructions

jdaggett at gate.net jdaggett at gate.net
Tue Aug 2 17:34:31 EDT 2005


Tim

Thanks for that. Then the document with Portal09 is in error also. 

Hear that Roger?????

If indeed it is a 16x8 and with a 8 bit signed quotient and 8 bit 
modulo then it is really a worthless instruction. Unless A very large 
integer divided by a small enough interger is going to overflow 
immediately. A difference of 128 and the results are uselless. 

1024/3 is a worthless division. The added time to create a 
preprocessor to determine if the dividend is significantly larger than 
the divisor along with any scaling will be as slow if not slower than a 
software divider. 

james

On 2 Aug 2005 at 13:52, tim lindner wrote:

To:             	coco at maltedmedia.com (CoCoList for Color 
Computer Enthusiasts)
Subject:        	Re: [Coco] 6309 Division instructions
From:           	tlindner at ix.netcom.com (tim lindner)
Date sent:      	Tue, 2 Aug 2005 13:52:28 -0700
Organization:   	Computers Suck!, Inc.
Send reply to:  	CoCoList for Color Computer Enthusiasts 
<coco at maltedmedia.com>
	<mailto:coco-
request at maltedmedia.com?subject=unsubscribe>
	<mailto:coco-
request at maltedmedia.com?subject=subscribe>

> <jdaggett at gate.net> wrote:
> 
> > "The  DIVD  (16  bit by 8 bit) instruction does a signed divide of
> > the contents of the D register with a value from memory (or in 
> > direct  mode). The signed  result  is  stored  with  the  quotient 
> > in  W and the modulo (remainder) in D."
> 
> Error!
> 
> It should read:
> 
> "The  DIVD  (16  bit by 8 bit) instruction does a signed divide of the
> contents of the D register with a value from memory (or in  direct 
> mode). The signed  result  is  stored  with  the  quotient  in B and
> the modulo (remainder) in A."
> 
> -- 
> tim lindner
> tlindner at ix.netcom.com                                   Bright
> 
> -- 
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco





More information about the Coco mailing list