At 06:19 PM 3/12/04 -0800, you wrote:
>
>How about this bit of optimized code? I believe the following properly
>emulates your original code.
>
Thanks Larry
I'm doing some work on a new PCB (the old one had a PIC in it..yuck...)
so that all my display types run a Mega8, I will try your change, it should
be a lot faster because it doesn't need the multiply routine. Even though
2 instruction longer it will save the space of the Multiply routine which is
quite longish (Atmel app note) and only used there if I remember correclty.
But now I just realised that the mega8 has an on chip multiplier so it can
be made even shorter!! Just need to have some conditional assembly to
use the multiply routine when using the ICE200 (90S8535 mode) and the
on chip multiplier when running the mega8.
That's what you get when you discuss things with other people!
Regards
John Samperi
******************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495 Fax (02) 9674-8745
Email: samperi@ampertronics.com.au
Website http://www.ampertronics.com.au
* Electronic Design * Custom Products * Contract Assembly
******************************************************Message
RE: [AVR-Chat] Reading from flash in Assembly
2004-12-04 by John Samperi
Attachments
- No local attachments were found for this message.