[Coco] Optimizing 6809 Assembly Code: Part 2 – Speedup Storing Data – Unrolling Loops

Simon Jonassen simon at roust-it.dk
Sat Sep 16 10:27:08 EDT 2017


Hey...

BRANCH is always 3 - (L)BRANCH varies.... 

but yes the code execution time will vary depending upon the execution of any given branch

/Simon :-)


-----Oprindelig meddelelse-----
Fra: Coco [mailto:coco-bounces at maltedmedia.com] På vegne af Steve Bamford via Coco
Sendt: 16. september 2017 15:49
Til: CoCoList for Color Computer Enthusiasts
Cc: Steve Bamford
Emne: Re: [Coco] Optimizing 6809 Assembly Code: Part 2 – Speedup Storing Data – Unrolling Loops

This is a great idea Glen! :)

I think I'm right in saying a branch not taken uses fewer cycles than a branch taken, (correct me if I'm wrong).

For this reason where there's a fork in the program flow I always test for the least likely outcome rather than the most likely, if that makes sense?
Steve.


      From: Glen Hewlett <glen.hewlett at sympatico.ca>
 To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com> 
 Sent: Saturday, 16 September 2017, 3:44
 Subject: [Coco] Optimizing 6809 Assembly Code: Part 2 – Speedup Storing Data – Unrolling Loops
   
Hi Again,

I just posted Part 2 of my series of blogs about optimizing 6809 assembly language programs.

https://nowhereman999.wordpress.com/2017/09/15/optimizing-6809-assembly-code-part-2-speedup-storing-data-unrolling-loops/ <https://nowhereman999.wordpress.com/2017/09/15/optimizing-6809-assembly-code-part-2-speedup-storing-data-unrolling-loops/>

Cheers,
Glen

-- 
Coco mailing list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco


   

-- 
Coco mailing list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco



More information about the Coco mailing list