[Coco] 6809 example

Robert Gault robert.gault at worldnet.att.net
Sun Jan 18 06:31:11 EST 2004


Theodore (Alex) Evans wrote:
> 
><snip>  >I
> agree that this would be a poor first program (in any language).
> 
 ><snip>

Except for the random fill of the low res screen and generation of the 
initial delta value, the code for this sort is no more difficult to 
program in assembly than the bubble sort presented by Roger. For this 
exercise there is no real need to program either in assembly. You can 
take whatever is on the low res text screen as initial data and D can be 
precalculated since the data length is fixed.

Both of these sort programs are easier to program and follow for a 
beginner than printing "Hello world" if you include the actual print 
algorithm and don't interface with the Basic ROMs.




More information about the Coco mailing list